REM:
1. 修改获取能力节点所有处置任务列表接口的断言
This commit is contained in:
chenlinghy 2020-07-08 14:36:51 +08:00
parent 1effae94f4
commit e7b175d930
1 changed files with 10 additions and 2 deletions

View File

@ -2623,8 +2623,16 @@ public class DeviceNodeInfoControllerQATest extends InitTestEnvironment {
rspInfo.getItems().forEach(v -> { rspInfo.getItems().forEach(v -> {
Assert.assertNotNull(v); Assert.assertNotNull(v);
Assert.assertNotNull(v.getId()); Assert.assertNotNull(v.getId());
Assert.assertNotNull(v.getStatus());
Assert.assertNotNull(v.getMessage());
if(v.getStatus() == 19){
Assert.assertEquals(Long.valueOf(v.getStatus()), Long.valueOf(ErrorCode.ERR_NOSUCHDEVICE.getCode()));
Assert.assertEquals(v.getMessage(), ErrorCode.ERR_NOSUCHDEVICE.getMsg());
}else if(v.getStatus() == 30){
Assert.assertEquals(Long.valueOf(v.getStatus()), Long.valueOf(ErrorCode.ERR_NOSUCHTASK.getCode())); Assert.assertEquals(Long.valueOf(v.getStatus()), Long.valueOf(ErrorCode.ERR_NOSUCHTASK.getCode()));
Assert.assertEquals(v.getMessage(), ErrorCode.ERR_NOSUCHTASK.getMsg()); Assert.assertEquals(v.getMessage(), ErrorCode.ERR_NOSUCHTASK.getMsg());
}
}); });
} }