diff options
author | Kamen Mazdrashki <kamenim@samba.org> | 2010-06-25 14:56:03 +0300 |
---|---|---|
committer | Kamen Mazdrashki <kamenim@samba.org> | 2010-06-26 01:15:50 +0300 |
commit | 0c8ffc9f15bddeeee66b3a6971691aadf76b245e (patch) | |
tree | 980909b9cdcb52dc3fa9fd4987fa728d508afbfa /source4 | |
parent | e40afe975accd8199ffe54ea9f3c4dedd02edb02 (diff) | |
download | samba-0c8ffc9f15bddeeee66b3a6971691aadf76b245e.tar.gz samba-0c8ffc9f15bddeeee66b3a6971691aadf76b245e.tar.bz2 samba-0c8ffc9f15bddeeee66b3a6971691aadf76b245e.zip |
s4/drs-test: Fix whitespaces and permissions for delete_object.py test
Sorry I've missed to do this before
Diffstat (limited to 'source4')
-rw-r--r--[-rwxr-xr-x] | source4/torture/drs/python/delete_object.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source4/torture/drs/python/delete_object.py b/source4/torture/drs/python/delete_object.py index 6b75b80346..29c7565c7f 100755..100644 --- a/source4/torture/drs/python/delete_object.py +++ b/source4/torture/drs/python/delete_object.py @@ -101,7 +101,7 @@ class DrsDeleteObjectTestCase(samba.tests.TestCase): def _make_username(self): return "DrsDelObjUser_" + time.strftime("%s", time.gmtime()) - + def _check_user(self, sam_ldb, user_orig, is_deleted): # search the user by guid as it may be deleted guid_str = self._GUID_string(user_orig["objectGUID"][0]) @@ -120,7 +120,7 @@ class DrsDeleteObjectTestCase(samba.tests.TestCase): self.assertEquals(user_cur["isDeleted"][0],"TRUE") self.assertTrue(not("objectCategory" in user_cur)) self.assertTrue(not("sAMAccountType" in user_cur)) - self.assertTrue(dodn in str(user_cur["dn"]), + self.assertTrue(dodn in str(user_cur["dn"]), "User %s is deleted but it is not located under %s!" % (name_orig, dodn)) self.assertEquals(name_cur, name_orig + "\nDEL:" + guid_str) else: @@ -135,10 +135,10 @@ class DrsDeleteObjectTestCase(samba.tests.TestCase): net_cmd = os.path.abspath("./bin/net") # make command line credentials string creds = samba.tests.cmdline_credentials - cmd_line_auth = "-U%s/%s%%%s" % (creds.get_domain(), + cmd_line_auth = "-U%s/%s%%%s" % (creds.get_domain(), creds.get_username(), creds.get_password()) # bin/net drs replicate <Dest_DC_NAME> <Src_DC_NAME> <Naming Context> - cmd_line = "%s drs replicate %s %s %s %s" % (net_cmd, DC, fromDC, + cmd_line = "%s drs replicate %s %s %s %s" % (net_cmd, DC, fromDC, self.domain_dn, cmd_line_auth) ret = os.system(cmd_line) self.assertEquals(ret, 0, "Replicating %s from %s has failed!" % (DC, fromDC)) @@ -213,7 +213,7 @@ def connect_samdb(samdb_url): samdb_url = "ldap://%s" % samdb_url # user 'paged_search' module when connecting remotely ldb_options = ["modules:paged_searches"] - + return SamDB(url=samdb_url, lp=samba.tests.env_loadparm(), session_info=system_session(), |