REM:
1.修改添加设备P2测试用例的请求消息
This commit is contained in:
chenlinghy 2020-09-14 14:43:39 +08:00
parent 8950379d5d
commit 2dc4867721
1 changed files with 4 additions and 4 deletions

View File

@ -79,7 +79,7 @@ public class P2DeviceAdd {
"\"urlPath\":\"UMC/service/AbnormalFlowCleaningService\",\"urlType\":0," +
"\"readme\":\"实验室测试设备\",\"capacity\":[{\"capacityType\":0,\"objectType\":1," +
"\"ipType\":1,\"protectIp\":\"192.168.20.1/24\",\"reserveNetflow\":10}," +
"{\"capacityType\":1,\"objectType\":4,\"ipType\":2,\"reserveNetflow\":20}," +
"{\"capacityType\":2,\"objectType\":2,\"ipType\":2}," +
"{\"capacityType\":3,\"objectType\":2,\"ipType\":2}]}]}}")
.rspClass(AddDeviceRsp.class)
.rspCode(ErrorCode.ERR_OK)
@ -93,10 +93,10 @@ public class P2DeviceAdd {
Assert.assertEquals((long) k.getIpType().getValue(), 1);
Assert.assertEquals((long) k.getReserveNetflow(), 10);
Assert.assertEquals(k.getProtectIp(), "192.168.20.1/24");
} else if (k.getCapacityType() == DisposeCapacityType.BLACKHOOL) {
Assert.assertEquals((long) k.getObjectType().getValue(), 4);
} else if (k.getCapacityType() == DisposeCapacityType.HIDEPEND) {
Assert.assertEquals((long) k.getObjectType().getValue(), 2);
Assert.assertEquals((long) k.getIpType().getValue(), 2);
Assert.assertEquals((long) k.getReserveNetflow(), 20);
Assert.assertNull(k.getReserveNetflow());
} else {
Assert.assertEquals((long) k.getObjectType().getValue(), 2);
Assert.assertEquals((long) k.getIpType().getValue(), 2);