From 21c04f00b689eb8d4653d28ac31bdab8b8ec4d88 Mon Sep 17 00:00:00 2001 From: lijinxing Date: Wed, 8 Jul 2020 09:49:50 +0800 Subject: [PATCH] =?UTF-8?q?OCT=20REM=EF=BC=9A=201.=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=96=B0=E7=9A=84=E8=BF=AA=E6=99=AE=E8=83=BD?= =?UTF-8?q?=E5=8A=9B=E8=8A=82=E7=82=B9=E5=86=92=E7=83=9F=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../DeviceNodeManagerControllerSmokeTest.java | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/test/java/com/dispose/test/controller/DeviceNodeManagerControllerSmokeTest.java b/src/test/java/com/dispose/test/controller/DeviceNodeManagerControllerSmokeTest.java index f3175838..37a699cb 100644 --- a/src/test/java/com/dispose/test/controller/DeviceNodeManagerControllerSmokeTest.java +++ b/src/test/java/com/dispose/test/controller/DeviceNodeManagerControllerSmokeTest.java @@ -92,17 +92,20 @@ public class DeviceNodeManagerControllerSmokeTest extends InitTestEnvironment { } /** - * A 1 add Normal DeviceNodeManager test. + * A 1 add Normal DPTech DeviceNodeManager test. * * @throws Exception the exception */ @Test - public void a1_addNormalDeviceNodeManager() throws Exception { - String reqData = "{\"ver\":2,\"cryptoType\":0,\"timeStamp\":1587628826908," + + public void a1_addNormalDPTechDeviceNodeManager() throws Exception { + String reqData = "{\"ver\": 2,\"cryptoType\": 0,\"timeStamp\": 1589437275258," + "\"msgContent\":\"{\\\"items\\\":[{\\\"areaCode\\\":0,\\\"ipAddr\\\":\\\"10.88.77.15\\\"," + "\\\"manufacturer\\\":\\\"DPTech\\\",\\\"model\\\":\\\"UMC\\\"," + "\\\"name\\\":\\\"中移杭研实验室清洗设备\\\",\\\"readme\\\":\\\"实验室测试设备\\\"," + - "\\\"type\\\":0,\\\"version\\\":\\\"5.7.13\\\"}]}\"}"; + "\\\"type\\\":0,\\\"version\\\":\\\"5.7.13\\\",\\\"userName\\\":\\\"admin\\\"," + + "\\\"password\\\":\\\"UMCAdministrator\\\"," + + "\\\"url\\\":\\\"http://%s/UMC/service/AbnormalFlowCleaningService\\\" }]}\"\n" + + "}"; String ret = mockMvc.perform(MockMvcRequestBuilders .put("/manager/device") @@ -133,7 +136,6 @@ public class DeviceNodeManagerControllerSmokeTest extends InitTestEnvironment { } } - /** * B 1 delete Normal DeviceNodeManager test. *