]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
qa/cephfs: add and use get_ceph_cmd_stdout()
authorRishabh Dave <ridave@redhat.com>
Thu, 16 Mar 2023 10:02:39 +0000 (15:32 +0530)
committerRishabh Dave <ridave@redhat.com>
Wed, 3 Apr 2024 17:31:48 +0000 (23:01 +0530)
commitdd4720cb035c4f8e37ec94f9585180b0e240add5
tree1c3c1de7e0a2ad2403011ddb9f697705616328de
parentde8ba9c8de82301f13d28d02b68dca6d5f2af3b9
qa/cephfs: add and use get_ceph_cmd_stdout()

Add method get_ceph_cmd_stdout() to class CephFSTestCase so that one
doesn't have to type something as long as
"self.mds_cluster.mon_manager.raw_cluster_cmd()" to execute a
command and get its output. And delete and replace
CephFSTestCase.run_cluster_cmd() too.

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

Conflicts:
qa/tasks/cephfs/caps_helper.py
- This file is very different in Reef.
qa/tasks/cephfs/test_mirroring.py
- Commit e4dd0e41a3a0 was not present on main but it is now
  present on main as well as on Reef, which leads to conflict.
- On Reef branch, the line before that patch in this commit was
  thus creating a conflict when the PR branch for this commit
  series was rebased on latest Reef.
23 files changed:
qa/tasks/cephfs/cephfs_test_case.py
qa/tasks/cephfs/test_admin.py
qa/tasks/cephfs/test_damage.py
qa/tasks/cephfs/test_data_scan.py
qa/tasks/cephfs/test_failover.py
qa/tasks/cephfs/test_fragment.py
qa/tasks/cephfs/test_fstop.py
qa/tasks/cephfs/test_full.py
qa/tasks/cephfs/test_journal_repair.py
qa/tasks/cephfs/test_mantle.py
qa/tasks/cephfs/test_mds_metrics.py
qa/tasks/cephfs/test_mirroring.py
qa/tasks/cephfs/test_misc.py
qa/tasks/cephfs/test_multimds_misc.py
qa/tasks/cephfs/test_nfs.py
qa/tasks/cephfs/test_recovery_fs.py
qa/tasks/cephfs/test_recovery_pool.py
qa/tasks/cephfs/test_scrub_checks.py
qa/tasks/cephfs/test_sessionmap.py
qa/tasks/cephfs/test_snap_schedules.py
qa/tasks/cephfs/test_strays.py
qa/tasks/cephfs/test_volumes.py
qa/tasks/cephfs/xfstests_dev.py