OCT
REM: 1. 修改获取指定能力节点处置任务列表接口和获取处置任务详细信息接口错误码为ERR_NOSUCHTASK 2. 修改任务管理冒烟测试中断言的错误码
This commit is contained in:
parent
bb264617f1
commit
f63d3ec617
|
@ -483,8 +483,8 @@ public class DisposeTaskController {
|
||||||
NodeTaskData taskData = new NodeTaskData();
|
NodeTaskData taskData = new NodeTaskData();
|
||||||
rspInfo.getItems().add(taskData);
|
rspInfo.getItems().add(taskData);
|
||||||
taskData.setId(v);
|
taskData.setId(v);
|
||||||
taskData.setStatus(ErrorCode.ERR_NOSUCHDEVICE.getCode());
|
taskData.setStatus(ErrorCode.ERR_NOSUCHTASK.getCode());
|
||||||
taskData.setMessage(ErrorCode.ERR_NOSUCHDEVICE.getMsg());
|
taskData.setMessage(ErrorCode.ERR_NOSUCHTASK.getMsg());
|
||||||
taskData.setTaskArray(null);
|
taskData.setTaskArray(null);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -555,8 +555,8 @@ public class DisposeTaskController {
|
||||||
taskData.setId("-1");
|
taskData.setId("-1");
|
||||||
taskData.setStartTime(0);
|
taskData.setStartTime(0);
|
||||||
taskData.setDisposeTime(0);
|
taskData.setDisposeTime(0);
|
||||||
taskData.setStatus(ErrorCode.ERR_NOSUCHDEVICE.getCode());
|
taskData.setStatus(ErrorCode.ERR_NOSUCHTASK.getCode());
|
||||||
taskData.setMessage(ErrorCode.ERR_NOSUCHDEVICE.getMsg());
|
taskData.setMessage(ErrorCode.ERR_NOSUCHTASK.getMsg());
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -208,8 +208,8 @@ public class TaskControllerSmokeTest extends InitTestEnvironment {
|
||||||
|
|
||||||
if (task.getStatus() == 0) {
|
if (task.getStatus() == 0) {
|
||||||
Assert.assertEquals(Long.valueOf(task.getStatus()), Long.valueOf(ErrorCode.ERR_OK.getCode()));
|
Assert.assertEquals(Long.valueOf(task.getStatus()), Long.valueOf(ErrorCode.ERR_OK.getCode()));
|
||||||
} else if (task.getStatus() == 19) {
|
} else if (task.getStatus() == 30) {
|
||||||
Assert.assertEquals(Long.valueOf(task.getStatus()), Long.valueOf(ErrorCode.ERR_NOSUCHDEVICE.getCode()));
|
Assert.assertEquals(Long.valueOf(task.getStatus()), Long.valueOf(ErrorCode.ERR_NOSUCHTASK.getCode()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue