# verify trash dir is clean
self._wait_for_trash_empty()
- def test_subvolume_group_quota_v1_subvolume_removal(self):
+ def _test_subvolume_group_quota_v1_subvolume_removal(self):
"""
Tests v1 subvolume removal if it's group quota is set.
"""
# verify trash dir is clean
self._wait_for_trash_empty()
- def test_subvolume_pin_export(self):
+ def _test_subvolume_pin_export(self):
self.fs.set_max_mds(2)
status = self.fs.wait_for_daemons()
class TestSubvolumeSnapshots(TestVolumesHelper):
"""Tests for FS subvolume snapshot operations."""
- def test_nonexistent_subvolume_snapshot_rm(self):
+ def _test_nonexistent_subvolume_snapshot_rm(self):
subvolume = self._gen_subvol_name()
snapshot = self._gen_subvol_snap_name()
# verify trash dir is clean
self._wait_for_trash_empty()
- def test_subvolume_inherited_snapshot_ls(self):
+ def _test_subvolume_inherited_snapshot_ls(self):
# tests the scenario where 'fs subvolume snapshot ls' command
# should not list inherited snapshots created as part of snapshot
# at ancestral level
# verify trash dir is clean
self._wait_for_trash_empty()
- def test_subvolume_retain_snapshot_with_snapshots(self):
+ def _test_subvolume_retain_snapshot_with_snapshots(self):
"""
ensure retain snapshots based delete of a subvolume with snapshots retains the subvolume
also test allowed and dis-allowed operations on a retained subvolume
# verify trash dir is clean
self._wait_for_trash_empty()
- def test_subvolume_retain_snapshot_trash_busy_recreate(self):
+ def _test_subvolume_retain_snapshot_trash_busy_recreate(self):
"""
ensure retained subvolume recreate fails if its trash is not yet purged
"""
# verify trash dir is clean
self._wait_for_trash_empty()
- def test_subvolume_retain_snapshot_trash_busy_recreate_clone(self):
+ # TODO: move this to separate file that'll contain tests exclusively for
+ # v2 because it's testing behaviour very specific to v2.
+ # TODO: also create a test that tests v3 for such a case.
+ def _test_subvolume_retain_snapshot_trash_busy_recreate_clone(self):
"""
ensure retained clone recreate fails if its trash is not yet purged
"""
# verify trash dir is clean
self._wait_for_trash_empty()
- def test_subvolume_snapshot_clone_with_upgrade(self):
+ def _test_subvolume_snapshot_clone_with_upgrade(self):
"""
yet another poor man's upgrade test -- rather than going through a full
upgrade cycle, emulate old types subvolumes by going through the wormhole
# verify trash dir is clean
self._wait_for_trash_empty()
- def test_subvolume_snapshot_reconf_max_concurrent_clones(self):
+ def _test_subvolume_snapshot_reconf_max_concurrent_clones(self):
"""
Validate 'max_concurrent_clones' config option
"""
# Now wait for the mgr to expire the connection:
self.wait_until_evicted(sessions[0]['id'], timeout=90)
- def test_mgr_eviction(self):
+ def _test_mgr_eviction(self):
# unmount any cephfs mounts
for i in range(0, self.CLIENTS_REQUIRED):
self.mounts[i].umount_wait()
# remove group
self._fs_cmd("subvolumegroup", "rm", self.volname, group)
- def test_subvolume_no_upgrade_v1_sanity(self):
+ def _test_subvolume_no_upgrade_v1_sanity(self):
"""
poor man's upgrade test -- theme continues...
# verify trash dir is clean
self._wait_for_trash_empty()
- def test_subvolume_no_upgrade_v1_to_v2(self):
+ def _test_subvolume_no_upgrade_v1_to_v2(self):
"""
poor man's upgrade test -- theme continues...
ensure v1 to v2 upgrades are not done automatically due to various states of v1
# verify trash dir is clean
self._wait_for_trash_empty()
- def test_subvolume_upgrade_v1_to_v2(self):
+ def _test_subvolume_upgrade_v1_to_v2(self):
"""
poor man's upgrade test -- theme continues...
ensure v1 to v2 upgrades work
# verify trash dir is clean
self._wait_for_trash_empty()
- def test_binary_metafile_on_legacy_to_v1_upgrade(self):
+ def _test_binary_metafile_on_legacy_to_v1_upgrade(self):
"""
Validate binary .meta file on legacy subvol root doesn't break the system
on legacy subvol upgrade to v1
# remove group
self._fs_cmd("subvolumegroup", "rm", self.volname, group)
- def test_unparseable_metafile_on_legacy_to_v1_upgrade(self):
+ def _test_unparseable_metafile_on_legacy_to_v1_upgrade(self):
"""
Validate unparseable text .meta file on legacy subvol root doesn't break the system
on legacy subvol upgrade to v1