Regression in filter

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
_______________________________________________
389-devel mailing list -- 389-devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to 389-devel-leave@xxxxxxxxxxxxxxxxxxxxxxx




[Index of Archives]     [Fedora Directory Announce]     [Fedora Users]     [Older Fedora Users Mail]     [Fedora Advisory Board]     [Fedora Security]     [Fedora Devel Java]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Mentors]     [Fedora Package Review]     [Fedora Art]     [Fedora Music]     [Fedora Packaging]     [CentOS]     [Fedora SELinux]     [Big List of Linux Books]     [KDE Users]     [Fedora Art]     [Fedora Docs]

  Powered by Linux