e2e: To test 500MB PVC creation

Adding e2e test to check for successful PVC creation
of 500MB.

Signed-off-by: karthik-us <ksubrahm@redhat.com>
This commit is contained in:
karthik-us
2023-10-11 21:30:47 +05:30
committed by mergify[bot]
parent 5a0eeb882e
commit 5ff0607360
2 changed files with 23 additions and 2 deletions

View File

@ -67,9 +67,9 @@ func RoundOffCephFSVolSize(bytes int64) int64 {
return 4 * helpers.MiB
}
floatbytes := float64(bytes) / helpers.MiB
bytesInFloat := float64(bytes) / helpers.MiB
bytes = int64(math.Ceil(floatbytes/4) * 4)
bytes = int64(math.Ceil(bytesInFloat/4) * 4)
return RoundOffBytes(bytes * helpers.MiB)
}