use of com.sequenceiq.it.cloudbreak.newway.cloud.GcpCloudProvider in project cloudbreak by hortonworks.
the class VmTypeTests method testCountGCPVMTypesForCredentialInDefaultAvailabilityZone.
@Test(priority = 3, groups = "vmtypes")
public void testCountGCPVMTypesForCredentialInDefaultAvailabilityZone() throws Exception {
GcpCloudProvider provider = new GcpCloudProvider(getTestParameter());
countVMTypesForCredentialInDefaultAvailabilityZone(provider, GCP_CRED_NAME);
}
use of com.sequenceiq.it.cloudbreak.newway.cloud.GcpCloudProvider in project cloudbreak by hortonworks.
the class VmTypeTests method testListGCPVMTypesForCredentialInDefaultAvailabilityZone.
@Test(priority = 7, groups = "vmtypes")
public void testListGCPVMTypesForCredentialInDefaultAvailabilityZone() throws Exception {
GcpCloudProvider provider = new GcpCloudProvider(getTestParameter());
listVMTypesForCredentialInDefaultAvailabilityZone(provider, GCP_CRED_NAME);
}
use of com.sequenceiq.it.cloudbreak.newway.cloud.GcpCloudProvider in project cloudbreak by hortonworks.
the class VmTypeTests method testGCPDefaultVMTypeForCredentialInDefaultAvailabilityZone.
@Test(priority = 12, groups = "vmtypes")
public void testGCPDefaultVMTypeForCredentialInDefaultAvailabilityZone() throws Exception {
GcpCloudProvider provider = new GcpCloudProvider(getTestParameter());
getDefaultVMTypeForCredentialInDefaultAvailabilityZone(provider, GCP_CRED_NAME);
}
use of com.sequenceiq.it.cloudbreak.newway.cloud.GcpCloudProvider in project cloudbreak by hortonworks.
the class DiskTypeTests method testListGCPDisplayNames.
@Test(priority = 8, groups = "disktypes")
public void testListGCPDisplayNames() throws Exception {
GcpCloudProvider provider = new GcpCloudProvider(getTestParameter());
listDisplayNamesForProvider(provider);
}
use of com.sequenceiq.it.cloudbreak.newway.cloud.GcpCloudProvider 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.");
}
Aggregations