mirror of
https://github.com/ceph/ceph
synced 2025-01-02 00:52:22 +00:00
Merge pull request #47985 from kotreshhr/qa-fix-57205
qa: Fix test_subvolume_group_ls_filter_internal_directories Reviewed-by: Rishabh Dave <ridave@redhat.com> Reviewed-by: Venky Shankar <vshankar@redhat.com> Reviewed-by: Ramana Raja <rraja@redhat.com>
This commit is contained in:
commit
2ff34d1d60
@ -1673,6 +1673,9 @@ class TestSubvolumeGroups(TestVolumesHelper):
|
|||||||
# clone snapshot which will create '_index' directory
|
# clone snapshot which will create '_index' directory
|
||||||
self._fs_cmd("subvolume", "snapshot", "clone", self.volname, subvolume, snapshot, clone)
|
self._fs_cmd("subvolume", "snapshot", "clone", self.volname, subvolume, snapshot, clone)
|
||||||
|
|
||||||
|
# wait for clone to complete
|
||||||
|
self._wait_for_clone_to_complete(clone)
|
||||||
|
|
||||||
# remove snapshot
|
# remove snapshot
|
||||||
self._fs_cmd("subvolume", "snapshot", "rm", self.volname, subvolume, snapshot)
|
self._fs_cmd("subvolume", "snapshot", "rm", self.volname, subvolume, snapshot)
|
||||||
|
|
||||||
@ -1688,6 +1691,11 @@ class TestSubvolumeGroups(TestVolumesHelper):
|
|||||||
|
|
||||||
self.assertEqual(all(elem in subvolumegroups for elem in ret_list), True)
|
self.assertEqual(all(elem in subvolumegroups for elem in ret_list), True)
|
||||||
|
|
||||||
|
# cleanup
|
||||||
|
self._fs_cmd("subvolume", "rm", self.volname, clone)
|
||||||
|
for groupname in subvolumegroups:
|
||||||
|
self._fs_cmd("subvolumegroup", "rm", self.volname, groupname)
|
||||||
|
|
||||||
def test_subvolume_group_ls_for_nonexistent_volume(self):
|
def test_subvolume_group_ls_for_nonexistent_volume(self):
|
||||||
# tests the 'fs subvolumegroup ls' command when /volume doesn't exist
|
# tests the 'fs subvolumegroup ls' command when /volume doesn't exist
|
||||||
# prerequisite: we expect that the test volume is created and a subvolumegroup is NOT created
|
# prerequisite: we expect that the test volume is created and a subvolumegroup is NOT created
|
||||||
|
Loading…
Reference in New Issue
Block a user