REM:
1.修改获取处置任务接口单测的name
2.修改启动处置任务单测接口的请求消息
3.修改启动多处置任务接口单测的请求消息
This commit is contained in:
chenlinghy 2020-09-15 15:59:59 +08:00
parent cd46e50469
commit 3d4e23b5a1
4 changed files with 6 additions and 7 deletions

View File

@ -29,7 +29,7 @@ public class P2TaskList {
private static final QATestItem[] testItemArray = new QATestItem[]{ private static final QATestItem[] testItemArray = new QATestItem[]{
QATestItem.builder() QATestItem.builder()
.id(BASE_P2_TASK_LIST_ID) .id(BASE_P2_TASK_LIST_ID)
.name("获取第二页20个设备信息") .name("获取第二页20个处置任务信息")
.priority(TestPriority.P2_PRIORITY) .priority(TestPriority.P2_PRIORITY)
.urlPath("/task/taskList") .urlPath("/task/taskList")
.method(RequestMethod.POST) .method(RequestMethod.POST)

View File

@ -93,7 +93,7 @@ public class P2TaskStart {
.priority(TestPriority.P2_PRIORITY) .priority(TestPriority.P2_PRIORITY)
.urlPath("/task/start") .urlPath("/task/start")
.method(RequestMethod.POST) .method(RequestMethod.POST)
.caseJsonValue("{\"ver\":3,\"cryptoType\":0,\"timeStamp\":1598597142580,\"msgContent\":{\"type\":1," + .caseJsonValue("{\"ver\":3,\"cryptoType\":0,\"timeStamp\":1598597142580,\"msgContent\":{\"type\":2," +
"\"disposeIp\":\"192.168.50.3\",\"disposeTime\":10,\"flowDirection\":2," + "\"disposeIp\":\"192.168.50.3\",\"disposeTime\":10,\"flowDirection\":2," +
"\"attackType\":[-1]}}") "\"attackType\":[-1]}}")
.rspClass(TaskStartRsp.class) .rspClass(TaskStartRsp.class)
@ -108,7 +108,7 @@ public class P2TaskStart {
.priority(TestPriority.P2_PRIORITY) .priority(TestPriority.P2_PRIORITY)
.urlPath("/task/start") .urlPath("/task/start")
.method(RequestMethod.POST) .method(RequestMethod.POST)
.caseJsonValue("{\"ver\":3,\"cryptoType\":0,\"timeStamp\":1598597142580,\"msgContent\":{\"type\":2," + .caseJsonValue("{\"ver\":3,\"cryptoType\":0,\"timeStamp\":1598597142580,\"msgContent\":{\"type\":1," +
"\"disposeIp\":\"192.168.50.2\",\"disposeTime\":10,\"flowDirection\":2," + "\"disposeIp\":\"192.168.50.2\",\"disposeTime\":10,\"flowDirection\":2," +
"\"attackType\":[-1]}}") "\"attackType\":[-1]}}")
.rspClass(TaskStartRsp.class) .rspClass(TaskStartRsp.class)

View File

@ -30,7 +30,7 @@ public class P2TaskStartMulIp {
private static final QATestItem[] testItemArray = new QATestItem[]{ private static final QATestItem[] testItemArray = new QATestItem[]{
QATestItem.builder() QATestItem.builder()
.id(BASE_P2_TASK_START_MUL_ID) .id(BASE_P2_TASK_START_MUL_ID)
.name("一个IP全部攻击类型进行清洗") .name("多个IP指定攻击类型进行清洗")
.priority(TestPriority.P2_PRIORITY) .priority(TestPriority.P2_PRIORITY)
.urlPath("/task/startMulIp") .urlPath("/task/startMulIp")
.method(RequestMethod.POST) .method(RequestMethod.POST)
@ -173,7 +173,7 @@ public class P2TaskStartMulIp {
.priority(TestPriority.P2_PRIORITY) .priority(TestPriority.P2_PRIORITY)
.urlPath("/task/startMulIp") .urlPath("/task/startMulIp")
.method(RequestMethod.POST) .method(RequestMethod.POST)
.caseJsonValue("{\"ver\":3,\"cryptoType\":0,\"timeStamp\":1598597142580,\"msgContent\":{\"type\":1," + .caseJsonValue("{\"ver\":3,\"cryptoType\":0,\"timeStamp\":1598597142580,\"msgContent\":{\"type\":2," +
"\"mulDisposeIp\":[\"192.168.50.4\",\"192.168.50.3\"],\"disposeTime\":10," + "\"mulDisposeIp\":[\"192.168.50.4\",\"192.168.50.3\"],\"disposeTime\":10," +
"\"flowDirection\":2,\"attackType\":[-1]}}") "\"flowDirection\":2,\"attackType\":[-1]}}")
.rspClass(TaskStartMulRsp.class) .rspClass(TaskStartMulRsp.class)
@ -190,7 +190,7 @@ public class P2TaskStartMulIp {
.priority(TestPriority.P2_PRIORITY) .priority(TestPriority.P2_PRIORITY)
.urlPath("/task/startMulIp") .urlPath("/task/startMulIp")
.method(RequestMethod.POST) .method(RequestMethod.POST)
.caseJsonValue("{\"ver\":3,\"cryptoType\":0,\"timeStamp\":1598597142580,\"msgContent\":{\"type\":2," + .caseJsonValue("{\"ver\":3,\"cryptoType\":0,\"timeStamp\":1598597142580,\"msgContent\":{\"type\":1," +
"\"mulDisposeIp\":[\"192.168.50.4\",\"192.168.50.3\"],\"disposeTime\":10," + "\"mulDisposeIp\":[\"192.168.50.4\",\"192.168.50.3\"],\"disposeTime\":10," +
"\"flowDirection\":2,\"attackType\":[-1]}}") "\"flowDirection\":2,\"attackType\":[-1]}}")
.rspClass(TaskStartMulRsp.class) .rspClass(TaskStartMulRsp.class)

View File

@ -50,7 +50,6 @@ public class P2TaskStop {
Assert.assertNotEquals(k.getDisposeIp().length(), 0); Assert.assertNotEquals(k.getDisposeIp().length(), 0);
Assert.assertNotNull(k.getLeftTime()); Assert.assertNotNull(k.getLeftTime());
} }
}); });
}) })