]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
qa/ceph_manager: make it possible to reuse few methods
authorRishabh Dave <ridave@redhat.com>
Tue, 8 Dec 2020 05:10:35 +0000 (10:40 +0530)
committerRishabh Dave <ridave@redhat.com>
Mon, 2 Aug 2021 06:07:49 +0000 (11:37 +0530)
commit93677576c1fd6d0e4e2991a9ba6be6d222ea98ea
tree66aa15a50be351090a19ec9f82dcd96767b40135
parent047c90f881d362d349dc813691962665c918a83f
qa/ceph_manager: make it possible to reuse few methods

Make minor adjustments to ceph_manager.CephManager so that methods
run_ceph_w(), run_cluster_cmd() raw_cluster_cmd() and
raw_cluster_cmd_result() can be reused, instead of duplicating, in
subclasses. The adjustments are -

* Having variables contain arguments that'll be prepended to every
  command received by the methods above.
* Grouping variables that needs to be overridden together so that it is
  easy to spot and override them for users.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
qa/tasks/ceph_manager.py