gpo: Group Policy tests require a s3 loadparam
authorDavid Mulder <dmulder@samba.org>
Tue, 14 Mar 2023 21:35:01 +0000 (15:35 -0600)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 28 Apr 2023 02:15:36 +0000 (02:15 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15225

Signed-off-by: David Mulder <dmulder@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/tests/gpo.py

index b912d53c83cfc4471fc3f0fe46f27e63a118c7f2..f5e25e71041583696cb74c843f7342d2617a081a 100644 (file)
@@ -73,6 +73,7 @@ from cryptography.hazmat.backends import default_backend
 from cryptography.hazmat.primitives.asymmetric import rsa
 from cryptography.hazmat.primitives.serialization import Encoding
 from datetime import datetime, timedelta
+from samba.samba3 import param as s3param
 
 def dummy_certificate():
     name = x509.Name([
@@ -5039,7 +5040,7 @@ class GPOTests(tests.TestCase):
         super(GPOTests, self).setUp()
         self.server = os.environ["SERVER"]
         self.dc_account = self.server.upper() + '$'
-        self.lp = LoadParm()
+        self.lp = s3param.get_context()
         self.lp.load_default()
         self.creds = self.insta_creds(template=self.get_credentials())