]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mgr/smb: avoid using thandler.generate_config function
authorJohn Mulligan <jmulligan@redhat.com>
Wed, 3 Dec 2025 22:03:49 +0000 (17:03 -0500)
committerJohn Mulligan <jmulligan@redhat.com>
Fri, 13 Feb 2026 16:42:48 +0000 (11:42 -0500)
This function was already "deprecated" and will be removed in a future
commit.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
src/pybind/mgr/smb/tests/test_handler.py

index f1aac1cc3967ba9121219df8f1dae6d9472d0abb..7fdb7d176f68ff0bbb2ab9d81470dc4356cb15ca 100644 (file)
@@ -328,8 +328,7 @@ def test_generate_config_basic(thandler):
         }
     )
 
-    cfg = thandler.generate_config('foo')
-    assert cfg
+    thandler._sync_clusters(['foo'])
 
 
 def test_generate_config_ad(thandler):
@@ -390,7 +389,8 @@ def test_generate_config_ad(thandler):
         }
     )
 
-    cfg = thandler.generate_config('foo')
+    thandler._sync_clusters(['foo'])
+    cfg = thandler.public_store['foo', 'config.smb'].get()
     assert cfg
     assert cfg['globals']['foo']['options']['realm'] == 'dom1.example.com'
 
@@ -471,7 +471,8 @@ def test_generate_config_with_login_control(thandler):
         }
     )
 
-    cfg = thandler.generate_config('foo')
+    thandler._sync_clusters(['foo'])
+    cfg = thandler.public_store['foo', 'config.smb'].get()
     assert cfg
     assert cfg['shares']['Ess One']['options']
     shopts = cfg['shares']['Ess One']['options']
@@ -543,7 +544,8 @@ def test_generate_config_with_login_control_restricted(thandler):
         }
     )
 
-    cfg = thandler.generate_config('foo')
+    thandler._sync_clusters(['foo'])
+    cfg = thandler.public_store['foo', 'config.smb'].get()
     assert cfg
     assert cfg['shares']['Ess One']['options']
     shopts = cfg['shares']['Ess One']['options']