From: neeraj pratap singh Date: Wed, 7 Aug 2024 18:57:09 +0000 (+0530) Subject: qa: modify `test_human_readable_quota_invalid_values` X-Git-Tag: testing/wip-vshankar-testing-20250105.135958-squid-debug~2^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=6b34860d03045af6d821f5b0d6d01af1fc45cda9;p=ceph-ci.git qa: modify `test_human_readable_quota_invalid_values` Fixes: https://tracker.ceph.com/issues/67169 Signed-off-by: Neeraj Pratap Singh (cherry picked from commit 0b09d16f10fbb3e2c4d38ace6106918e510dbf8f) --- 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",