diff --git a/src/test/java/com/dispose/test/qa/testcase/v20/P2DeviceAdd.java b/src/test/java/com/dispose/test/qa/testcase/v20/P2DeviceAdd.java index 73d86db7..dee15667 100644 --- a/src/test/java/com/dispose/test/qa/testcase/v20/P2DeviceAdd.java +++ b/src/test/java/com/dispose/test/qa/testcase/v20/P2DeviceAdd.java @@ -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);