From 58d07c521b795b55521df4318809846ffc83e600 Mon Sep 17 00:00:00 2001 From: song-cc-rock Date: Thu, 14 Mar 2024 14:06:15 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E7=BC=BA=E9=99=B7=E7=AE=A1=E7=90=86):?= =?UTF-8?q?=20=E8=A1=A5=E5=85=85=E5=B9=B6=E5=88=A0=E9=99=A4=E9=83=A8?= =?UTF-8?q?=E5=88=86=E6=B5=8B=E8=AF=95=E7=94=A8=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../bug/controller/BugControllerTests.java | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/backend/services/bug-management/src/test/java/io/metersphere/bug/controller/BugControllerTests.java b/backend/services/bug-management/src/test/java/io/metersphere/bug/controller/BugControllerTests.java index 098d5686a4..0bb72f39ee 100644 --- a/backend/services/bug-management/src/test/java/io/metersphere/bug/controller/BugControllerTests.java +++ b/backend/services/bug-management/src/test/java/io/metersphere/bug/controller/BugControllerTests.java @@ -678,22 +678,6 @@ public class BugControllerTests extends BaseTest { @Test @Order(99) void coverZentaoBugTests() throws Exception { - // 上传禅道插件 - addZentaoPlugin(); - // 同步配置更改为禅道 - ProjectApplicationExample example = new ProjectApplicationExample(); - example.createCriteria().andProjectIdEqualTo("default-project-for-bug").andTypeEqualTo("BUG_SYNC_PLATFORM_KEY"); - ProjectApplication record = new ProjectApplication(); - record.setTypeValue("zentao"); - projectApplicationMapper.updateByExampleSelective(record, example); - // 添加禅道缺陷 - BugEditRequest addRequest = buildRequest(false); - String filePath = Objects.requireNonNull(this.getClass().getClassLoader().getResource("file/test.xlsx")).getPath(); - File file = new File(filePath); - MultiValueMap addParam = getMultiPartParam(addRequest, file); - this.requestMultipart(BUG_ADD, addParam).andExpect(status().is5xxServerError()); - // 获取禅道模板(删除默认项目模板) - bugService.attachTemplateStatusField(null, null, null, null); // 批量删除 BugBatchRequest request = new BugBatchRequest(); request.setProjectId("default-project-for-bug");