refactor(项目管理): 应用设置-ui配置新增执行资源池

This commit is contained in:
WangXu10 2023-09-08 10:13:12 +08:00 committed by fit2-zhao
parent 20a58ec4f1
commit 226bbcf175
2 changed files with 16 additions and 0 deletions

View File

@ -68,6 +68,13 @@ public class ProjectApplicationController {
return projectApplicationService.get(request); return projectApplicationService.get(request);
} }
@GetMapping("/ui/resource/pool/{organizationId}")
@Operation(summary = "应用设置-UI测试-获取资源池列表")
@RequiresPermissions(PermissionConstants.PROJECT_APPLICATION_UI_READ)
public List<OptionDTO> getUiResourcePoolList(@PathVariable String organizationId) {
return projectApplicationService.getResourcePoolList(StringUtils.defaultIfBlank(organizationId, SessionUtils.getCurrentOrganizationId()));
}
/** /**
* ==========性能测试========== * ==========性能测试==========

View File

@ -84,6 +84,8 @@ public class ProjectApplicationControllerTests extends BaseTest {
public static final String UI_UPDATE_URL = "/project/application/update/ui"; public static final String UI_UPDATE_URL = "/project/application/update/ui";
//获取配置 //获取配置
public static final String GET_UI_URL = "/project/application/ui"; public static final String GET_UI_URL = "/project/application/ui";
//获取资源池
public static final String GET_UI_RESOURCE_POOL_URL = "/project/application/ui/resource/pool";
//应用配置 - UI测试 - 清理报告配置 //应用配置 - UI测试 - 清理报告配置
@Test @Test
@ -123,6 +125,13 @@ public class ProjectApplicationControllerTests extends BaseTest {
// @@异常参数校验 // @@异常参数校验
updatedGroupParamValidateTest(ProjectApplicationRequestDefinition.class, GET_UI_URL); updatedGroupParamValidateTest(ProjectApplicationRequestDefinition.class, GET_UI_URL);
} }
//应用管理 - UI测试 - 获取资源池
@Test
@Order(6)
public void testGetUiResourcePool() throws Exception {
this.requestGetWithOkAndReturn(GET_UI_RESOURCE_POOL_URL + "/default_organization");
}
/** /**
* ==========UI测试 end========== * ==========UI测试 end==========
*/ */