Fix failing core and schema testcases
| | |
| | | changenumber: 100001 |
| | | targetdn: uid=tmorris, ou=People, o=schema tests,dc=example,dc=com |
| | | changetype: add |
| | | changetime: 20090811151059Z |
| | |
| | | changenumber: 100002 |
| | | targetdn: uid=tmorris, ou=People, o=schema tests,dc=example,dc=com |
| | | changetype: delete |
| | | changetime: 20090811151059Z |
| | |
| | | targetdn: uid=tmorris, ou=People, o=schema tests,dc=example,dc=com |
| | | changetype: modify |
| | | changes: delete: telephonenumber\ntelephonenumber: 9187\n-\nadd telephonenumber\ntelephonenumber: +1 408 555 9187\n- |
| | | changetime: 20090811151059Z |
| | | |
| | |
| | | 'dsBaseDN' : 'uid=user.1,%s' % peopleDn , |
| | | 'dsFilter' : 'objectclass=*' , |
| | | 'extraParams' : '--assertionFilter "(objectclass=top)"' , |
| | | 'dsAttributes' : 'uid' , |
| | | 'expectedRC' : 50 |
| | | 'dsAttributes' : 'uid' |
| | | } |
| | | </call> |
| | | <!-- ========== --> |
| | | <!-- Behaviour changed since rev. 5534: access controls relaxed |
| | | ! for OID 1.3.6.1.1.12 => ACI is no longer necessary. |
| | | <message>'++ Check assertion control id is displayed'</message> |
| | | <call function="'CheckMatches'"> |
| | | { |
| | |
| | | 'nbExpected' : 1 |
| | | } |
| | | </call> |
| | | --> |
| | | <call function="'CheckMatches'"> |
| | | { |
| | | 'string2find' : 'uid=user.1,%s' % peopleDn , |
| | | 'mainString' : STAXResult[0][1] , |
| | | 'nbExpected' : 1 , |
| | | } |
| | | </call> |
| | | <call function="'testCase_Postamble'"/> |
| | | </sequence> |
| | | </testcase> |
| | |
| | | 'dsInstancePswd' : 'password' , |
| | | 'dsBaseDN' : peopleDn , |
| | | 'dsFilter' : 'objectclass=*' , |
| | | 'extraParams' : extraParam , |
| | | 'expectedRC' : 50 |
| | | 'extraParams' : extraParam |
| | | } |
| | | </call> |
| | | <script> |
| | | searchResult = STAXResult[0][1] |
| | | string2find = 'description: pair' |
| | | </script> |
| | | <!-- ========== --> |
| | | <!-- Behaviour changed since rev. 5534: access controls relaxed |
| | | ! for OID 1.3.6.1.1.12 => ACI is no longer necessary. |
| | | <message>'++ Check assertion control id is displayed'</message> |
| | | <call function="'CheckMatches'"> |
| | | { |
| | |
| | | 'nbExpected' : 1 |
| | | } |
| | | </call> |
| | | --> |
| | | <message> |
| | | '++ Check \"%s\" is displayed 5 times in ldapsearch \ |
| | | result' % string2find |
| | | </message> |
| | | <call function="'CheckMatches'"> |
| | | { |
| | | 'string2find' : string2find , |
| | | 'mainString' : searchResult , |
| | | 'nbExpected' : 5 , |
| | | 'caseSensitive' : False |
| | | } |
| | | </call> |
| | | <!-- ========== --> |
| | | <script> |
| | | string2find = 'description: odd' |
| | | </script> |
| | | <message> |
| | | '++ Check \"%s\" is NOT displayed in ldapsearch \ |
| | | result' % string2find |
| | | </message> |
| | | <call function="'CheckMatches'"> |
| | | { |
| | | 'string2find' : string2find , |
| | | 'mainString' : searchResult , |
| | | 'nbExpected' : 0 , |
| | | 'caseSensitive' : False |
| | | } |
| | | </call> |
| | | <!-- ========== --> |
| | | <script> |
| | | string2find = 'dn: uid' |
| | | </script> |
| | | <message> |
| | | '++ Check \"%s\" is displayed 10 times in ldapsearch \ |
| | | result' % string2find |
| | | </message> |
| | | <call function="'CheckMatches'"> |
| | | { |
| | | 'string2find' : string2find , |
| | | 'mainString' : searchResult , |
| | | 'nbExpected' : 10 , |
| | | 'caseSensitive' : False |
| | | } |
| | | </call> |
| | | |
| | | <call function="'testCase_Postamble'"/> |
| | | </sequence> |
| | |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="integer"/> |
| | | </function-arg-def> |
| | | <function-arg-def name="issue" type="optional" default="None"> |
| | | <function-arg-description> |
| | | Issue id. Corresponds to an issue number. |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string"/> |
| | | </function-arg-def> |
| | | </function-map-args> |
| | | |
| | | <sequence> |
| | |
| | | </sequence> |
| | | <else> |
| | | <sequence> |
| | | <if expr="issue == None"> |
| | | <tcstatus result="'fail'"/> |
| | | <else> |
| | | <sequence> |
| | | <call function="'setKnownIssue'"> |
| | | { 'issueId' : issue } |
| | | </call> |
| | | </sequence> |
| | | </else> |
| | | </if> |
| | | <message log="1" level="'Error'"> |
| | | '%s' % myMessage |
| | | </message> |