Skip to content

Commit 814f113

Browse files
author
neeraj pratap singh
committed
qa: add test case for remove xattr
Fixes: https://tracker.ceph.com/issues/69274 Signed-off-by: Neeraj Pratap Singh <[email protected]>
1 parent ef84118 commit 814f113

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

qa/tasks/cephfs/test_cephfs_shell.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -980,6 +980,13 @@ def test_non_existing_dir(self):
980980
cmd=['getxattr', self.dir_name, input_val[0]])
981981
self.negtest_cephfs_shell_cmd(cmd=['listxattr', self.dir_name])
982982

983+
def test_remove_xattr(self):
984+
self.test_set()
985+
self.get_cephfs_shell_cmd_output(
986+
['removexattr', self.dir_name, 'user.key'])
987+
self.negtest_cephfs_shell_cmd(
988+
cmd=['getxattr', self.dir_name, 'user.key'])
989+
983990

984991
class TestLS(TestCephFSShell):
985992
dir_name = 'test_dir'

0 commit comments

Comments
 (0)