From: neeraj pratap singh Date: Thu, 25 Apr 2024 08:04:09 +0000 (+0530) Subject: qa: add test for ceph tell with unknown cephtype X-Git-Tag: v19.2.3~47^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=6d28415f2882e364a882252ee3d3ae0ced166251;p=ceph.git qa: add test for ceph tell with unknown cephtype Fixes: https://tracker.ceph.com/issues/59624 Signed-off-by: Neeraj Pratap Singh (cherry picked from commit decf32e8234a00bd3af7291eac7845008d402717) Conflicts: qa/tasks/cephfs/test_misc.py --- diff --git a/qa/tasks/cephfs/test_misc.py b/qa/tasks/cephfs/test_misc.py index 7c5b517d81f6e..f927364e0336d 100644 --- a/qa/tasks/cephfs/test_misc.py +++ b/qa/tasks/cephfs/test_misc.py @@ -522,6 +522,11 @@ class TestMisc(CephFSTestCase): def test_client_ls(self): self._session_client_ls(['client', 'ls']) + def test_ceph_tell_for_unknown_cephname_type(self): + with self.assertRaises(CommandFailedError) as ce: + self.run_ceph_cmd('tell', 'cephfs.c', 'something') + self.assertEqual(ce.exception.exitstatus, 1) + @classhook('_add_session_client_evictions') class TestSessionClientEvict(CephFSTestCase): @@ -599,7 +604,7 @@ class TestSessionClientEvict(CephFSTestCase): setattr(cls, 'test_session' + t, create_test(t, ['session'])) setattr(cls, 'test_client' + t, create_test(t, ['client'])) - + class TestCacheDrop(CephFSTestCase): CLIENTS_REQUIRED = 1