09fc02e Ticket 48109 - CI test: added test cases for ticket 48109

Authored and Committed by nhosoi 9 years ago
    Ticket 48109 - CI test: added test cases for ticket 48109
    
    Ticket #48109 - substring index with nssubstrbegin: 1 is not being used with filters like (attr=x*)
    
    Testcases:
    1. Set SubStr lengths to cn=uid,cn=index,...
         objectClass: extensibleObject
         nsIndexType: sub
         nsSubStrBegin: 2
         nsSubStrEnd: 2
       Add an entry with uid=auser0; search with "(uid=a*)".
       Check the search result in the access log; if notes=[AU] is not
       found.  The testcase is passed.
    2. Set SubStr lengths to cn=uid,cn=index,...
         nsIndexType: sub
         nsMatchingRule: nsSubStrBegin=2
         nsMatchingRule: nsSubStrEnd=2
       Add an entry with uid=buser1; search with "(uid=b*)".
       Check the search result in the access log; if notes=[AU] is not
       found.  The testcase is passed.
    3. Set SubStr lengths to cn=uid,cn=index,...
         objectClass: extensibleObject
         nsIndexType: sub
         nsSubStrBegin: 2
         nsSubStrEnd: 2
         nsMatchingRule: nsSubStrBegin=3
         nsMatchingRule: nsSubStrEnd=3
       Add an entry with uid=cuser2; search with "(uid=c*)" and (uid=*2).
       Check the search result in the access log; if notes=[AU] is not
       found.  The testcase is passed. Note: nsSubStr{Begin,Middle,End}:
       is honored over nsMatchingRule: nsSubStr{Begin,Middle,End}=.
    
    https://fedorahosted.org/389/ticket/48109
    (cherry picked from commit 71f7659d5f002a4e50f0dc123f0311b04ee87b79)