mirror of
https://gitee.com/fit2cloud-feizhiyun/MeterSphere.git
synced 2024-12-01 19:49:10 +08:00
refactor: 更改nameSpaces
This commit is contained in:
parent
511d0e2fb6
commit
5eed64f4ba
@ -45,7 +45,7 @@ public class TestResourceDTO {
|
||||
* type为 k8s 时,接口测试,性能测试的命名空间
|
||||
*/
|
||||
@Schema(description = "type为k8s时,接口测试,性能测试的命名空间")
|
||||
private String nameSpaces;
|
||||
private String namespace;
|
||||
/**
|
||||
* type为 k8s 时,接口测试,性能测试,UI测试的最大并发数
|
||||
*/
|
||||
|
@ -44,7 +44,7 @@ public class TestResourceReturnDTO {
|
||||
* type为 k8s 时,接口测试,性能测试的命名空间
|
||||
*/
|
||||
@Schema(description = "type为k8s时,接口测试,性能测试的命名空间")
|
||||
private String nameSpaces;
|
||||
private String namespace;
|
||||
/**
|
||||
* type为 k8s 时,接口测试,性能测试,UI测试的最大并发数
|
||||
*/
|
||||
|
@ -86,7 +86,7 @@ port_is_null = Port cannot be null
|
||||
concurrent_number_is_null = ConcurrentNumber cannot be null
|
||||
monitor_is_null = Monitor cannot be null
|
||||
token_is_null = Token can not be null
|
||||
namespace_is_null=Namespaces can not be null
|
||||
namespace_is_null=Namespace can not be null
|
||||
deploy_name_is_null=Deploy Name cannot be null
|
||||
api_test_image_is_null=API cannot be null
|
||||
#project
|
||||
|
@ -74,7 +74,7 @@ class TestResourcePoolControllerTests extends BaseTest {
|
||||
" }],\n" +
|
||||
"\"ip\":\"172.2.130.1\",\n" +
|
||||
"\"token\":\"dsdfssdsvgsd\",\n" +
|
||||
"\"nameSpaces\":\"测试\",\n" +
|
||||
"\"namespace\":\"测试\",\n" +
|
||||
"\"concurrentNumber\":3,\n" +
|
||||
"\"podThreads\":2,\n" +
|
||||
"\"jobDefinition\":\"jsfsjs\",\n" +
|
||||
@ -97,7 +97,7 @@ class TestResourcePoolControllerTests extends BaseTest {
|
||||
" \"orgIds\": [\"sys_default_organization_2\",\"sys_default_organization_3\"],\n" +
|
||||
" \"ip\": \"172.2.130.1\",\n" +
|
||||
" \"token\": \"dsdfssdsvgsd\",\n" +
|
||||
" \"nameSpaces\": \"测试\",\n" +
|
||||
" \"namespace\": \"测试\",\n" +
|
||||
" \"concurrentNumber\": 3,\n" +
|
||||
" \"podThreads\": 2,\n" +
|
||||
" \"jobDefinition\": \"jsfsjs\",\n" +
|
||||
@ -311,7 +311,7 @@ class TestResourcePoolControllerTests extends BaseTest {
|
||||
if (testResourcePoolRequest1.getApiTest()) {
|
||||
Assertions.assertNotNull(testResourcePoolReturnDTO.getTestResourceReturnDTO().getIp());
|
||||
Assertions.assertNotNull(testResourcePoolReturnDTO.getTestResourceReturnDTO().getToken());
|
||||
Assertions.assertNotNull(testResourcePoolReturnDTO.getTestResourceReturnDTO().getNameSpaces());
|
||||
Assertions.assertNotNull(testResourcePoolReturnDTO.getTestResourceReturnDTO().getNamespace());
|
||||
Assertions.assertNotNull(testResourcePoolReturnDTO.getTestResourceReturnDTO().getDeployName());
|
||||
Assertions.assertTrue(testResourcePoolReturnDTO.getTestResourceReturnDTO().getConcurrentNumber() > 0);
|
||||
Assertions.assertTrue(testResourcePoolReturnDTO.getTestResourceReturnDTO().getPodThreads() > 0);
|
||||
@ -320,7 +320,7 @@ class TestResourcePoolControllerTests extends BaseTest {
|
||||
if (testResourcePoolRequest1.getLoadTest()) {
|
||||
Assertions.assertNotNull(testResourcePoolReturnDTO.getTestResourceReturnDTO().getIp());
|
||||
Assertions.assertNotNull(testResourcePoolReturnDTO.getTestResourceReturnDTO().getToken());
|
||||
Assertions.assertNotNull(testResourcePoolReturnDTO.getTestResourceReturnDTO().getNameSpaces());
|
||||
Assertions.assertNotNull(testResourcePoolReturnDTO.getTestResourceReturnDTO().getNamespace());
|
||||
Assertions.assertTrue(testResourcePoolReturnDTO.getTestResourceReturnDTO().getConcurrentNumber() > 0);
|
||||
Assertions.assertTrue(testResourcePoolReturnDTO.getTestResourceReturnDTO().getPodThreads() > 0);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user