mirror of
https://github.com/samba-team/samba.git
synced 2025-08-03 04:22:09 +03:00
s4:ldap.py - reactivate some assertions in "test_all"
There should always be one result on both s4 and Windows. Reviewed-by: abartlet
This commit is contained in:
@ -1989,11 +1989,11 @@ member: cn=ldaptestuser2,cn=users,""" + self.base_dn + """
|
||||
|
||||
print "Testing one-level ldb.search for (&(cn=ldaptestuser4)(objectClass=user)) in cn=ldaptestcontainer2," + self.base_dn
|
||||
res = ldb.search(expression="(&(cn=ldaptestuser4)(objectClass=user))", base=("cn=ldaptestcontainer2," + self.base_dn), scope=SCOPE_ONELEVEL)
|
||||
# FIXME: self.assertEquals(len(res), 0)
|
||||
self.assertEquals(len(res), 1)
|
||||
|
||||
print "Testing one-level ldb.search for (&(cn=ldaptestuser4)(objectClass=user)) in cn=ldaptestcontainer2," + self.base_dn
|
||||
res = ldb.search(expression="(&(cn=ldaptestuser4)(objectClass=user))", base=("cn=ldaptestcontainer2," + self.base_dn), scope=SCOPE_SUBTREE)
|
||||
# FIXME: self.assertEquals(len(res), 0)
|
||||
self.assertEquals(len(res), 1)
|
||||
|
||||
print "Testing delete of subtree renamed "+("CN=ldaptestuser4,CN=ldaptestcontainer2," + self.base_dn)
|
||||
ldb.delete(("CN=ldaptestuser4,CN=ldaptestcontainer2," + self.base_dn))
|
||||
|
Reference in New Issue
Block a user