use of com.sequenceiq.it.cloudbreak.newway.DiskTypes in project cloudbreak by hortonworks.
the class DiskTypeTests method testListOSDiskTypes.
@Test(priority = 17, groups = "disktypes")
public void testListOSDiskTypes() throws Exception {
OpenstackCloudProvider provider = new OpenstackCloudProvider(getTestParameter());
given(CloudbreakClient.isCreated());
given(DiskTypes.request().withType(provider.getPlatform()), provider.getPlatform() + " disk types request");
when(DiskTypes.getByType(), provider.getPlatform() + " disk types are requested.");
then(DiskTypes.assertThis((disktype, t) -> {
Collection<String> diskTypes = disktype.getByFilterResponses();
diskTypes.forEach((diskType) -> LOGGER.debug(provider.getPlatform() + " Disk Type is ::: {}", diskType));
Assert.assertFalse(diskTypes.isEmpty(), "Disk Type should be present in response!");
}), provider.getPlatform() + " Disk Type should be part of the response.");
}
use of com.sequenceiq.it.cloudbreak.newway.DiskTypes in project cloudbreak by hortonworks.
the class DiskTypeTests method testListAWSDiskTypes.
@Test(priority = 14, groups = "disktypes")
public void testListAWSDiskTypes() throws Exception {
AwsCloudProvider provider = new AwsCloudProvider(getTestParameter());
given(CloudbreakClient.isCreated());
given(DiskTypes.request().withType(provider.getPlatform()), provider.getPlatform() + " disk types request");
when(DiskTypes.getByType(), provider.getPlatform() + " disk types are requested.");
then(DiskTypes.assertThis((disktype, t) -> {
Collection<String> diskTypes = disktype.getByFilterResponses();
diskTypes.forEach((diskType) -> LOGGER.debug(provider.getPlatform() + " Disk Type is ::: {}", diskType));
Assert.assertFalse(diskTypes.isEmpty(), "Disk Type should be present in response!");
}), provider.getPlatform() + " Disk Type should be part of the response.");
}
use of com.sequenceiq.it.cloudbreak.newway.DiskTypes in project cloudbreak by hortonworks.
the class DiskTypeTests method testListGCPDiskTypes.
@Test(priority = 16, groups = "disktypes")
public void testListGCPDiskTypes() throws Exception {
GcpCloudProvider provider = new GcpCloudProvider(getTestParameter());
given(CloudbreakClient.isCreated());
given(DiskTypes.request().withType(provider.getPlatform()), provider.getPlatform() + " disk types request");
when(DiskTypes.getByType(), provider.getPlatform() + " disk types are requested.");
then(DiskTypes.assertThis((disktype, t) -> {
Collection<String> diskTypes = disktype.getByFilterResponses();
diskTypes.forEach((diskType) -> LOGGER.debug(provider.getPlatform() + " Disk Type is ::: {}", diskType));
Assert.assertFalse(diskTypes.isEmpty(), "Disk Type should be present in response!");
}), provider.getPlatform() + " Disk Type should be part of the response.");
}
use of com.sequenceiq.it.cloudbreak.newway.DiskTypes in project cloudbreak by hortonworks.
the class DiskTypeTests method testListAzureDiskTypes.
@Test(priority = 15, groups = "disktypes")
public void testListAzureDiskTypes() throws Exception {
AzureCloudProvider provider = new AzureCloudProvider(getTestParameter());
given(CloudbreakClient.isCreated());
given(DiskTypes.request().withType(provider.getPlatform()), provider.getPlatform() + " disk types request");
when(DiskTypes.getByType(), provider.getPlatform() + " disk types are requested.");
then(DiskTypes.assertThis((disktype, t) -> {
Collection<String> diskTypes = disktype.getByFilterResponses();
diskTypes.forEach((diskType) -> LOGGER.debug(provider.getPlatform() + " Disk Type is ::: {}", diskType));
Assert.assertFalse(diskTypes.isEmpty(), "Disk Type should be present in response!");
}), provider.getPlatform() + " Disk Type should be part of the response.");
}
Aggregations