]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
qa/cephfs: make code for generating health warnings reusable
authorRishabh Dave <ridave@redhat.com>
Wed, 8 May 2024 12:08:43 +0000 (17:38 +0530)
committerRishabh Dave <ridave@redhat.com>
Fri, 12 Jul 2024 14:56:24 +0000 (20:26 +0530)
commit7f0713ac8e58b155abd0910c2a60a9c6b06993df
treee40a4b8c46219e739ee4dae0768853b881ebc2e7
parent9798a35879a78dcfc75ca4135ee87a4dd9ad5d28
qa/cephfs: make code for generating health warnings reusable

Code to generate MDS_TRIM and MDS_CACHE_OVERSIZED health warnings is
repeated in test methods of TestMDSFail and TestFSFail. Move this code
to separate helper methods so that it can be reused instead of
duplicating it. And move these helper methods to TestAdminCommands so
to make them conveniently available for reuse.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
(cherry picked from commit 79b047b22e1031df74584cfa4b77d7b824b0e42e)
qa/tasks/cephfs/test_admin.py