From 0b09d16f10fbb3e2c4d38ace6106918e510dbf8f Mon Sep 17 00:00:00 2001 From: neeraj pratap singh Date: Thu, 8 Aug 2024 00:27:09 +0530 Subject: [PATCH] qa: modify `test_human_readable_quota_invalid_values` Fixes: https://tracker.ceph.com/issues/67169 Signed-off-by: Neeraj Pratap Singh --- qa/tasks/cephfs/test_quota.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/qa/tasks/cephfs/test_quota.py b/qa/tasks/cephfs/test_quota.py index b5691c83852d0..ae1c1f2056c66 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", -- 2.39.5