OCT REM:[修改DeviceNodeInfoControllerQATest类:1、修改获取处置设备版本接口测试用例存在设备id 2、修改获取处置设备信息接口测试用例存在设备id 3、修改链路链接状态接口用例存在设备id]
This commit is contained in:
parent
9d35bcbb5f
commit
241badb0e2
|
@ -122,7 +122,7 @@ public class DeviceNodeInfoControllerQATest extends InitTestEnvironment{
|
|||
public void a2_getVersionNormalSeveralDeviceTest() throws Exception {
|
||||
// 获取多个节点版本信息
|
||||
String reqData = "{\"ver\":2,\"cryptoType\":0,\"timeStamp\":1587604310504," +
|
||||
"\"msgContent\":\"{\\\"id\\\":[\\\"242\\\",\\\"123\\\"]}\"}";
|
||||
"\"msgContent\":\"{\\\"id\\\":[\\\"1\\\",\\\"123\\\"]}\"}";
|
||||
|
||||
String ver = mockMvc.perform(MockMvcRequestBuilders
|
||||
.post("/information/version")
|
||||
|
@ -303,7 +303,7 @@ public class DeviceNodeInfoControllerQATest extends InitTestEnvironment{
|
|||
@Test
|
||||
public void b1_getDeviceInfoNormalOneExistDeviceTest() throws Exception {
|
||||
String reqData = "{\"ver\":2,\"cryptoType\":0,\"timeStamp\":1587604310504," +
|
||||
"\"msgContent\":\"{\\\"id\\\":[\\\"242\\\"]}\"}";
|
||||
"\"msgContent\":\"{\\\"id\\\":[\\\"1\\\"]}\"}";
|
||||
String deviceInfo = mockMvc.perform(MockMvcRequestBuilders
|
||||
.post("/information/deviceinfo")
|
||||
.contentType(MediaType.APPLICATION_JSON)
|
||||
|
@ -341,7 +341,7 @@ public class DeviceNodeInfoControllerQATest extends InitTestEnvironment{
|
|||
@Test
|
||||
public void b2_getDeviceInfoNormalSeveralDeviceTest() throws Exception {
|
||||
String reqData = "{\"ver\":2,\"cryptoType\":0,\"timeStamp\":1587604310504," +
|
||||
"\"msgContent\":\"{\\\"id\\\":[\\\"242\\\",\\\"123\\\"]}\"}";
|
||||
"\"msgContent\":\"{\\\"id\\\":[\\\"1\\\",\\\"123\\\"]}\"}";
|
||||
String deviceInfo = mockMvc.perform(MockMvcRequestBuilders
|
||||
.post("/information/deviceinfo")
|
||||
.contentType(MediaType.APPLICATION_JSON)
|
||||
|
@ -522,7 +522,7 @@ public class DeviceNodeInfoControllerQATest extends InitTestEnvironment{
|
|||
@Test
|
||||
public void c1_getLinkStatusNormalOneOnlineDeviceTest() throws Exception{
|
||||
String reqData = "{\"ver\":2,\"cryptoType\":0,\"timeStamp\":1587604310504," +
|
||||
"\"msgContent\":\"{\\\"id\\\":[\\\"242\\\"]}\"}";
|
||||
"\"msgContent\":\"{\\\"id\\\":[\\\"1\\\"]}\"}";
|
||||
String linkstatus = mockMvc.perform(MockMvcRequestBuilders
|
||||
.post("/information/linkstatus")
|
||||
.contentType(MediaType.APPLICATION_JSON)
|
||||
|
@ -564,7 +564,7 @@ public class DeviceNodeInfoControllerQATest extends InitTestEnvironment{
|
|||
@Test
|
||||
public void c2_getLinkStatusNormalSeveralDeviceTest() throws Exception{
|
||||
String reqData = "{\"ver\":2,\"cryptoType\":0,\"timeStamp\":1587604310504," +
|
||||
"\"msgContent\":\"{\\\"id\\\":[\\\"242\\\",\\\"123\\\"]}\"}";
|
||||
"\"msgContent\":\"{\\\"id\\\":[\\\"1\\\",\\\"123\\\"]}\"}";
|
||||
String linkstatus = mockMvc.perform(MockMvcRequestBuilders
|
||||
.post("/information/linkstatus")
|
||||
.contentType(MediaType.APPLICATION_JSON)
|
||||
|
|
Loading…
Reference in New Issue