zhongjiajie commented on code in PR #10792:
URL: https://github.com/apache/dolphinscheduler/pull/10792#discussion_r913933753


##########
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/enums/Status.java:
##########
@@ -194,7 +194,7 @@ public enum Status {
     QUERY_WORKFLOW_LINEAGE_ERROR(10161, "query workflow lineage error", 
"查询血缘失败"),
     QUERY_AUTHORIZED_AND_USER_CREATED_PROJECT_ERROR(10162, "query authorized 
and user created project error error", "查询授权的和用户创建的项目错误"),
     DELETE_PROCESS_DEFINITION_BY_CODE_FAIL(10163, "delete process definition 
by code fail, for there are {0} process instances in executing using it", 
"删除工作流定义失败,有[{0}]个运行中的工作流实例正在使用"),
-    CHECK_OS_TENANT_CODE_ERROR(10164, "Please enter the English os tenant 
code", "请输入英文操作系统租户"),
+    CHECK_OS_TENANT_CODE_ERROR(10164, "Tenant code invalid, should follow 
linux's users naming conventions", "非法的租户名,需要遵守 Linux 用户命名规范"),

Review Comment:
   for the reviewers, I change this message due to I think the pervious message 
is wrong



##########
dolphinscheduler-api/src/test/java/org/apache/dolphinscheduler/api/service/QueueServiceTest.java:
##########
@@ -144,62 +141,54 @@ public void testUpdateQueue() {
         Mockito.when(queueMapper.existQueue(null, "test")).thenReturn(true);
         
Mockito.when(resourcePermissionCheckService.operationPermissionCheck(AuthorizationType.QUEUE,
 getLoginUser().getId(), YARN_QUEUE_UPDATE , 
baseServiceLogger)).thenReturn(true);
         
Mockito.when(resourcePermissionCheckService.resourcePermissionCheck(AuthorizationType.QUEUE,
 new Object[]{0}, 0, baseServiceLogger)).thenReturn(true);
+
         // not exist
         Map<String, Object> result = queueService.updateQueue(getLoginUser(), 
0, "queue", queueName);
-        logger.info(result.toString());

Review Comment:
   And I delete all the logger is our tests, because I think is redundance, 
correct me if I am wrong



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to