fix AttachNfsWhenNoConnectedHostCase
@@ -132,10 +132,14 @@ class AttachNfsWhenNoConnectedHostCase extends SubCase {
primaryStorageUuid = ps.uuid
clusterUuid = clusterInventory.uuid
}
- GetPrimaryStorageCapacityResult capacity = getPrimaryStorageCapacity {
+
+ GetPrimaryStorageCapacityResult capacity
+
+ retryInSecs(2){
+ capacity = getPrimaryStorageCapacity {
primaryStorageUuids = [ps.uuid]
}
- retryInSecs(2){
+
assert 0 == capacity.availableCapacity
assert 0 == capacity.availablePhysicalCapacity
assert 0 == capacity.totalPhysicalCapacity
@@ -157,13 +161,18 @@ class AttachNfsWhenNoConnectedHostCase extends SubCase {
primaryStorageUuid = ps.uuid
clusterUuid = clusterInventory.uuid
}
+
+
+ retryInSecs(){
capacity = getPrimaryStorageCapacity {
primaryStorageUuids = [ps.uuid]
}
- assert 0 != capacity.availableCapacity
+
+ assert 0 >= capacity.availableCapacity
assert 0 == capacity.availablePhysicalCapacity
assert 0 == capacity.totalPhysicalCapacity
assert 0 == capacity.totalCapacity
+ }
env.afterSimulator(KVMConstant.KVM_CONNECT_PATH) { rsp, HttpEntity<String> e ->
rsp.success = true
