]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
qa/cephfs: add and use run_ceph_cmd()
authorRishabh Dave <ridave@redhat.com>
Thu, 16 Mar 2023 09:41:08 +0000 (15:11 +0530)
committerRishabh Dave <ridave@redhat.com>
Wed, 3 Apr 2024 17:21:44 +0000 (22:51 +0530)
commitde8ba9c8de82301f13d28d02b68dca6d5f2af3b9
treecf0dc8d58f1b6220bb03a32b1fec935bfebd83e7
parent6efd266e469e159e06884a46823055e5cba2b266
qa/cephfs: add and use run_ceph_cmd()

Instead of writing something as long as
"self.mds_cluster.mon_manager.run_cluster_cmd()" to execute a command,
let's add a helper method to class CephFSTestCase and use it instead.

With this, running a command becomes simple - "self.run_ceph_cmd()".

Signed-off-by: Rishabh Dave <ridave@redhat.com>
(cherry picked from commit f8f2154e54e202996b24904162da6022081e9d93)

Conflicts:
qa/tasks/cephfs/test_damage.py
This file is slightly different because this commit
c8f8324ee2fae48e8d3c2bbdbf45cc9ffe46fd4c was merged on main and
backported after the commit being cherry-picked here was merged
in main.
qa/tasks/cephfs/cephfs_test_case.py
qa/tasks/cephfs/test_admin.py
qa/tasks/cephfs/test_multifs_auth.py
qa/tasks/cephfs/test_nfs.py
qa/tasks/cephfs/test_volumes.py