From a6d4eec3a5bef5ed4b388961d5a50309e24ed970 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Sat, 26 Sep 2009 02:38:09 +0200 Subject: samba.tests.provision: Remove broken become_dc test. --- source4/scripting/python/samba/tests/provision.py | 26 +---------------------- 1 file changed, 1 insertion(+), 25 deletions(-) (limited to 'source4/scripting') diff --git a/source4/scripting/python/samba/tests/provision.py b/source4/scripting/python/samba/tests/provision.py index 7a259f71e35..f34073504c0 100644 --- a/source4/scripting/python/samba/tests/provision.py +++ b/source4/scripting/python/samba/tests/provision.py @@ -18,7 +18,7 @@ # import os -from samba.provision import setup_secretsdb, secretsdb_become_dc, findnss +from samba.provision import setup_secretsdb, findnss import samba.tests from ldb import Dn from samba import param @@ -44,30 +44,6 @@ class ProvisionTestCase(samba.tests.TestCaseInTempDir): del ldb os.unlink(path) - def test_become_dc(self): - path = os.path.join(self.tempdir, "secrets.ldb") - 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", - domainsid="S-5-22", keytab_path="keytab.path", - samdb_url="ldap://url/", - dns_keytab_path="dns.keytab", dnspass="bla", - machinepass="machinepass", dnsdomain="example.com") - self.assertEquals(0, - len(secrets_ldb.search("samAccountName=krbtgt,flatname=EXAMPLE,CN=Principals"))) - self.assertEquals("keytab.path", - secrets_ldb.searchone(basedn="flatname=EXAMPLE,CN=primary domains", - expression="(privateKeytab=*)", - attribute="privateKeytab")) - self.assertEquals("S-5-22", - secrets_ldb.searchone(basedn="flatname=EXAMPLE,CN=primary domains", - expression="objectSid=*", attribute="objectSid")) - - finally: - del secrets_ldb - os.unlink(path) - class FindNssTests(unittest.TestCase): """Test findnss() function.""" -- cgit