]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
qa/cephfs: upgrade and rename class CapsHelper
authorRishabh Dave <ridave@redhat.com>
Thu, 28 Apr 2022 06:31:32 +0000 (12:01 +0530)
committerRishabh Dave <ridave@redhat.com>
Thu, 21 Jul 2022 12:23:16 +0000 (17:53 +0530)
commit370449ac9d088ba33111fb4948b1bf59f7901168
treee75b554efde654c84dd93d20bd573d7a10f6645f
parentd9013dacc982a9003039a21fbbf66283ae8f215a
qa/cephfs: upgrade and rename class CapsHelper

Modify caps_helper.py such that calling code does't have to store
returned values just to pass those values again to a method in
caps_helper.py. This is a common pattern where write_test_files()
return 3 values and all 3 passed as it is to run_cap_tests().

The easy way to do it is to upgrade caps_helper so that it can be used
an object and not just as a class supplying helper methods. The return
values will be stored by the object internally and thus resued. In case
of testing multiple FSs inside a single test method, we'll now need
multiple instances of this class to keep those values separate.

And since CapsHelper is not just a class supplying helper methods
anymore, it's being renamed to CapTester.

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