Skip to content

Commit 0b09d16

Browse files
author
neeraj pratap singh
committed
qa: modify test_human_readable_quota_invalid_values
Fixes: https://tracker.ceph.com/issues/67169 Signed-off-by: Neeraj Pratap Singh <[email protected]>
1 parent 07d5199 commit 0b09d16

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

qa/tasks/cephfs/test_quota.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,11 @@ def test_human_readable_quota_values(self):
115115

116116
readable_values = {"10K": "10240",
117117
"100Ki": "102400",
118+
"100KiB": "102400",
118119
"10M": "10485760",
119120
"100Mi": "104857600",
120121
"2G": "2147483648",
122+
"2GB": "2147483648",
121123
"4Gi": "4294967296",
122124
"1T": "1099511627776",
123125
"2Ti": "2199023255552"}
@@ -135,7 +137,8 @@ def test_human_readable_quota_invalid_values(self):
135137

136138
self.mount_a.run_shell(["mkdir", "subdir"])
137139

138-
invalid_values = ["10A", "1y00Ki", "af00", "G", "", " ", "-1t", "-1"]
140+
invalid_values = ["10A", "1y00Ki", "af00", "G", "", " ", "-1t", "-1",
141+
"1GT", "2MM", "5Di", "8Bi", "i", "7iB"]
139142
for invalid_value in invalid_values:
140143
with self.assertRaises(CommandFailedError):
141144
self.mount_a.setfattr("./subdir", "ceph.quota.max_bytes",

0 commit comments

Comments
 (0)