REM:
修改获取存在的一个能力节点详细信息测试用例
This commit is contained in:
lijinxing 2020-05-09 18:42:28 +08:00
parent a0dda8322c
commit e78efced36
1 changed files with 19 additions and 1 deletions

View File

@ -6,6 +6,7 @@ import com.dispose.common.ErrorCode;
import com.dispose.mapper.DisposeTaskMapper;
import com.dispose.pojo.entity.DisposeDevice;
import com.dispose.pojo.po.ReturnStatus;
import com.dispose.pojo.vo.common.DisposeCapacity;
import com.dispose.pojo.vo.common.TaskInfoData;
import com.dispose.pojo.vo.common.TaskInfoDetail;
import com.dispose.pojo.vo.information.DisposeNodeData;
@ -203,7 +204,7 @@ public class DeviceNodeInfoControllerSmokeTest extends InitTestEnvironment {
}
/**
* C 1 get node details normal test.
* C 1 get Node Details Normal Test.
*
* @throws Exception the exception
*/
@ -226,6 +227,23 @@ public class DeviceNodeInfoControllerSmokeTest extends InitTestEnvironment {
Assert.assertNotNull(rspInfo);
Assert.assertNotEquals(rspInfo.getItems().size(), 0);
//DisposeDevice dev = disposeNodeManager.getDisposeDeviceById(1L);
DisposeNodeData dpData = rspInfo.getItems().get(0);
Assert.assertNotNull(dpData);
Assert.assertNotNull(dpData.getId());
Assert.assertNotNull(dpData.getType());
Assert.assertNotNull(dpData.getIp());
Assert.assertNotNull(dpData.getStatus());
Assert.assertNotNull(dpData.getMessage());
Assert.assertNotNull(dpData.getCapacity());
DisposeCapacity taskInfoData = dpData.getCapacity().get(0);
Assert.assertNotNull(taskInfoData);
Assert.assertNotNull(taskInfoData.getType());
Assert.assertNotNull(taskInfoData.getDisposeIp());
}
/**