summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorneeraj pratap singh <neerajpratapsingh@li-ff7f0d4c-3462-11b2-a85c-d4004c0fa1a0.ibm.com>2024-08-07 20:57:09 +0200
committerneeraj pratap singh <neerajpratapsingh@li-ff7f0d4c-3462-11b2-a85c-d4004c0fa1a0.ibm.com>2024-09-24 10:03:40 +0200
commit0b09d16f10fbb3e2c4d38ace6106918e510dbf8f (patch)
treef0a5da919e37755310d7c000baab20d74327eeff
parentsrc/test: test to check proper handling of units by strict_iec_cast (diff)
downloadceph-0b09d16f10fbb3e2c4d38ace6106918e510dbf8f.tar.xz
ceph-0b09d16f10fbb3e2c4d38ace6106918e510dbf8f.zip
qa: modify `test_human_readable_quota_invalid_values`
Fixes: https://tracker.ceph.com/issues/67169 Signed-off-by: Neeraj Pratap Singh <neesingh@redhat.com>
-rw-r--r--qa/tasks/cephfs/test_quota.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/qa/tasks/cephfs/test_quota.py b/qa/tasks/cephfs/test_quota.py
index b5691c83852..ae1c1f2056c 100644
--- a/qa/tasks/cephfs/test_quota.py
+++ b/qa/tasks/cephfs/test_quota.py
@@ -115,9 +115,11 @@ class TestQuota(CephFSTestCase):
readable_values = {"10K": "10240",
"100Ki": "102400",
+ "100KiB": "102400",
"10M": "10485760",
"100Mi": "104857600",
"2G": "2147483648",
+ "2GB": "2147483648",
"4Gi": "4294967296",
"1T": "1099511627776",
"2Ti": "2199023255552"}
@@ -135,7 +137,8 @@ class TestQuota(CephFSTestCase):
self.mount_a.run_shell(["mkdir", "subdir"])
- invalid_values = ["10A", "1y00Ki", "af00", "G", "", " ", "-1t", "-1"]
+ invalid_values = ["10A", "1y00Ki", "af00", "G", "", " ", "-1t", "-1",
+ "1GT", "2MM", "5Di", "8Bi", "i", "7iB"]
for invalid_value in invalid_values:
with self.assertRaises(CommandFailedError):
self.mount_a.setfattr("./subdir", "ceph.quota.max_bytes",