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:
Adrian Cole 2012-03-14 08:06:42 -07:00
commit 2ca100e89f
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ public class GlobalCapacityClientLiveTest extends BaseCloudStackClientLiveTest {
for (Capacity capacity : response) {
assertTrue(capacity.getCapacityTotal() > 0);
assertTrue(capacity.getCapacityUsed() > 0);
assertTrue(capacity.getPercentUsed() > 0);
assertTrue(capacity.getPercentUsed() >= 0);
assertTrue(capacity.getType() != Capacity.Type.UNRECOGNIZED);
assertNotNull(capacity.getZoneName());
count++;