mirror of
https://github.com/samba-team/samba.git
synced 2025-08-05 12:22:11 +03:00
tests: Completely replace s4 connection in smb tests
This test now uses the s3 python bindings completely, so we can remove the s4 connection. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13676 Signed-off-by: Tim Beale <timbeale@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
@ -42,12 +42,8 @@ class SMBTests(samba.tests.TestCase):
|
||||
super(SMBTests, self).setUp()
|
||||
self.server = os.environ["SERVER"]
|
||||
creds = self.insta_creds(template=self.get_credentials())
|
||||
self.conn = smb.SMB(self.server,
|
||||
"sysvol",
|
||||
lp=self.get_loadparm(),
|
||||
creds=creds)
|
||||
|
||||
# temporarily create a 2nd SMB connection for migrating the py-bindings
|
||||
# create an SMB connection to the server
|
||||
lp = s3param.get_context()
|
||||
lp.load(os.getenv("SMB_CONF_PATH"))
|
||||
self.smb_conn = libsmb_samba_internal.Conn(self.server, "sysvol",
|
||||
|
Reference in New Issue
Block a user