Search in sources :

Example 6 with GcpCloudProvider

use of com.sequenceiq.it.cloudbreak.newway.cloud.GcpCloudProvider in project cloudbreak by hortonworks.

the class NetworksProviderSpecificTests method testGetNetworksInvalidAvZoneGCP.

@Test
public void testGetNetworksInvalidAvZoneGCP() throws Exception {
    GcpCloudProvider gcpCloudProvider = new GcpCloudProvider(getTestParameter());
    given(Networks.request().withCredentialId(credentialIdMap.get("gcp")).withRegion(gcpCloudProvider.region()).withAvailabilityZone(null), "get networks with availability zone");
    when(Networks.post(), "post the request");
    then(Networks.assertNameNotEmpty());
}
Also used : GcpCloudProvider(com.sequenceiq.it.cloudbreak.newway.cloud.GcpCloudProvider) Test(org.testng.annotations.Test) AfterTest(org.testng.annotations.AfterTest) BeforeTest(org.testng.annotations.BeforeTest) CloudbreakTest(com.sequenceiq.it.cloudbreak.newway.CloudbreakTest)

Example 7 with GcpCloudProvider

use of com.sequenceiq.it.cloudbreak.newway.cloud.GcpCloudProvider in project cloudbreak by hortonworks.

the class DiskTypeTests method testListGCPDiskMappings.

@Test(priority = 12, groups = "disktypes")
public void testListGCPDiskMappings() throws Exception {
    GcpCloudProvider provider = new GcpCloudProvider(getTestParameter());
    listDiskMappingsForProvider(provider);
}
Also used : GcpCloudProvider(com.sequenceiq.it.cloudbreak.newway.cloud.GcpCloudProvider) Test(org.testng.annotations.Test) CloudbreakTest(com.sequenceiq.it.cloudbreak.newway.CloudbreakTest)

Example 8 with GcpCloudProvider

use of com.sequenceiq.it.cloudbreak.newway.cloud.GcpCloudProvider in project cloudbreak by hortonworks.

the class DiskTypeTests method testListGCPDefaultDisks.

@Test(priority = 4, groups = "disktypes")
public void testListGCPDefaultDisks() throws Exception {
    GcpCloudProvider provider = new GcpCloudProvider(getTestParameter());
    listDefaultDisksForProvdier(provider);
}
Also used : GcpCloudProvider(com.sequenceiq.it.cloudbreak.newway.cloud.GcpCloudProvider) Test(org.testng.annotations.Test) CloudbreakTest(com.sequenceiq.it.cloudbreak.newway.CloudbreakTest)

Example 9 with GcpCloudProvider

use of com.sequenceiq.it.cloudbreak.newway.cloud.GcpCloudProvider in project cloudbreak by hortonworks.

the class RegionProviderSpecTests method testGCPListAvailabilityZonesForDefaultRegion.

@Test(priority = 3, groups = "regions")
public void testGCPListAvailabilityZonesForDefaultRegion() throws Exception {
    GcpCloudProvider provider = new GcpCloudProvider(getTestParameter());
    getSupportedAvailabilityZones(provider, GCP_CRED_NAME);
}
Also used : GcpCloudProvider(com.sequenceiq.it.cloudbreak.newway.cloud.GcpCloudProvider) Test(org.testng.annotations.Test) AfterTest(org.testng.annotations.AfterTest) CloudbreakTest(com.sequenceiq.it.cloudbreak.newway.CloudbreakTest)

Aggregations

CloudbreakTest (com.sequenceiq.it.cloudbreak.newway.CloudbreakTest)9 GcpCloudProvider (com.sequenceiq.it.cloudbreak.newway.cloud.GcpCloudProvider)9 Test (org.testng.annotations.Test)9 AfterTest (org.testng.annotations.AfterTest)5 CloudbreakClient (com.sequenceiq.it.cloudbreak.newway.CloudbreakClient)1 DiskTypes (com.sequenceiq.it.cloudbreak.newway.DiskTypes)1 TestParameter (com.sequenceiq.it.cloudbreak.newway.TestParameter)1 AwsCloudProvider (com.sequenceiq.it.cloudbreak.newway.cloud.AwsCloudProvider)1 AzureCloudProvider (com.sequenceiq.it.cloudbreak.newway.cloud.AzureCloudProvider)1 CloudProvider (com.sequenceiq.it.cloudbreak.newway.cloud.CloudProvider)1 OpenstackCloudProvider (com.sequenceiq.it.cloudbreak.newway.cloud.OpenstackCloudProvider)1 Collection (java.util.Collection)1 Map (java.util.Map)1 Entry (java.util.Map.Entry)1 Objects (java.util.Objects)1 Logger (org.slf4j.Logger)1 LoggerFactory (org.slf4j.LoggerFactory)1 Assert (org.testng.Assert)1 BeforeTest (org.testng.annotations.BeforeTest)1