mirror of https://github.com/apache/jclouds.git
Merge pull request #438 from andreisavu/1.4.x-not-used-capacity
The percentage of used capacity can be 0 in test
This commit is contained in:
commit
2ca100e89f
|
@ -45,7 +45,7 @@ public class GlobalCapacityClientLiveTest extends BaseCloudStackClientLiveTest {
|
||||||
for (Capacity capacity : response) {
|
for (Capacity capacity : response) {
|
||||||
assertTrue(capacity.getCapacityTotal() > 0);
|
assertTrue(capacity.getCapacityTotal() > 0);
|
||||||
assertTrue(capacity.getCapacityUsed() > 0);
|
assertTrue(capacity.getCapacityUsed() > 0);
|
||||||
assertTrue(capacity.getPercentUsed() > 0);
|
assertTrue(capacity.getPercentUsed() >= 0);
|
||||||
assertTrue(capacity.getType() != Capacity.Type.UNRECOGNIZED);
|
assertTrue(capacity.getType() != Capacity.Type.UNRECOGNIZED);
|
||||||
assertNotNull(capacity.getZoneName());
|
assertNotNull(capacity.getZoneName());
|
||||||
count++;
|
count++;
|
||||||
|
|
Loading…
Reference in New Issue