]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/workunits/smb: add option to modify share without waiting
authorJohn Mulligan <jmulligan@redhat.com>
Wed, 1 Jul 2026 21:54:59 +0000 (17:54 -0400)
committerJohn Mulligan <jmulligan@redhat.com>
Sat, 11 Jul 2026 14:38:31 +0000 (10:38 -0400)
Signed-off-by: John Mulligan <jmulligan@redhat.com>
qa/workunits/smb/tests/smbutil.py

index 38f7f018a5735ef890cead8c63c3a82b94dfc991..64377f1cb3f83f60c77e8916c6d21e5012d8c1b4 100644 (file)
@@ -195,7 +195,7 @@ def get_share_by_id(smb_cfg, cluster_id, share_id):
     return None
 
 
-def apply_share_config(smb_cfg, share):
+def apply_share_config(smb_cfg, share, immediate=False):
     """Apply share configuration via the apply command."""
     jres = cephutil.cephadm_shell_cmd(
         smb_cfg,
@@ -214,5 +214,6 @@ def apply_share_config(smb_cfg, share):
     assert resources_ret['resource_type'] == 'ceph.smb.share'
     # sleep to ensure the settings got applied in smbd
     # TODO: make this more dynamic somehow
-    time.sleep(60)
+    if not immediate:
+        time.sleep(60)
     return resources_ret