String region = Iterables.getFirst(api.getConfiguredRegions(), "nova");
quotaApi = api.getQuotaApi(region);
}
public void testGetStorageQuotas() throws ExecutionException, InterruptedException {
VolumeQuota volumeQuota = quotaApi.getByTenant("demo");
assertTrue(volumeQuota.getGigabytes() >= 0);
assertTrue(volumeQuota.getVolumes() >= 0);
assertTrue(volumeQuota.getSnapshots() >= 0);
}