s4:ldap.py - we test the creation of secrets already in the "systemOnly" testcase
authorMatthias Dieter Wallnöfer <mdw@samba.org>
Thu, 13 Oct 2011 06:21:31 +0000 (08:21 +0200)
committerMatthias Dieter Wallnöfer <mdw@samba.org>
Thu, 27 Oct 2011 16:52:29 +0000 (18:52 +0200)
Reviewed-by: abartlet
source4/dsdb/tests/python/ldap.py

index b47db94579ce3f70bf7a04f9b4190879ceddb11f..20e05faaf5666491eeb807d47131ace6b049b5b0 100755 (executable)
@@ -101,15 +101,6 @@ class BasicTests(unittest.TestCase):
         """Test objectClass behaviour"""
         print "Test objectClass behaviour"""
 
-        # We cannot create LSA-specific objects (oc "secret" or "trustedDomain")
-        try:
-            self.ldb.add({
-                "dn": "cn=Test Secret,cn=system," + self.base_dn,
-                "objectClass": "secret" })
-            self.fail()
-        except LdbError, (num, _):
-            self.assertEquals(num, ERR_UNWILLING_TO_PERFORM)
-
         # Invalid objectclass specified
         try:
             self.ldb.add({