refactor(消息管理): 调整消息管理的文案显示
This commit is contained in:
parent
892ddbf940
commit
015065282f
|
@ -540,16 +540,9 @@ SET @api_mock_delete_id = UUID_SHORT();
|
|||
Insert into message_task(id, event, receiver, project_robot_id, task_type, test_id, project_id, enable, create_user, create_time, update_user, update_time, use_default_template, use_default_subject, subject) VALUES (@api_mock_delete_id, 'MOCK_DELETE', 'CREATE_USER', @robot_in_site_id, 'API_DEFINITION_TASK', 'NONE', '100001100001', true, 'admin', unix_timestamp() * 1000, 'admin', unix_timestamp() * 1000, true, true, 'message.title.api_definition_task_mock_delete');
|
||||
INSERT INTO message_task_blob(id, template) VALUES (@api_mock_delete_id, 'message.api_definition_task_mock_delete');
|
||||
|
||||
SET @api_mock_execute_success_id = UUID_SHORT();
|
||||
Insert into message_task(id, event, receiver, project_robot_id, task_type, test_id, project_id, enable, create_user, create_time, update_user, update_time, use_default_template, use_default_subject, subject) VALUES (@api_mock_execute_success_id, 'MOCK_EXECUTE_SUCCESSFUL', 'CREATE_USER', @robot_in_site_id, 'API_DEFINITION_TASK', 'NONE', '100001100001', true, 'admin', unix_timestamp() * 1000, 'admin', unix_timestamp() * 1000, true, true, 'message.title.api_definition_task_mock_execute_successful');
|
||||
INSERT INTO message_task_blob(id, template) VALUES (@api_mock_execute_success_id, 'message.api_definition_task_mock_execute');
|
||||
|
||||
SET @api_fake_error_id = UUID_SHORT();
|
||||
INSERT INTO message_task_blob(id, template) VALUES (@api_fake_error_id, 'message.api_definition_task_case_execute');
|
||||
|
||||
SET @api_mock_execute_failed_id = UUID_SHORT();
|
||||
Insert into message_task(id, event, receiver, project_robot_id, task_type, test_id, project_id, enable, create_user, create_time, update_user, update_time, use_default_template, use_default_subject, subject) VALUES (@api_mock_execute_failed_id, 'MOCK_EXECUTE_FAILED', 'CREATE_USER', @robot_in_site_id, 'API_DEFINITION_TASK', 'NONE', '100001100001', true, 'admin', unix_timestamp() * 1000, 'admin', unix_timestamp() * 1000, true, true, 'message.title.api_definition_task_mock_execute_failed');
|
||||
INSERT INTO message_task_blob(id, template) VALUES (@api_mock_execute_failed_id, 'message.api_definition_task_mock_execute');
|
||||
|
||||
-- 初始化接口场景消息设置数据
|
||||
SET @api_scenario_update_id = UUID_SHORT();
|
||||
|
|
|
@ -143,7 +143,7 @@ message.bug_task=缺陷
|
|||
message.bug_sync_task=同步
|
||||
message.functional_case_task=功能用例
|
||||
message.case_review_task=用例评审
|
||||
message.api_definition_task=接口文档
|
||||
message.api_definition_task=接口定义
|
||||
message.api_scenario_task=接口场景
|
||||
message.ui_scenario_task=UI自动化
|
||||
message.load_test_task=测试用例
|
||||
|
@ -153,7 +153,7 @@ message.manual_execution=手动执行
|
|||
message.test_plan_management=测试计划
|
||||
message.bug_management=缺陷管理
|
||||
message.case_management=用例管理
|
||||
message.api_test_management=接口测试
|
||||
message.api_test_management=接口管理
|
||||
message.ui_test_management=UI测试
|
||||
message.load_test_management=性能测试
|
||||
message.jenkins_task_management=Jenkins
|
||||
|
@ -178,8 +178,6 @@ message.case_execute_failed=CASE 执行失败
|
|||
message.mock_create=MOCK 创建
|
||||
message.mock_update=MOCK 更新
|
||||
message.mock_delete=MOCK 删除
|
||||
message.mock_execute_successful=MOCK 执行成功
|
||||
message.mock_execute_failed=MOCK 执行失败
|
||||
message.scenario_execute_successful=执行成功
|
||||
message.scenario_execute_fake_error=执行误报
|
||||
message.scenario_execute_failed=执行失败
|
||||
|
@ -226,9 +224,9 @@ message.case_review_task_create=${OPERATOR}创建了用例评审:${name}
|
|||
message.case_review_task_update=${OPERATOR}更新了用例评审:${name}
|
||||
message.case_review_task_delete=${OPERATOR}删除了用例评审:${name}
|
||||
message.case_review_task_review_completed=${OPERATOR}完成了用例评审:${name}
|
||||
message.api_definition_task_create=${OPERATOR}创建了接口文档:${name}
|
||||
message.api_definition_task_update=${OPERATOR}更新了接口文档:${name}
|
||||
message.api_definition_task_delete=${OPERATOR}删除了接口文档:${name}
|
||||
message.api_definition_task_create=${OPERATOR}创建了接口定义:${name}
|
||||
message.api_definition_task_update=${OPERATOR}更新了接口定义:${name}
|
||||
message.api_definition_task_delete=${OPERATOR}删除了接口定义:${name}
|
||||
message.api_definition_task_case_create=${OPERATOR}创建了接口用例:${name}
|
||||
message.api_definition_task_case_update=${OPERATOR}更新了接口用例:${name}
|
||||
message.api_definition_task_case_delete=${OPERATOR}删除了接口用例:${name}
|
||||
|
@ -236,7 +234,6 @@ message.api_definition_task_case_execute=${OPERATOR}执行了接口用例:${name
|
|||
message.api_definition_task_mock_create=${OPERATOR}创建了接口MOCK:${name}
|
||||
message.api_definition_task_mock_update=${OPERATOR}更新了接口MOCK:${name}
|
||||
message.api_definition_task_mock_delete=${OPERATOR}删除了接口MOCK:${name}
|
||||
message.api_definition_task_mock_execute=${OPERATOR}执行了接口MOCK:${name}
|
||||
message.api_scenario_task_create=${OPERATOR}创建了接口场景:${name}
|
||||
message.api_scenario_task_update=${OPERATOR}更新了接口场景:${name}
|
||||
message.api_scenario_task_delete=${OPERATOR}删除了接口场景:${name}
|
||||
|
@ -284,9 +281,9 @@ message.title.case_review_task_create=用例评审创建通知
|
|||
message.title.case_review_task_update=用例评审更新通知
|
||||
message.title.case_review_task_delete=用例评审删除通知
|
||||
message.title.case_review_task_review_completed=用例评审评审完成通知
|
||||
message.title.api_definition_task_create=接口文档创建通知
|
||||
message.title.api_definition_task_update=接口文档更新通知
|
||||
message.title.api_definition_task_delete=接口文档删除通知
|
||||
message.title.api_definition_task_create=接口定义创建通知
|
||||
message.title.api_definition_task_update=接口定义更新通知
|
||||
message.title.api_definition_task_delete=接口定义删除通知
|
||||
message.title.api_definition_task_case_create=接口用例创建通知
|
||||
message.title.api_definition_task_case_update=接口用例更新通知
|
||||
message.title.api_definition_task_case_delete=接口用例删除通知
|
||||
|
@ -296,8 +293,6 @@ message.title.api_definition_task_case_execute_failed=接口用例执行失败
|
|||
message.title.api_definition_task_mock_create=MOCK创建通知
|
||||
message.title.api_definition_task_mock_update=MOCK更新通知
|
||||
message.title.api_definition_task_mock_delete=MOCK删除通知
|
||||
message.title.api_definition_task_mock_execute_successful=MOCK执行成功通知
|
||||
message.title.api_definition_task_mock_execute_failed=MOCK执行失败通知
|
||||
message.title.api_scenario_task_create=接口场景创建通知
|
||||
message.title.api_scenario_task_update=接口场景更新通知
|
||||
message.title.api_scenario_task_delete=接口场景删除通知
|
||||
|
|
|
@ -179,7 +179,7 @@ message.bug_task=Bug
|
|||
message.bug_sync_task=Synchronize
|
||||
message.functional_case_task=Functional case
|
||||
message.case_review_task=Case review
|
||||
message.api_definition_task=API documentation
|
||||
message.api_definition_task=API definition
|
||||
message.api_scenario_task=API scenario
|
||||
message.ui_scenario_task=UI automation
|
||||
message.load_test_task=Test case
|
||||
|
@ -189,7 +189,7 @@ message.manual_execution=Manual execution
|
|||
message.test_plan_management=Test Plan
|
||||
message.bug_management=Bug management
|
||||
message.case_management=Case management
|
||||
message.api_test_management=API test
|
||||
message.api_test_management=API management
|
||||
message.ui_test_management=UI test
|
||||
message.load_test_management=Load test
|
||||
message.jenkins_task_management=Jenkins
|
||||
|
@ -214,8 +214,6 @@ message.case_execute_failed=CASE execution failed
|
|||
message.mock_create=MOCK create
|
||||
message.mock_update=MOCK update
|
||||
message.mock_delete=MOCK delete
|
||||
message.mock_execute_successful=MOCK executed successfully
|
||||
message.mock_execute_failed=MOCK execution failed
|
||||
message.scenario_execute_successful=Executed successfully
|
||||
message.scenario_execute_fake_error=Execution fake error
|
||||
message.scenario_execute_failed=Execution failed
|
||||
|
@ -263,9 +261,9 @@ message.case_review_task_create=${OPERATOR} created the case review: ${name}
|
|||
message.case_review_task_update=${OPERATOR} updated the case review: ${name}
|
||||
message.case_review_task_delete=${OPERATOR} deleted the case review: ${name}
|
||||
message.case_review_task_review_completed=${OPERATOR} completed the case review: ${name}
|
||||
message.api_definition_task_create=${OPERATOR} created the API documentation: ${name}
|
||||
message.api_definition_task_update=${OPERATOR} updated the API documentation: ${name}
|
||||
message.api_definition_task_delete=${OPERATOR} deleted the API documentation: ${name}
|
||||
message.api_definition_task_create=${OPERATOR} created the API definition: ${name}
|
||||
message.api_definition_task_update=${OPERATOR} updated the API definition: ${name}
|
||||
message.api_definition_task_delete=${OPERATOR} deleted the API definition: ${name}
|
||||
message.api_definition_task_case_create=${OPERATOR} created the API case: ${name}
|
||||
message.api_definition_task_case_update=${OPERATOR} updated the API case: ${name}
|
||||
message.api_definition_task_case_delete=${OPERATOR} deleted the API case: ${name}
|
||||
|
@ -273,7 +271,6 @@ message.api_definition_task_case_execute=${OPERATOR} executed the API case: ${na
|
|||
message.api_definition_task_mock_create=${OPERATOR} created the API MOCK: ${name}
|
||||
message.api_definition_task_mock_update=${OPERATOR} updated the API MOCK: ${name}
|
||||
message.api_definition_task_mock_delete=${OPERATOR} deleted the API MOCK: ${name}
|
||||
message.api_definition_task_mock_execute=${OPERATOR} executed the API MOCK: ${name}
|
||||
message.api_scenario_task_create=${OPERATOR} created the API scenario: ${name}
|
||||
message.api_scenario_task_update=${OPERATOR} updated the API scenario: ${name}
|
||||
message.api_scenario_task_delete=${OPERATOR} deleted the API scenario: ${name}
|
||||
|
@ -318,9 +315,9 @@ message.title.case_review_task_create=Case review creation notification
|
|||
message.title.case_review_task_update=Case review update notification
|
||||
message.title.case_review_task_delete=Case review deletion notification
|
||||
message.title.case_review_task_review_completed=Case review completion notification
|
||||
message.title.api_definition_task_create=API document creation notification
|
||||
message.title.api_definition_task_update=API document update notification
|
||||
message.title.api_definition_task_delete=API document deletion notification
|
||||
message.title.api_definition_task_create=API definition creation notification
|
||||
message.title.api_definition_task_update=API definition update notification
|
||||
message.title.api_definition_task_delete=API definition deletion notification
|
||||
message.title.api_definition_task_case_create=API case creation notification
|
||||
message.title.api_definition_task_case_update=API case update notification
|
||||
message.title.api_definition_task_case_delete=API case deletion notification
|
||||
|
@ -330,8 +327,6 @@ message.title.api_definition_task_case_execute_failed=API case execution failure
|
|||
message.title.api_definition_task_mock_create=MOCK creation notification
|
||||
message.title.api_definition_task_mock_update=MOCK update notification
|
||||
message.title.api_definition_task_mock_delete=MOCK deletion notification
|
||||
message.title.api_definition_task_mock_execute_successful=MOCK execution success notification
|
||||
message.title.api_definition_task_mock_execute_failed=MOCK execution failure notification
|
||||
message.title.api_scenario_task_create=API scenario creation notification
|
||||
message.title.api_scenario_task_update=API scenario update notification
|
||||
message.title.api_scenario_task_delete=API scenario deletion notification
|
||||
|
|
|
@ -179,7 +179,7 @@ message.bug_task=缺陷
|
|||
message.bug_sync_task=同步
|
||||
message.functional_case_task=功能用例
|
||||
message.case_review_task=用例评审
|
||||
message.api_definition_task=接口文档
|
||||
message.api_definition_task=接口定义
|
||||
message.api_scenario_task=接口场景
|
||||
message.ui_scenario_task=UI自动化
|
||||
message.load_test_task=测试用例
|
||||
|
@ -189,7 +189,7 @@ message.manual_execution=手动执行
|
|||
message.test_plan_management=测试计划
|
||||
message.bug_management=缺陷管理
|
||||
message.case_management=用例管理
|
||||
message.api_test_management=接口测试
|
||||
message.api_test_management=接口管理
|
||||
message.ui_test_management=UI测试
|
||||
message.load_test_management=性能测试
|
||||
message.jenkins_task_management=Jenkins
|
||||
|
@ -214,8 +214,6 @@ message.case_execute_failed=CASE 执行失败
|
|||
message.mock_create=MOCK 创建
|
||||
message.mock_update=MOCK 更新
|
||||
message.mock_delete=MOCK 删除
|
||||
message.mock_execute_successful=MOCK 执行成功
|
||||
message.mock_execute_failed=MOCK 执行失败
|
||||
message.scenario_execute_successful=执行成功
|
||||
message.scenario_execute_fake_error=执行误报
|
||||
message.scenario_execute_failed=执行失败
|
||||
|
@ -263,9 +261,9 @@ message.case_review_task_create=${OPERATOR}创建了用例评审:${name}
|
|||
message.case_review_task_update=${OPERATOR}更新了用例评审:${name}
|
||||
message.case_review_task_delete=${OPERATOR}删除了用例评审:${name}
|
||||
message.case_review_task_review_completed=${OPERATOR}完成了用例评审:${name}
|
||||
message.api_definition_task_create=${OPERATOR}创建了接口文档:${name}
|
||||
message.api_definition_task_update=${OPERATOR}更新了接口文档:${name}
|
||||
message.api_definition_task_delete=${OPERATOR}删除了接口文档:${name}
|
||||
message.api_definition_task_create=${OPERATOR}创建了接口定义:${name}
|
||||
message.api_definition_task_update=${OPERATOR}更新了接口定义:${name}
|
||||
message.api_definition_task_delete=${OPERATOR}删除了接口定义:${name}
|
||||
message.api_definition_task_case_create=${OPERATOR}创建了接口用例:${name}
|
||||
message.api_definition_task_case_update=${OPERATOR}更新了接口用例:${name}
|
||||
message.api_definition_task_case_delete=${OPERATOR}删除了接口用例:${name}
|
||||
|
@ -273,7 +271,6 @@ message.api_definition_task_case_execute=${OPERATOR}执行了接口用例:${name
|
|||
message.api_definition_task_mock_create=${OPERATOR}创建了接口MOCK:${name}
|
||||
message.api_definition_task_mock_update=${OPERATOR}更新了接口MOCK:${name}
|
||||
message.api_definition_task_mock_delete=${OPERATOR}删除了接口MOCK:${name}
|
||||
message.api_definition_task_mock_execute=${OPERATOR}执行了接口MOCK:${name}
|
||||
message.api_scenario_task_create=${OPERATOR}创建了接口场景:${name}
|
||||
message.api_scenario_task_update=${OPERATOR}更新了接口场景:${name}
|
||||
message.api_scenario_task_delete=${OPERATOR}删除了接口场景:${name}
|
||||
|
@ -318,9 +315,9 @@ message.title.case_review_task_create=用例评审创建通知
|
|||
message.title.case_review_task_update=用例评审更新通知
|
||||
message.title.case_review_task_delete=用例评审删除通知
|
||||
message.title.case_review_task_review_completed=用例评审评审完成通知
|
||||
message.title.api_definition_task_create=接口文档创建通知
|
||||
message.title.api_definition_task_update=接口文档更新通知
|
||||
message.title.api_definition_task_delete=接口文档删除通知
|
||||
message.title.api_definition_task_create=接口定义创建通知
|
||||
message.title.api_definition_task_update=接口定义更新通知
|
||||
message.title.api_definition_task_delete=接口定义删除通知
|
||||
message.title.api_definition_task_case_create=接口用例创建通知
|
||||
message.title.api_definition_task_case_update=接口用例更新通知
|
||||
message.title.api_definition_task_case_delete=接口用例删除通知
|
||||
|
@ -330,8 +327,6 @@ message.title.api_definition_task_case_execute_failed=接口用例执行失败
|
|||
message.title.api_definition_task_mock_create=MOCK创建通知
|
||||
message.title.api_definition_task_mock_update=MOCK更新通知
|
||||
message.title.api_definition_task_mock_delete=MOCK删除通知
|
||||
message.title.api_definition_task_mock_execute_successful=MOCK执行成功通知
|
||||
message.title.api_definition_task_mock_execute_failed=MOCK执行失败通知
|
||||
message.title.api_scenario_task_create=接口场景创建通知
|
||||
message.title.api_scenario_task_update=接口场景更新通知
|
||||
message.title.api_scenario_task_delete=接口场景删除通知
|
||||
|
|
|
@ -179,7 +179,7 @@ message.bug_task=缺陷
|
|||
message.bug_sync_task=同步
|
||||
message.functional_case_task=功能用例
|
||||
message.case_review_task=用例評審
|
||||
message.api_definition_task=介面文檔
|
||||
message.api_definition_task=介面定義
|
||||
message.api_scenario_task=介面場景
|
||||
message.ui_scenario_task=UI自動化
|
||||
message.load_test_task=測試用例
|
||||
|
@ -189,7 +189,7 @@ message.manual_execution=手動執行
|
|||
message.test_plan_management=測試計劃
|
||||
message.bug_management=缺陷管理
|
||||
message.case_management=用例管理
|
||||
message.api_test_management=介面測試
|
||||
message.api_test_management=介面管理
|
||||
message.ui_test_management=UI測試
|
||||
message.load_test_management=效能測試
|
||||
message.jenkins_task_management=Jenkins
|
||||
|
@ -214,8 +214,6 @@ message.case_execute_failed=CASE 執行失敗
|
|||
message.mock_create=MOCK 創建
|
||||
message.mock_update=MOCK 更新
|
||||
message.mock_delete=MOCK 删除
|
||||
message.mock_execute_successful=MOCK 執行成功
|
||||
message.mock_execute_failed=MOCK 執行失败
|
||||
message.scenario_execute_successful=執行成功
|
||||
message.scenario_execute_fake_error=執行誤報
|
||||
message.scenario_execute_failed=執行失敗
|
||||
|
@ -263,9 +261,9 @@ message.case_review_task_create=${OPERATOR}創建了用例評審:${name}
|
|||
message.case_review_task_update=${OPERATOR}更新了用例評審:${name}
|
||||
message.case_review_task_delete=${OPERATOR}刪除了用例評審:${name}
|
||||
message.case_review_task_review_completed=${OPERATOR}完成了用例評審:${name}
|
||||
message.api_definition_task_create=${OPERATOR}創建了介面文檔:${name}
|
||||
message.api_definition_task_update=${OPERATOR}更新了介面文檔:${name}
|
||||
message.api_definition_task_delete=${OPERATOR}刪除了介面文檔:${name}
|
||||
message.api_definition_task_create=${OPERATOR}創建了介面定義:${name}
|
||||
message.api_definition_task_update=${OPERATOR}更新了介面定義:${name}
|
||||
message.api_definition_task_delete=${OPERATOR}刪除了介面定義:${name}
|
||||
message.api_definition_task_case_create=${OPERATOR}創建了介面用例:${name}
|
||||
message.api_definition_task_case_update=${OPERATOR}更新了介面用例:${name}
|
||||
message.api_definition_task_case_delete=${OPERATOR}刪除了介面用例:${name}
|
||||
|
@ -273,7 +271,6 @@ message.api_definition_task_case_execute=${OPERATOR}執行了介面用例:${name
|
|||
message.api_definition_task_mock_create=${OPERATOR}創建了介面MOCK:${name}
|
||||
message.api_definition_task_mock_update=${OPERATOR}更新了介面MOCK:${name}
|
||||
message.api_definition_task_mock_delete=${OPERATOR}删除了介面MOCK:${name}
|
||||
message.api_definition_task_mock_execute=${OPERATOR}執行了介面MOCK:${name}
|
||||
message.api_scenario_task_create=${OPERATOR}創建了介面場景:${name}
|
||||
message.api_scenario_task_update=${OPERATOR}更新了介面場景:${name}
|
||||
message.api_scenario_task_delete=${OPERATOR}刪除了介面場景:${name}
|
||||
|
@ -319,9 +316,9 @@ message.title.case_review_task_create=用例評審創建通知
|
|||
message.title.case_review_task_update=用例評審更新通知
|
||||
message.title.case_review_task_delete=用例評審刪除通知
|
||||
message.title.case_review_task_review_completed=用例評審評審完成通知
|
||||
message.title.api_definition_task_create=介面文檔創建通知
|
||||
message.title.api_definition_task_update=介面文檔更新通知
|
||||
message.title.api_definition_task_delete=介面文檔刪除通知
|
||||
message.title.api_definition_task_create=介面定義創建通知
|
||||
message.title.api_definition_task_update=介面定義更新通知
|
||||
message.title.api_definition_task_delete=介面定義刪除通知
|
||||
message.title.api_definition_task_case_create=介面用例創建通知
|
||||
message.title.api_definition_task_case_update=介面用例更新通知
|
||||
message.title.api_definition_task_case_delete=介面用例刪除通知
|
||||
|
@ -331,8 +328,6 @@ message.title.api_definition_task_case_execute_failed=介面用例執行失敗
|
|||
message.title.api_definition_task_mock_create=MOCK創建通知
|
||||
message.title.api_definition_task_mock_update=MOCK更新通知
|
||||
message.title.api_definition_task_mock_delete=MOCK删除通知
|
||||
message.title.api_definition_task_mock_execute_successful=MOCK執行成功通知
|
||||
message.title.api_definition_task_mock_execute_failed=MOCK執行失敗通知
|
||||
message.title.api_scenario_task_create=介面場景創建通知
|
||||
message.title.api_scenario_task_update=介面場景更新通知
|
||||
message.title.api_scenario_task_delete=介面場景刪除通知
|
||||
|
|
|
@ -380,8 +380,13 @@ public class NoticeMessageTaskService {
|
|||
}
|
||||
Map<String, List<MessageTask>> messageEventMap = messageTaskTypeList.stream().collect(Collectors.groupingBy(MessageTask::getEvent));
|
||||
messageTaskTypeDTO.setTaskTypeName(taskTypeMap.get(messageTaskTypeDTO.getTaskType()));
|
||||
List<String> eventList = List.of(NoticeConstants.Event.CREATE, NoticeConstants.Event.UPDATE, NoticeConstants.Event.DELETE);
|
||||
for (MessageTaskDetailDTO messageTaskDetailDTO : messageTaskTypeDTO.getMessageTaskDetailDTOList()) {
|
||||
messageTaskDetailDTO.setEventName(eventMap.get(messageTaskDetailDTO.getEvent()));
|
||||
if (StringUtils.equalsIgnoreCase(messageTaskTypeDTO.getTaskType(),NoticeConstants.TaskType.API_DEFINITION_TASK) && eventList.contains(messageTaskDetailDTO.getEvent())) {
|
||||
messageTaskDetailDTO.setEventName("API"+StringUtils.SPACE+eventMap.get(messageTaskDetailDTO.getEvent()));
|
||||
} else {
|
||||
messageTaskDetailDTO.setEventName(eventMap.get(messageTaskDetailDTO.getEvent()));
|
||||
}
|
||||
List<MessageTask> messageTaskList = messageEventMap.get(messageTaskDetailDTO.getEvent());
|
||||
List<OptionDTO> receivers = new ArrayList<>();
|
||||
Map<String, ProjectRobotConfigDTO> projectRobotConfigMap = new HashMap<>();
|
||||
|
|
|
@ -255,50 +255,6 @@
|
|||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"event":"EXECUTE_PASSED",
|
||||
"eventName":"",
|
||||
"receivers":[
|
||||
{
|
||||
"id": "CREATE_USER",
|
||||
"name": ""
|
||||
}
|
||||
],
|
||||
"projectRobotConfigList":[
|
||||
{
|
||||
"robotId":"",
|
||||
"enable":"",
|
||||
"template":"",
|
||||
"defaultTemplate":"",
|
||||
"useDefaultTemplate":true,
|
||||
"subject":"",
|
||||
"defaultSubject":"",
|
||||
"useDefaultSubject":true
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"event":"EXECUTE_FAIL",
|
||||
"eventName":"",
|
||||
"receivers":[
|
||||
{
|
||||
"id": "CREATE_USER",
|
||||
"name": ""
|
||||
}
|
||||
],
|
||||
"projectRobotConfigList":[
|
||||
{
|
||||
"robotId":"",
|
||||
"enable":"",
|
||||
"template":"",
|
||||
"defaultTemplate":"",
|
||||
"useDefaultTemplate":true,
|
||||
"subject":"",
|
||||
"defaultSubject":"",
|
||||
"useDefaultSubject":true
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"event":"COMMENT",
|
||||
"eventName":"",
|
||||
|
@ -695,50 +651,6 @@
|
|||
"useDefaultSubject":true
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"event":"MOCK_EXECUTE_SUCCESSFUL",
|
||||
"eventName":"",
|
||||
"receivers":[
|
||||
{
|
||||
"id": "CREATE_USER",
|
||||
"name": ""
|
||||
}
|
||||
],
|
||||
"projectRobotConfigList":[
|
||||
{
|
||||
"robotId":"",
|
||||
"enable":"",
|
||||
"template":"",
|
||||
"defaultTemplate":"",
|
||||
"useDefaultTemplate":true,
|
||||
"subject":"",
|
||||
"defaultSubject":"",
|
||||
"useDefaultSubject":true
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"event":"MOCK_EXECUTE_FAILED",
|
||||
"eventName":"",
|
||||
"receivers":[
|
||||
{
|
||||
"id": "CREATE_USER",
|
||||
"name": ""
|
||||
}
|
||||
],
|
||||
"projectRobotConfigList":[
|
||||
{
|
||||
"robotId":"",
|
||||
"enable":"",
|
||||
"template":"",
|
||||
"defaultTemplate":"",
|
||||
"useDefaultTemplate":true,
|
||||
"subject":"",
|
||||
"defaultSubject":"",
|
||||
"useDefaultSubject":true
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
|
@ -142,7 +142,7 @@ public class NoticeMessageTaskControllerTests extends BaseTest {
|
|||
messageTaskExample = new MessageTaskExample();
|
||||
messageTaskExample.createCriteria().andProjectIdEqualTo("project-message-test").andTaskTypeEqualTo(NoticeConstants.TaskType.API_DEFINITION_TASK).andEventEqualTo(NoticeConstants.Event.CREATE).andReceiverEqualTo("project-message-user-3");
|
||||
messageTasks = messageTaskMapper.selectByExample(messageTaskExample);
|
||||
|
||||
Assertions.assertEquals(0, messageTasks.size());
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
|
@ -193,12 +193,6 @@ public interface NoticeConstants {
|
|||
@Schema(description = "message.mock_delete")
|
||||
String MOCK_DELETE = "MOCK_DELETE";
|
||||
|
||||
@Schema(description = "message.mock_execute_successful")
|
||||
String MOCK_EXECUTE_SUCCESSFUL = "MOCK_EXECUTE_SUCCESSFUL";
|
||||
|
||||
@Schema(description = "message.mock_execute_failed")
|
||||
String MOCK_EXECUTE_FAILED = "MOCK_EXECUTE_FAILED";
|
||||
|
||||
@Schema(description = "message.scenario_execute_successful")
|
||||
String SCENARIO_EXECUTE_SUCCESSFUL = "SCENARIO_EXECUTE_SUCCESSFUL";
|
||||
|
||||
|
@ -327,10 +321,7 @@ public interface NoticeConstants {
|
|||
String API_DEFINITION_TASK_MOCK_UPDATE = "API_DEFINITION_TASK_MOCK_UPDATE";//${OPERATOR}更新了接口MOCK:${name}
|
||||
@Schema(description = "message.api_definition_task_mock_delete")
|
||||
String API_DEFINITION_TASK_MOCK_DELETE = "API_DEFINITION_TASK_MOCK_DELETE";//${OPERATOR}删除了接口MOCK:${name}
|
||||
@Schema(description = "message.api_definition_task_mock_execute")
|
||||
String API_DEFINITION_TASK_MOCK_EXECUTE_SUCCESSFUL = "API_DEFINITION_TASK_MOCK_EXECUTE_SUCCESSFUL";//${OPERATOR}执行了接口MOCK:${name}
|
||||
@Schema(description = "message.api_definition_task_mock_execute")
|
||||
String API_DEFINITION_TASK_MOCK_EXECUTE_FAILED = "API_DEFINITION_TASK_MOCK_EXECUTE_FAILED";//${OPERATOR}执行了接口MOCK:${name}
|
||||
|
||||
|
||||
@Schema(description = "message.api_scenario_task_create")
|
||||
String API_SCENARIO_TASK_CREATE = "API_SCENARIO_TASK_CREATE";//${OPERATOR}创建了接口场景:${name}
|
||||
|
@ -473,10 +464,6 @@ public interface NoticeConstants {
|
|||
String API_DEFINITION_TASK_MOCK_UPDATE = "API_DEFINITION_TASK_MOCK_UPDATE";
|
||||
@Schema(description = "message.title.api_definition_task_mock_delete")
|
||||
String API_DEFINITION_TASK_MOCK_DELETE = "API_DEFINITION_TASK_MOCK_DELETE";
|
||||
@Schema(description = "message.title.api_definition_task_case_execute_successful")
|
||||
String API_DEFINITION_TASK_MOCK_EXECUTE_SUCCESSFUL = "API_DEFINITION_TASK_MOCK_EXECUTE_SUCCESSFUL";
|
||||
@Schema(description = "message.title.api_definition_task_case_execute_failed")
|
||||
String API_DEFINITION_TASK_MOCK_EXECUTE_FAILED = "API_DEFINITION_TASK_MOCK_EXECUTE_FAILED";
|
||||
|
||||
@Schema(description = "message.title.api_scenario_task_create")//接口场景创建通知
|
||||
String API_SCENARIO_TASK_CREATE = "API_SCENARIO_TASK_CREATE";
|
||||
|
|
Loading…
Reference in New Issue