refactor(性能测试): i18n

This commit is contained in:
shiziyuan9527 2021-04-20 11:40:31 +08:00 committed by 刘瑞斌
parent 8d6a551500
commit 4714071c0b
4 changed files with 8 additions and 2 deletions

View File

@ -280,10 +280,10 @@ public class PerformanceTestService {
String testResourcePoolId = loadTest.getTestResourcePoolId();
TestResourcePool testResourcePool = testResourcePoolMapper.selectByPrimaryKey(testResourcePoolId);
if (testResourcePool == null) {
MSException.throwException("Test resource pool not exists.");
MSException.throwException(Translator.get("test_resource_pool_not_exists"));
}
if (ResourceStatusEnum.INVALID.name().equals(testResourcePool.getStatus())) {
MSException.throwException("Test resource pool invalid.");
MSException.throwException(Translator.get("test_resource_pool_invalid"));
}
// check kafka
checkKafka();

View File

@ -64,6 +64,8 @@ test_resource_pool_name_already_exists=The test resource pool name already exist
load_test=Load Test
test_resource_pool_is_use=This resource pool is in use and cannot be deleted
only_one_k8s=Only one K8S can be added
test_resource_pool_not_exists=Test resource pool not exists
test_resource_pool_invalid=Test resource pool invalid
#project
project_name_is_null=Project name cannot be null
project_name_already_exists=The project name already exists

View File

@ -64,6 +64,8 @@ test_resource_pool_name_already_exists=资源池名称已存在
load_test=性能测试
test_resource_pool_is_use=正在使用此资源池,无法删除
only_one_k8s=只能添加一个 K8S
test_resource_pool_not_exists=测试资源池不存在
test_resource_pool_invalid=当前测试使用的资源池处于禁用状态
#project
project_name_is_null=项目名称不能为空
project_name_already_exists=项目名称已存在

View File

@ -64,6 +64,8 @@ test_resource_pool_name_already_exists=資源池名稱已存在
load_test=性能測試
test_resource_pool_is_use=正在使用此資源池,無法刪除
only_one_k8s=只能添加一個 K8S
test_resource_pool_not_exists=測試資源池不存在
test_resource_pool_invalid=當前測試使用的資源池處於禁用狀態
#project
project_name_is_null=項目名稱不能為空
project_name_already_exists=項目名稱已存在