use of com.sequenceiq.it.cloudbreak.newway.Region in project cloudbreak by hortonworks.
the class RegionProviderSpecTests method testAzureAvailabilityZoneSupport.
@Test(priority = 1, groups = "regions")
private void testAzureAvailabilityZoneSupport() throws Exception {
AzureCloudProvider provider = new AzureCloudProvider(getTestParameter());
given(CloudbreakClient.isCreated());
given(provider.aValidCredential().withName(AZURE_CRED_NAME), "Azure credential is created");
given(Region.request(), "Azure region request");
when(Region.getPlatformRegions(), "Regions are requested to Azure credential");
then(Region.assertThis((region, t) -> {
Collection<String> availibilityZones = region.getRegionResponse().getAvailabilityZones().get(provider.region());
LOGGER.info("Azure Default Region's Availibility Zone is not supported.");
Assert.assertTrue(availibilityZones.isEmpty());
}), "Azure Default Region Availibility Zones should not be part of the response.");
}
Aggregations