The percentage of used capacity can be 0 in test

This commit is contained in:
Andrei Savu 2012-03-14 14:56:37 +02:00
parent 3ccea7282b
commit 6f0b420a1d
1 changed files with 1 additions and 1 deletions

View File

@ -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++;