Search in sources :

Example 1 with OpenstackCloudProvider

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

the class VmTypeTests method testCountOSVMTypesForCredentialInDefaultAvailabilityZone.

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

Example 2 with OpenstackCloudProvider

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

the class DiskTypeTests method testListOSDisplayNames.

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

Example 3 with OpenstackCloudProvider

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

the class DiskTypeTests method testListOSDiskTypes.

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

Example 4 with OpenstackCloudProvider

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

the class RegionProviderSpecTests method testOSListAvailabilityZonesForDefaultRegion.

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

Example 5 with OpenstackCloudProvider

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

the class VmTypeTests method testListOSVMTypesForCredentialInDefaultAvailabilityZone.

@Test(priority = 8, groups = "vmtypes")
public void testListOSVMTypesForCredentialInDefaultAvailabilityZone() throws Exception {
    OpenstackCloudProvider provider = new OpenstackCloudProvider(getTestParameter());
    listVMTypesForCredentialInDefaultAvailabilityZone(provider, OS_CRED_NAME);
}
Also used : OpenstackCloudProvider(com.sequenceiq.it.cloudbreak.newway.cloud.OpenstackCloudProvider) 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)8 OpenstackCloudProvider (com.sequenceiq.it.cloudbreak.newway.cloud.OpenstackCloudProvider)8 Test (org.testng.annotations.Test)8 AfterTest (org.testng.annotations.AfterTest)4 CloudbreakClient (com.sequenceiq.it.cloudbreak.newway.CloudbreakClient)2 TestParameter (com.sequenceiq.it.cloudbreak.newway.TestParameter)2 AwsCloudProvider (com.sequenceiq.it.cloudbreak.newway.cloud.AwsCloudProvider)2 AzureCloudProvider (com.sequenceiq.it.cloudbreak.newway.cloud.AzureCloudProvider)2 CloudProvider (com.sequenceiq.it.cloudbreak.newway.cloud.CloudProvider)2 GcpCloudProvider (com.sequenceiq.it.cloudbreak.newway.cloud.GcpCloudProvider)2 Logger (org.slf4j.Logger)2 LoggerFactory (org.slf4j.LoggerFactory)2 Assert (org.testng.Assert)2 VmTypeJson (com.sequenceiq.cloudbreak.api.model.VmTypeJson)1 Credential (com.sequenceiq.it.cloudbreak.newway.Credential)1 DiskTypes (com.sequenceiq.it.cloudbreak.newway.DiskTypes)1 VmType (com.sequenceiq.it.cloudbreak.newway.VmType)1 Collection (java.util.Collection)1 Map (java.util.Map)1 Entry (java.util.Map.Entry)1