Search in sources :

Example 1 with CloudProvider

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

the class NetworksProviderSpecificTests method beforeTest.

@BeforeTest
public void beforeTest() throws Exception {
    CloudProvider cloudProvider;
    String[] providers = { "aws", "azure", "openstack", "gcp" };
    for (String provider : providers) {
        cloudProvider = CloudProviderHelper.providerFactory(provider, getTestParameter())[0];
        given(CloudbreakClient.isCreated());
        given(cloudProvider.aValidCredential().withName(VALID_CRED_NAME + provider + "-spec").withDescription("").withCloudPlatform(cloudProvider.getPlatform()), provider + " credential is created.");
        getCredentialId(provider, VALID_CRED_NAME + provider + "-spec");
    }
}
Also used : CloudProvider(com.sequenceiq.it.cloudbreak.newway.cloud.CloudProvider) AwsCloudProvider(com.sequenceiq.it.cloudbreak.newway.cloud.AwsCloudProvider) GcpCloudProvider(com.sequenceiq.it.cloudbreak.newway.cloud.GcpCloudProvider) BeforeTest(org.testng.annotations.BeforeTest)

Aggregations

AwsCloudProvider (com.sequenceiq.it.cloudbreak.newway.cloud.AwsCloudProvider)1 CloudProvider (com.sequenceiq.it.cloudbreak.newway.cloud.CloudProvider)1 GcpCloudProvider (com.sequenceiq.it.cloudbreak.newway.cloud.GcpCloudProvider)1 BeforeTest (org.testng.annotations.BeforeTest)1