From aae18e433434f1c88f0e2019c36a379712fbea83 Mon Sep 17 00:00:00 2001 From: neeraj pratap singh Date: Thu, 25 Apr 2024 13:34:09 +0530 Subject: [PATCH] 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) --- qa/tasks/cephfs/test_misc.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/qa/tasks/cephfs/test_misc.py b/qa/tasks/cephfs/test_misc.py index 1e8f564e3dc00..422ba5d0076af 100644 --- a/qa/tasks/cephfs/test_misc.py +++ b/qa/tasks/cephfs/test_misc.py @@ -524,6 +524,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): -- 2.39.5