diff options
author | Gary Lockyer <gary@catalyst.net.nz> | 2017-04-04 08:56:47 +1200 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2017-04-06 10:06:04 +0200 |
commit | 5ee494cbd77d3b988f4472bca9e936bd540f055f (patch) | |
tree | 0476b03e2f1f58ebe7b61aa0a414e6cd4cbbc754 /python/samba/tests/dsdb.py | |
parent | 62bbfda8677d5ed576849b83fcaea1b94f3c3689 (diff) | |
download | samba-5ee494cbd77d3b988f4472bca9e936bd540f055f.tar.gz |
tests dsdb: load paramaters from test environment
Load the test environment specific parameters
Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Thu Apr 6 10:06:05 CEST 2017 on sn-devel-144
Diffstat (limited to 'python/samba/tests/dsdb.py')
-rw-r--r-- | python/samba/tests/dsdb.py | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/python/samba/tests/dsdb.py b/python/samba/tests/dsdb.py index a3b94fbe206..4a34bacb73f 100644 --- a/python/samba/tests/dsdb.py +++ b/python/samba/tests/dsdb.py @@ -32,16 +32,13 @@ class DsdbTests(TestCase): def setUp(self): super(DsdbTests, self).setUp() - self.lp = samba.param.LoadParm() - self.lp.load(os.path.join(os.path.join(self.baseprovpath(), "etc"), "smb.conf")) + self.lp = samba.tests.env_loadparm() self.creds = Credentials() self.creds.guess(self.lp) self.session = system_session() - self.samdb = SamDB(os.path.join(self.baseprovpath(), "private", "sam.ldb"), - session_info=self.session, credentials=self.creds,lp=self.lp) - - def baseprovpath(self): - return os.path.join(os.environ['SELFTEST_PREFIX'], "ad_dc_ntvfs") + self.samdb = SamDB(session_info=self.session, + credentials=self.creds, + lp=self.lp) def test_get_oid_from_attrid(self): oid = self.samdb.get_oid_from_attid(591614) |