Search in sources :

Example 1 with GcpCloudProvider

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);
}
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)

Example 2 with GcpCloudProvider

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);
}
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)

Example 3 with GcpCloudProvider

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);
}
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)

Example 4 with GcpCloudProvider

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);
}
Also used : GcpCloudProvider(com.sequenceiq.it.cloudbreak.newway.cloud.GcpCloudProvider) Test(org.testng.annotations.Test) CloudbreakTest(com.sequenceiq.it.cloudbreak.newway.CloudbreakTest)

Example 5 with GcpCloudProvider

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.");
}
Also used : CloudProvider(com.sequenceiq.it.cloudbreak.newway.cloud.CloudProvider) TestParameter(com.sequenceiq.it.cloudbreak.newway.TestParameter) Logger(org.slf4j.Logger) CloudbreakClient(com.sequenceiq.it.cloudbreak.newway.CloudbreakClient) AwsCloudProvider(com.sequenceiq.it.cloudbreak.newway.cloud.AwsCloudProvider) Collection(java.util.Collection) LoggerFactory(org.slf4j.LoggerFactory) DiskTypes(com.sequenceiq.it.cloudbreak.newway.DiskTypes) Test(org.testng.annotations.Test) GcpCloudProvider(com.sequenceiq.it.cloudbreak.newway.cloud.GcpCloudProvider) Objects(java.util.Objects) Assert(org.testng.Assert) AzureCloudProvider(com.sequenceiq.it.cloudbreak.newway.cloud.AzureCloudProvider) Map(java.util.Map) Entry(java.util.Map.Entry) CloudbreakTest(com.sequenceiq.it.cloudbreak.newway.CloudbreakTest) OpenstackCloudProvider(com.sequenceiq.it.cloudbreak.newway.cloud.OpenstackCloudProvider) GcpCloudProvider(com.sequenceiq.it.cloudbreak.newway.cloud.GcpCloudProvider) Collection(java.util.Collection) Test(org.testng.annotations.Test) 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