summaryrefslogtreecommitdiffstats
path: root/qa/tasks/cephfs/test_quota.py
diff options
context:
space:
mode:
Diffstat (limited to 'qa/tasks/cephfs/test_quota.py')
-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",