]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
qa/cephfs: add and use get_ceph_cmd_result()
authorRishabh Dave <ridave@redhat.com>
Tue, 14 Mar 2023 19:43:56 +0000 (01:13 +0530)
committerRishabh Dave <ridave@redhat.com>
Wed, 3 Apr 2024 17:21:44 +0000 (22:51 +0530)
commit6efd266e469e159e06884a46823055e5cba2b266
treefb20d43d1afef973c29dd78d22e8990ff9961319
parent6a83a82306482a7db110ed24cae5919ea1adfbc8
qa/cephfs: add and use get_ceph_cmd_result()

To run a command and get its return value, instead of typing something
as long as "self.mds_cluster.mon_manager.raw_cluster_cmd_result" add a
hepler method in CephFSTestCase and use it. This makes this task very
simple - "self.get_ceph_cmd_result()".

Also, remove method CephFSTestCase.run_cluster_cmd_result() in favour of
this new method.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
(cherry picked from commit 82814ac49d31b0fc48ac4f3ec659a9f0a822acd2)
qa/tasks/cephfs/cephfs_test_case.py
qa/tasks/cephfs/test_failover.py
qa/tasks/cephfs/test_mantle.py
qa/tasks/cephfs/test_mds_metrics.py
qa/tasks/cephfs/test_mirroring.py
qa/tasks/cephfs/test_nfs.py
qa/tasks/cephfs/test_pool_perm.py
qa/tasks/cephfs/test_snapshots.py