Hi there,
On master I noticed that some of the filter tests have stopped working:
topology_st_f = <lib389.DirSrv object at 0x7f9a1fd21e10>
def test_eq(topology_st_f):
"""Test filter logic with "equal to" operator
:id: 1b0b7e59-a5ac-4825-8d36-525f4f0149a9
:setup: Standalone instance with 20 test users added
from uid=user0 to uid=user20
:steps:
1. Search for test users with filter '(uid=user0)'
:expectedresults:
1. There should be 1 user listed user0
"""
_check_filter(topology_st_f, '(uid=user0)', 1,
[USER0_DN])
ds/dirsrvtests/tests/suites/filter/filter_logic_test.py:86:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
topology_st_f = <lib389.DirSrv object at 0x7f9a1fd21e10>, filt =
'(uid=user0)', expect_len = 1, expect_dns =
['uid=user0,ou=People,dc=example,dc=com']
def _check_filter(topology_st_f, filt, expect_len, expect_dns):
# print("checking %s" % filt)
results = topology_st_f.search_s("ou=People,%s" %
DEFAULT_SUFFIX, ldap.SCOPE_ONELEVEL, filt, ['uid',])
assert len(results) == expect_len
result_dns = [result.dn for result in results]
assert set(expect_dns) == set(result_dns)
E
AssertionError: assert {'uid=user0,o...ample,dc=com'} ==
{'uid=user0,ou...ample,dc=com'}
E Extra items in the left set:
E 'uid=user0,ou=People,dc=example,dc=com'
E Extra items in the right set:
E 'uid=user0,ou=people,dc=example,dc=com'
E Use -v to get the full diff
ds/dirsrvtests/tests/suites/filter/filter_logic_test.py:72:
AssertionError
I haven't had time to investigate yet, but is there anything obvious we
have changed that would havecaused this?
--
Thanks,
William Brown