Search in sources :

Example 1 with VolumeTypeList

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());
}
Also used : VolumeTypeList(com.vmware.photon.controller.model.adapters.awsadapter.enumeration.AWSVolumeTypeDiscoveryService.VolumeTypeList) TestRequestSender(com.vmware.xenon.common.test.TestRequestSender) Operation(com.vmware.xenon.common.Operation) Test(org.junit.Test)

Aggregations

VolumeTypeList (com.vmware.photon.controller.model.adapters.awsadapter.enumeration.AWSVolumeTypeDiscoveryService.VolumeTypeList)1 Operation (com.vmware.xenon.common.Operation)1 TestRequestSender (com.vmware.xenon.common.test.TestRequestSender)1 Test (org.junit.Test)1