From 1523cda26efb3235376845e3f83ae3f83bdeb2da Mon Sep 17 00:00:00 2001 From: neeraj pratap singh Date: Wed, 5 Mar 2025 19:51:11 +0530 Subject: [PATCH] qa: add test case for remove xattr Fixes: https://tracker.ceph.com/issues/69274 Signed-off-by: Neeraj Pratap Singh (cherry picked from commit 814f1136cac341891fab40a13f7a2a6fd0f2c853) --- qa/tasks/cephfs/test_cephfs_shell.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/qa/tasks/cephfs/test_cephfs_shell.py b/qa/tasks/cephfs/test_cephfs_shell.py index c13360c5eb4..3733d233c2e 100644 --- a/qa/tasks/cephfs/test_cephfs_shell.py +++ b/qa/tasks/cephfs/test_cephfs_shell.py @@ -980,6 +980,13 @@ class TestXattr(TestCephFSShell): cmd=['getxattr', self.dir_name, input_val[0]]) self.negtest_cephfs_shell_cmd(cmd=['listxattr', self.dir_name]) + def test_remove_xattr(self): + self.test_set() + self.get_cephfs_shell_cmd_output( + ['removexattr', self.dir_name, 'user.key']) + self.negtest_cephfs_shell_cmd( + cmd=['getxattr', self.dir_name, 'user.key']) + class TestLS(TestCephFSShell): dir_name = 'test_dir' -- 2.39.5