]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
qa: add test for ceph tell with unknown cephtype
authorneeraj pratap singh <neerajpratapsingh@li-ff7f0d4c-3462-11b2-a85c-d4004c0fa1a0.ibm.com>
Thu, 25 Apr 2024 08:04:09 +0000 (13:34 +0530)
committerneeraj pratap singh <neerajpratapsingh@li-ff7f0d4c-3462-11b2-a85c-d4004c0fa1a0.ibm.com>
Mon, 15 Jul 2024 11:58:30 +0000 (17:28 +0530)
Fixes: https://tracker.ceph.com/issues/59624
Signed-off-by: Neeraj Pratap Singh <neesingh@redhat.com>
qa/tasks/cephfs/test_misc.py

index a2c3e735e939db42f2886cf8f7e3bf3d7f3f536c..7917bd9202fc6663668cc14a1ba6002ea9f3de7f 100644 (file)
@@ -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