[SCM] Samba Shared Repository - branch v4-0-test updated -
release-4-0-0alpha2-584-g41571bb
Jelmer Vernooij
jelmer at samba.org
Sat Jan 26 01:56:27 GMT 2008
The branch, v4-0-test has been updated
via 41571bbb933c763a9608f4ba56f1a5a97af133ab (commit)
from 7a10be2ac77124a78fcc4ddda5e05c036ed920fa (commit)
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v4-0-test
- Log -----------------------------------------------------------------
commit 41571bbb933c763a9608f4ba56f1a5a97af133ab
Author: Jelmer Vernooij <jelmer at samba.org>
Date: Sat Jan 26 02:55:03 2008 +0100
python: Load smb.conf file for the provision tests.
-----------------------------------------------------------------------
Summary of changes:
source/scripting/python/samba/tests/provision.py | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
Changeset truncated at 500 lines:
diff --git a/source/scripting/python/samba/tests/provision.py b/source/scripting/python/samba/tests/provision.py
index 1456b67..4e9fa9c 100644
--- a/source/scripting/python/samba/tests/provision.py
+++ b/source/scripting/python/samba/tests/provision.py
@@ -21,6 +21,10 @@ import os
from samba.provision import setup_secretsdb, secretsdb_become_dc
import samba.tests
from ldb import Dn
+import param
+
+lp = param.LoadParm()
+lp.load("st/dc/etc/smb.conf")
setup_dir = "setup"
def setup_path(file):
@@ -30,7 +34,7 @@ def setup_path(file):
class ProvisionTestCase(samba.tests.TestCaseInTempDir):
def test_setup_secretsdb(self):
path = os.path.join(self.tempdir, "secrets.ldb")
- ldb = setup_secretsdb(path, setup_path, None, None, None)
+ ldb = setup_secretsdb(path, setup_path, None, None, lp=lp)
try:
self.assertEquals("LSA Secrets",
ldb.searchone(basedn="CN=LSA Secrets", attribute="CN"))
@@ -40,7 +44,7 @@ class ProvisionTestCase(samba.tests.TestCaseInTempDir):
def test_become_dc(self):
path = os.path.join(self.tempdir, "secrets.ldb")
- secrets_ldb = setup_secretsdb(path, setup_path, None, None, None)
+ secrets_ldb = setup_secretsdb(path, setup_path, None, None, lp=lp)
try:
secretsdb_become_dc(secrets_ldb, setup_path, domain="EXAMPLE",
realm="example", netbiosname="myhost",
--
Samba Shared Repository
More information about the samba-cvs
mailing list