Skip to content

Commit

Permalink
qa: experimental change
Browse files Browse the repository at this point in the history
Signed-off-by: Neeraj Pratap Singh <[email protected]>
  • Loading branch information
neeraj pratap singh committed Feb 13, 2024
1 parent 353db29 commit 178b6c9
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions qa/tasks/cephfs/test_volumes.py
Original file line number Diff line number Diff line change
Expand Up @@ -7509,6 +7509,11 @@ def test_subvolume_snapshot_clone_with_no_wait_enabled(self):
max_concurrent_clones = int(self.config_get('mgr', 'mgr/volumes/max_concurrent_clones'))
self.assertEqual(max_concurrent_clones, 2)

# Disable the snapshot_clone_no_wait config option
self.config_set('mgr', 'mgr/volumes/snapshot_clone_no_wait', True)
threads_available = self.config_get('mgr', 'mgr/volumes/snapshot_clone_no_wait')
self.assertEqual(threads_available, 'true')

# Insert delay of 15 seconds at the beginning of the snapshot clone
self.config_set('mgr', 'mgr/volumes/snapshot_clone_delay', 15)

Expand Down Expand Up @@ -7617,9 +7622,9 @@ def test_subvolume_snapshot_clone_with_no_wait_not_enabled(self):
self._verify_clone(subvolume, snapshot, clone3)

# set the snapshot_clone_no_wait config option to default
self.config_set('mgr', 'mgr/volumes/snapshot_clone_no_wait', True)
threads_available = self.config_get('mgr', 'mgr/volumes/snapshot_clone_no_wait')
self.assertEqual(threads_available, 'true')
# self.config_set('mgr', 'mgr/volumes/snapshot_clone_no_wait', True)
# threads_available = self.config_get('mgr', 'mgr/volumes/snapshot_clone_no_wait')
# self.assertEqual(threads_available, 'true')

# set number of cloner threads to default
self.config_set('mgr', 'mgr/volumes/max_concurrent_clones', 4)
Expand Down

0 comments on commit 178b6c9

Please sign in to comment.