Search in sources :

Example 6 with AwsCloudProvider

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

the class VmTypeTests method testCountAWSVMTypesForCredentialInDefaultAvailabilityZone.

@Test(priority = 2, groups = "vmtypes")
public void testCountAWSVMTypesForCredentialInDefaultAvailabilityZone() throws Exception {
    AwsCloudProvider provider = new AwsCloudProvider(getTestParameter());
    countVMTypesForCredentialInDefaultAvailabilityZone(provider, AWS_CRED_NAME);
}
Also used : AwsCloudProvider(com.sequenceiq.it.cloudbreak.newway.cloud.AwsCloudProvider) Test(org.testng.annotations.Test) AfterTest(org.testng.annotations.AfterTest) CloudbreakTest(com.sequenceiq.it.cloudbreak.newway.CloudbreakTest)

Example 7 with AwsCloudProvider

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

the class DiskTypeTests method testListAWSDefaultDisks.

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

Example 8 with AwsCloudProvider

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

the class DiskTypeTests method testListAWSDisplayNames.

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

Example 9 with AwsCloudProvider

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

the class NetworksProviderSpecificTests method testGetNetworksInvalidAvZoneAWS.

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

Aggregations

CloudbreakTest (com.sequenceiq.it.cloudbreak.newway.CloudbreakTest)9 AwsCloudProvider (com.sequenceiq.it.cloudbreak.newway.cloud.AwsCloudProvider)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 AzureCloudProvider (com.sequenceiq.it.cloudbreak.newway.cloud.AzureCloudProvider)1 CloudProvider (com.sequenceiq.it.cloudbreak.newway.cloud.CloudProvider)1 GcpCloudProvider (com.sequenceiq.it.cloudbreak.newway.cloud.GcpCloudProvider)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