Search in sources :

Example 1 with AwsCloudProvider

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

the class VmTypeTests method testListAWSVMTypesForCredentialInDefaultAvailabilityZone.

@Test(priority = 6, groups = "vmtypes")
public void testListAWSVMTypesForCredentialInDefaultAvailabilityZone() throws Exception {
    AwsCloudProvider provider = new AwsCloudProvider(getTestParameter());
    listVMTypesForCredentialInDefaultAvailabilityZone(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 2 with AwsCloudProvider

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

the class DiskTypeTests method testListAWSDiskMappings.

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

Example 3 with AwsCloudProvider

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

the class DiskTypeTests method testListAWSDiskTypes.

@Test(priority = 14, groups = "disktypes")
public void testListAWSDiskTypes() throws Exception {
    AwsCloudProvider provider = new AwsCloudProvider(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 : AwsCloudProvider(com.sequenceiq.it.cloudbreak.newway.cloud.AwsCloudProvider) 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) Collection(java.util.Collection) Test(org.testng.annotations.Test) CloudbreakTest(com.sequenceiq.it.cloudbreak.newway.CloudbreakTest)

Example 4 with AwsCloudProvider

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

the class RegionProviderSpecTests method testAWSListAvailabilityZonesForDefaultRegion.

@Test(priority = 2, groups = "regions")
public void testAWSListAvailabilityZonesForDefaultRegion() throws Exception {
    AwsCloudProvider provider = new AwsCloudProvider(getTestParameter());
    getSupportedAvailabilityZones(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 5 with AwsCloudProvider

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

the class VmTypeTests method testAWSDefaultVMTypeForCredentialInDefaultAvailabilityZone.

@Test(priority = 11, groups = "vmtypes")
public void testAWSDefaultVMTypeForCredentialInDefaultAvailabilityZone() throws Exception {
    AwsCloudProvider provider = new AwsCloudProvider(getTestParameter());
    getDefaultVMTypeForCredentialInDefaultAvailabilityZone(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)

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