OCT REM:[修改DeviceNodeInfoControllerQATest类:1、修改获取处置设备版本接口测试用例存在设备id 2、修改获取处置设备信息接口测试用例存在设备id 3、修改链路链接状态接口用例存在设备id]

This commit is contained in:
李淑贤 2020-05-09 17:59:01 +08:00
parent 9d35bcbb5f
commit 241badb0e2
1 changed files with 5 additions and 5 deletions

View File

@ -122,7 +122,7 @@ public class DeviceNodeInfoControllerQATest extends InitTestEnvironment{
public void a2_getVersionNormalSeveralDeviceTest() throws Exception { public void a2_getVersionNormalSeveralDeviceTest() throws Exception {
// 获取多个节点版本信息 // 获取多个节点版本信息
String reqData = "{\"ver\":2,\"cryptoType\":0,\"timeStamp\":1587604310504," + String reqData = "{\"ver\":2,\"cryptoType\":0,\"timeStamp\":1587604310504," +
"\"msgContent\":\"{\\\"id\\\":[\\\"242\\\",\\\"123\\\"]}\"}"; "\"msgContent\":\"{\\\"id\\\":[\\\"1\\\",\\\"123\\\"]}\"}";
String ver = mockMvc.perform(MockMvcRequestBuilders String ver = mockMvc.perform(MockMvcRequestBuilders
.post("/information/version") .post("/information/version")
@ -303,7 +303,7 @@ public class DeviceNodeInfoControllerQATest extends InitTestEnvironment{
@Test @Test
public void b1_getDeviceInfoNormalOneExistDeviceTest() throws Exception { public void b1_getDeviceInfoNormalOneExistDeviceTest() throws Exception {
String reqData = "{\"ver\":2,\"cryptoType\":0,\"timeStamp\":1587604310504," + String reqData = "{\"ver\":2,\"cryptoType\":0,\"timeStamp\":1587604310504," +
"\"msgContent\":\"{\\\"id\\\":[\\\"242\\\"]}\"}"; "\"msgContent\":\"{\\\"id\\\":[\\\"1\\\"]}\"}";
String deviceInfo = mockMvc.perform(MockMvcRequestBuilders String deviceInfo = mockMvc.perform(MockMvcRequestBuilders
.post("/information/deviceinfo") .post("/information/deviceinfo")
.contentType(MediaType.APPLICATION_JSON) .contentType(MediaType.APPLICATION_JSON)
@ -341,7 +341,7 @@ public class DeviceNodeInfoControllerQATest extends InitTestEnvironment{
@Test @Test
public void b2_getDeviceInfoNormalSeveralDeviceTest() throws Exception { public void b2_getDeviceInfoNormalSeveralDeviceTest() throws Exception {
String reqData = "{\"ver\":2,\"cryptoType\":0,\"timeStamp\":1587604310504," + String reqData = "{\"ver\":2,\"cryptoType\":0,\"timeStamp\":1587604310504," +
"\"msgContent\":\"{\\\"id\\\":[\\\"242\\\",\\\"123\\\"]}\"}"; "\"msgContent\":\"{\\\"id\\\":[\\\"1\\\",\\\"123\\\"]}\"}";
String deviceInfo = mockMvc.perform(MockMvcRequestBuilders String deviceInfo = mockMvc.perform(MockMvcRequestBuilders
.post("/information/deviceinfo") .post("/information/deviceinfo")
.contentType(MediaType.APPLICATION_JSON) .contentType(MediaType.APPLICATION_JSON)
@ -522,7 +522,7 @@ public class DeviceNodeInfoControllerQATest extends InitTestEnvironment{
@Test @Test
public void c1_getLinkStatusNormalOneOnlineDeviceTest() throws Exception{ public void c1_getLinkStatusNormalOneOnlineDeviceTest() throws Exception{
String reqData = "{\"ver\":2,\"cryptoType\":0,\"timeStamp\":1587604310504," + String reqData = "{\"ver\":2,\"cryptoType\":0,\"timeStamp\":1587604310504," +
"\"msgContent\":\"{\\\"id\\\":[\\\"242\\\"]}\"}"; "\"msgContent\":\"{\\\"id\\\":[\\\"1\\\"]}\"}";
String linkstatus = mockMvc.perform(MockMvcRequestBuilders String linkstatus = mockMvc.perform(MockMvcRequestBuilders
.post("/information/linkstatus") .post("/information/linkstatus")
.contentType(MediaType.APPLICATION_JSON) .contentType(MediaType.APPLICATION_JSON)
@ -564,7 +564,7 @@ public class DeviceNodeInfoControllerQATest extends InitTestEnvironment{
@Test @Test
public void c2_getLinkStatusNormalSeveralDeviceTest() throws Exception{ public void c2_getLinkStatusNormalSeveralDeviceTest() throws Exception{
String reqData = "{\"ver\":2,\"cryptoType\":0,\"timeStamp\":1587604310504," + String reqData = "{\"ver\":2,\"cryptoType\":0,\"timeStamp\":1587604310504," +
"\"msgContent\":\"{\\\"id\\\":[\\\"242\\\",\\\"123\\\"]}\"}"; "\"msgContent\":\"{\\\"id\\\":[\\\"1\\\",\\\"123\\\"]}\"}";
String linkstatus = mockMvc.perform(MockMvcRequestBuilders String linkstatus = mockMvc.perform(MockMvcRequestBuilders
.post("/information/linkstatus") .post("/information/linkstatus")
.contentType(MediaType.APPLICATION_JSON) .contentType(MediaType.APPLICATION_JSON)