From 2dc4867721f2dbeb0f025afbfc2bf8b4f161110a Mon Sep 17 00:00:00 2001 From: chenlinghy Date: Mon, 14 Sep 2020 14:43:39 +0800 Subject: [PATCH] =?UTF-8?q?OCT=20REM:=201.=E4=BF=AE=E6=94=B9=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E8=AE=BE=E5=A4=87P2=E6=B5=8B=E8=AF=95=E7=94=A8?= =?UTF-8?q?=E4=BE=8B=E7=9A=84=E8=AF=B7=E6=B1=82=E6=B6=88=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/dispose/test/qa/testcase/v20/P2DeviceAdd.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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);