Add retry after expunge data volume
@@ -130,6 +130,8 @@ class NfsDiskCapacityCase extends SubCase {
uuid = volumeInventory1.uuid
}
+ retryInSecs {
+ psRatioMgr.setGlobalRatio(1.5)
getPrimaryStorageCapacityResult = getPrimaryStorageCapacity {
primaryStorageUuids = [primaryStorageInventory.uuid]
}
@@ -138,6 +140,7 @@ class NfsDiskCapacityCase extends SubCase {
primaryStorageUuids = [primaryStorageInventory.uuid]
}
assert getPrimaryStorageCapacityResult.availableCapacity == ratio252.availableCapacity
+ }
deleteDataVolume {
uuid = volumeInventory2.uuid
@@ -146,6 +149,8 @@ class NfsDiskCapacityCase extends SubCase {
uuid = volumeInventory2.uuid
}
+ retryInSecs {
+ psRatioMgr.setGlobalRatio(2.5)
getPrimaryStorageCapacityResult = getPrimaryStorageCapacity {
primaryStorageUuids = [primaryStorageInventory.uuid]
}
@@ -154,6 +159,9 @@ class NfsDiskCapacityCase extends SubCase {
primaryStorageUuids = [primaryStorageInventory.uuid]
}
assert getPrimaryStorageCapacityResult.availableCapacity == ratio1.availableCapacity
+ }
+
+
GetPrimaryStorageCapacityResult getPrimaryStorageCapacityResult1 = getPrimaryStorageCapacity {
primaryStorageUuids = [primaryStorageInventory.uuid]
