use of com.sequenceiq.it.cloudbreak.newway.cloud.OpenstackCloudProvider in project cloudbreak by hortonworks.
the class VmTypeTests method testOSDefaultVMTypeSupport.
@Test(priority = 10, groups = "vmtypes")
public void testOSDefaultVMTypeSupport() throws Exception {
OpenstackCloudProvider provider = new OpenstackCloudProvider(getTestParameter());
given(CloudbreakClient.isCreated());
given(provider.aValidCredential().withName(OS_CRED_NAME), "OpenStack credential is created");
given(VmType.request().withPlatform(provider.getPlatform()).withRegion(provider.region()).withAvailabilityZone(provider.availabilityZone()), "OpenStack vm type request");
when(VmType.getPlatformVmTypes(), "vm types are requested to OpenStack credential and " + provider.region() + " region.");
then(VmType.assertThis((vmtype, t) -> {
LOGGER.info("OpenStack Default Virtual Machine is not supported for OpenStack.");
Assert.assertNull(vmtype.getResponse().getVmTypes().get(provider.availabilityZone()).getDefaultVirtualMachine(), "OpenStack Default Virtual Machine should not be present in response!");
}), "OpenStack Default Virtual Machine should not be part of the response.");
}
use of com.sequenceiq.it.cloudbreak.newway.cloud.OpenstackCloudProvider in project cloudbreak by hortonworks.
the class DiskTypeTests method testListOSDiskMappings.
@Test(priority = 13, groups = "disktypes")
public void testListOSDiskMappings() throws Exception {
OpenstackCloudProvider provider = new OpenstackCloudProvider(getTestParameter());
listDiskMappingsForProvider(provider);
}
use of com.sequenceiq.it.cloudbreak.newway.cloud.OpenstackCloudProvider in project cloudbreak by hortonworks.
the class DiskTypeTests method testListOSDefaultDisks.
@Test(priority = 5, groups = "disktypes")
public void testListOSDefaultDisks() throws Exception {
OpenstackCloudProvider provider = new OpenstackCloudProvider(getTestParameter());
listDefaultDisksForProvdier(provider);
}
Aggregations