]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
qa/cephfs/cap_tester: simplify CapTester and its instantiation 50882/head
authorRishabh Dave <ridave@redhat.com>
Tue, 18 Apr 2023 14:55:01 +0000 (20:25 +0530)
committerRishabh Dave <ridave@redhat.com>
Tue, 18 Apr 2023 15:02:15 +0000 (20:32 +0530)
commitf0ffade0525674b1f851797b1107060d8aa93d5c
treec8bb7271162acce04377f21678d10138bd33b8d4
parent95c6daa45b0982348d775210e5945eeeae2ac5ca
qa/cephfs/cap_tester: simplify CapTester and its instantiation

Class CapTester contains two distinct immiscible group of methods: one
that tests MON caps and other that tests MDS caps. When using CapTester
for the former reason the instantiation neither needs mount object and
the path where files for testing will be created nor it needs to run the
method that creates files for testing rw permissions. When using
this class for latter the case is the exact opposite.

Create 2 separate classes for each of these purpose and class that
inherits both of these classes so that instantiating the class becomes
as simple as it can be.

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