use of com.vmware.photon.controller.model.adapters.awsadapter.enumeration.AWSVolumeTypeDiscoveryService.VolumeTypeList in project photon-model by vmware.
the class AWSVolumeTypeDiscoveryServiceTest method testVolumeTypeDiscovery.
@Test
public void testVolumeTypeDiscovery() {
Operation get = Operation.createGet(this.host, AWSVolumeTypeDiscoveryService.SELF_LINK + "?deviceType=ebs");
get = new TestRequestSender(this.host).sendAndWait(get);
VolumeTypeList volumes = get.getBody(AWSVolumeTypeDiscoveryService.VolumeTypeList.class);
Assert.assertEquals("The expected number of supported ebs volumes are not matching " + "the actual number volumes from the discovery service", 5, volumes.volumeTypes.size());
}
Aggregations