883N/A<?
xml version="1.0" encoding="UTF-8" standalone="no"?>
883N/A ! The contents of this file are subject to the terms of the 883N/A ! Common Development and Distribution License, Version 1.0 only 883N/A ! (the "License"). You may not use this file except in compliance 883N/A ! You can obtain a copy of the license at 883N/A ! See the License for the specific language governing permissions 883N/A ! and limitations under the License. 883N/A ! When distributing Covered Code, include this CDDL HEADER in each 883N/A ! file and include the License file at 883N/A ! add the following below this CDDL HEADER, with the fields enclosed 883N/A ! by brackets "[]" replaced with your own identifying information: 2618N/A ! Portions Copyright [yyyy] [name of copyright owner] 883N/A ! Copyright 2008 Sun Microsystems, Inc. 883N/A <
defaultcall function="aci_rdn_wildcards"/>
883N/A <
function name="aci_rdn_wildcards">
883N/A <
block name="'aci-rdn-wildcards'">
CurrentTestPath['group']='aci'
CurrentTestPath['suite']=STAXCurrentBlock
<
call function="'testSuite_Preamble'"/>
Place suite-specific test information here. #@TestSuiteName ACI RDN Wildcard Tests #@TestSuitePurpose Test the basic ACI Target Support. (targetattr="*" and allow(read)) #@TestSuiteGroup Basic ACI Target Tests <
import machine="STAF_LOCAL_HOSTNAME" <
call function="'aci_setup'" />
Place test-specific test information here. The tag, TestMarker, must be the same as the tag, TestSuiteName. #@TestMarker ACI RDN Wildcard Tests #@TestPurpose Add additional entries #@TestStep Directory Manager adds additional entries. #@TestStep Client search for level one entry #@TestStep Client search for level two entry #@TestStep Client search for level three entry #@TestResult Success if OpenDS returns 0 Entries are returned for steps 2, 3, and 4. <!-- cross reference to DS6 docs --> <
testcase name="getTestCaseName('Preamble')">
<
call function="'testCase_Preamble'"/>
'ACI: RDN Wildcards: Preamble - Adding Entries For RDN Wildcard Tests'
<
call function="'addEntry'">
{ 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
<
tcstatus result="'fail'"/>
'ACI: RDN Wildcards: Preamble - user searching targeted entry, level one'
<
call function="'SearchObject'">
{ 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' ,
'dsInstancePswd' : 'ACIRules' ,
'dsBaseDN' : 'uid=amiller, ou=branch level one, ou=aci branch,o=RDN Wildcard Tests,o=ACI Tests,dc=example,dc=com' ,
'dsFilter' : 'objectclass=*' ,
'attributes' : 'cn sn uid' ,
returnString = STAXResult[0][1]
<
call function="'searchStringForSubstring'">
{ 'returnString' : returnString ,
'testString' : 'dn: uid=amiller,ou=branch level one,ou=aci branch,o=RDN Wildcard Tests' ,
'ACI: RDN Wildcards: Preamble - user searching targeted entry, level two'
<
call function="'SearchObject'">
{ 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' ,
'dsInstancePswd' : 'ACIRules' ,
'dsBaseDN' : 'uid=bmiller, ou=branch level two, ou=branch level one, ou=aci branch,o=RDN Wildcard Tests,o=ACI Tests,dc=example,dc=com' ,
'dsFilter' : 'objectclass=*' ,
'attributes' : 'cn sn uid' ,
returnString = STAXResult[0][1]
<
call function="'searchStringForSubstring'">
{ 'returnString' : returnString ,
'testString' : 'dn: uid=bmiller,ou=branch level two,ou=branch level one,ou=aci branch,o=RDN Wildcard Tests' ,
'ACI: RDN Wildcards: Preamble - user searching targeted entry, level three'
<
call function="'SearchObject'">
{ 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' ,
'dsInstancePswd' : 'ACIRules' ,
'dsBaseDN' : 'uid=dmiller,ou=branch level three, ou=branch level two, ou=branch level one, ou=aci branch,o=RDN Wildcard Tests,o=ACI Tests,dc=example,dc=com' ,
'dsFilter' : 'objectclass=*' ,
'attributes' : 'cn sn uid' ,
returnString = STAXResult[0][1]
<
call function="'checktestString'">
{ 'returnString' : returnString ,
'expectedString' : 'dn: uid=dmiller,ou=branch level three,ou=branch level two,ou=branch level one,ou=aci branch,o=RDN Wildcard Tests' }
<
call function="'testCase_Postamble'"/>
Place test-specific test information here. The tag, TestMarker, must be the same as the tag, TestSuiteName. #@TestMarker ACI RDN Wildcard Tests #@TestName Test whole-type wildcard for single entry #@TestPurpose Target set equal to a dn with wildcard as attribute name, deny #@TestPreamble Admin adds an aci to the dn of one existing branch. #@TestStep Client searches entry with the targeted branch dn. #@TestStep Client searches entry with the previously targeted branch dn. #@TestResult Success if OpenDS returns 0 for all ldap operations, and and entry is returned only for the last step. <
testcase name="getTestCaseName('DN with whole-type wildcard, single entry')">
<
call function="'testCase_Preamble'"/>
'ACI: RDN Wildcards: DN with whole-type wildcard, single entry, preamble adding aci,\n %s' % curr_aci
<
call function="'modifyEntry'">
{ 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
<
tcstatus result="'fail'"/>
'ACI: RDN Wildcards: DN with whole-type wildcard, single entry, user searching targeted entry'
<
call function="'SearchObject'">
{ 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' ,
'dsInstancePswd' : 'ACIRules' ,
'dsBaseDN' : 'uid=dmiller,ou=branch level three,ou=branch level two,ou=branch level one,ou=aci branch,o=RDN Wildcard Tests, o=ACI Tests,dc=example,dc=com' ,
'dsFilter' : 'objectclass=*' ,
'attributes' : 'cn sn uid' ,
returnString = STAXResult[0][1]
<
call function="'searchStringForSubstring'">
{ 'returnString' : returnString ,
'testString' : 'dn: uid=dmiller,ou=branch level three,ou=branch level two,ou=branch level one,ou=aci branch,o=RDN Wildcard Tests' ,
'ACI: RDN Wildcards: DN with whole-type wildcard, single entry, admin deleting aci'
<
call function="'modifyEntry'">
{ 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
<
tcstatus result="'fail'"/>
'ACI: RDN Wildcards: DN with whole-type wildcard, single entry, user searching previously targeted entry'
<
call function="'SearchObject'">
{ 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' ,
'dsInstancePswd' : 'ACIRules' ,
'dsBaseDN' : 'uid=dmiller,ou=branch level three,ou=branch level two,ou=branch level one,ou=aci branch,o=RDN Wildcard Tests, o=ACI Tests,dc=example,dc=com' ,
'dsFilter' : 'objectclass=*' ,
'attributes' : 'cn sn uid' ,
returnString = STAXResult[0][1]
<
call function="'checktestString'">
{ 'returnString' : returnString ,
'expectedString' : 'dn: uid=dmiller,ou=branch level three,ou=branch level two,ou=branch level one,ou=aci branch,o=RDN Wildcard Tests' }
<
call function="'testCase_Postamble'"/>
Place test-specific test information here. The tag, TestMarker, must be the same as the tag, TestSuiteName. #@TestMarker ACI RDN Wildcard Tests #@TestName Test whole-type wildcard for several entries #@TestPurpose Target set equal to a dn with wildcard as attribute name, several entries, deny #@TestPreamble Admin adds an aci to the dn of one existing branch. #@TestStep Client searches entry with the targeted branch dn. #@TestStep Client searches entry with the previously targeted branch dn. #@TestResult Success if OpenDS returns 0 level two and level three entries are returned in step 2, and the appropriate entry is returned in the last step. <
testcase name="getTestCaseName('DN with whole-type wildcard, several entries')">
<
call function="'testCase_Preamble'"/>
'ACI: RDN Wildcards: DN with whole-type wildcard, several entries, preamble adding aci,\n %s' % curr_aci
<
call function="'modifyEntry'">
{ 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
<
tcstatus result="'fail'"/>
'ACI: RDN Wildcards: DN with whole-type wildcard, several entries, user searching targeted entry'
<
call function="'SearchObject'">
{ 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' ,
'dsInstancePswd' : 'ACIRules' ,
'dsBaseDN' : 'ou=aci branch,o=RDN Wildcard Tests, o=ACI Tests,dc=example,dc=com' ,
'dsFilter' : 'uid=*miller' ,
'attributes' : 'cn sn uid' ,
returnString = STAXResult[0][1]
<
call function="'searchStringForSubstring'">
{ 'returnString' : returnString ,
'testString' : 'dn: uid=dmiller,ou=branch level three,ou=branch level two,ou=branch level one,ou=aci branch,o=RDN Wildcard Tests' ,
<
call function="'searchStringForSubstring'">
{ 'returnString' : returnString ,
'testString' : 'dn: uid=bmiller,ou=branch level two,ou=branch level one,ou=aci branch,o=RDN Wildcard Tests' ,
<
call function="'searchStringForSubstring'">
{ 'returnString' : returnString ,
'testString' : 'dn: uid=amiller,ou=branch level one,ou=aci branch,o=RDN Wildcard Tests' ,
'ACI: RDN Wildcards: DN with whole-type wildcard, several entries, admin deleting aci'
<
call function="'modifyEntry'">
{ 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
<
tcstatus result="'fail'"/>
'ACI: RDN Wildcards: DN with whole-type wildcard, several entries, user searching previously targeted entry'
<
call function="'SearchObject'">
{ 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' ,
'dsInstancePswd' : 'ACIRules' ,
'dsBaseDN' : 'uid=amiller,ou=branch level one,ou=aci branch,o=RDN Wildcard Tests, o=ACI Tests,dc=example,dc=com' ,
'dsFilter' : 'objectclass=*' ,
'attributes' : 'cn sn uid' ,
returnString = STAXResult[0][1]
<
call function="'checktestString'">
{ 'returnString' : returnString ,
'expectedString' : 'dn: uid=amiller,ou=branch level one,ou=aci branch,o=RDN Wildcard Tests' }
<
call function="'testCase_Postamble'"/>
Place test-specific test information here. The tag, TestMarker, must be the same as the tag, TestSuiteName. #@TestMarker ACI RDN Wildcard Tests #@TestName Test whole-type wildcard for several entries, shorthand #@TestPurpose Target set equal to a dn with wildcard as attribute name with shorthand, several entries, deny #@TestPreamble Admin adds an aci to the dn of one existing branch. #@TestStep Client searches entry with the targeted branch dn. #@TestStep Client searches entry with the previously targeted branch dn. #@TestResult Success if OpenDS returns 0 level two and level three entries are returned in step 2, and the appropriate entry is returned in the last step. <
testcase name="getTestCaseName('DN with whole-type wildcard, several entries, shorthand')">
<
call function="'testCase_Preamble'"/>
'ACI: RDN Wildcards: DN with whole-type wildcard, several entries, shorthand, preamble adding aci,\n %s' % curr_aci
<
call function="'modifyEntry'">
{ 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
<
tcstatus result="'fail'"/>
'ACI: RDN Wildcards: DN with whole-type wildcard, several entries, shorthand, user searching targeted entry'
<
call function="'SearchObject'">
{ 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' ,
'dsInstancePswd' : 'ACIRules' ,
'dsBaseDN' : 'ou=aci branch,o=RDN Wildcard Tests, o=ACI Tests,dc=example,dc=com' ,
'dsFilter' : 'uid=*miller' ,
'attributes' : 'cn sn uid' ,
returnString = STAXResult[0][1]
<
call function="'searchStringForSubstring'">
{ 'returnString' : returnString ,
'testString' : 'dn: uid=dmiller,ou=branch level three,ou=branch level two,ou=branch level one,ou=aci branch,o=RDN Wildcard Tests' ,
<
call function="'searchStringForSubstring'">
{ 'returnString' : returnString ,
'testString' : 'dn: uid=bmiller,ou=branch level two,ou=branch level one,ou=aci branch,o=RDN Wildcard Tests' ,
<
call function="'searchStringForSubstring'">
{ 'returnString' : returnString ,
'testString' : 'dn: uid=amiller,ou=branch level one,ou=aci branch,o=RDN Wildcard Tests' ,
'ACI: RDN Wildcards: DN with whole-type wildcard, several entries, shorthand, admin deleting aci'
<
call function="'modifyEntry'">
{ 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
<
tcstatus result="'fail'"/>
'ACI: RDN Wildcards: DN with whole-type wildcard, several entries, shorthand, user searching previously targeted entry'
<
call function="'SearchObject'">
{ 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' ,
'dsInstancePswd' : 'ACIRules' ,
'dsBaseDN' : 'uid=amiller,ou=branch level one,ou=aci branch,o=RDN Wildcard Tests, o=ACI Tests,dc=example,dc=com' ,
'dsFilter' : 'objectclass=*' ,
'attributes' : 'cn sn uid' ,
returnString = STAXResult[0][1]
<
call function="'checktestString'">
{ 'returnString' : returnString ,
'expectedString' : 'dn: uid=amiller,ou=branch level one,ou=aci branch,o=RDN Wildcard Tests' }
<
call function="'testCase_Postamble'"/>
Place test-specific test information here. The tag, TestMarker, must be the same as the tag, TestSuiteName. #@TestMarker ACI RDN Wildcard Tests #@TestName Test whole-rdn wildcard for single entry #@TestPurpose Target set equal to a dn with wildcard as attribute name, deny #@TestPreamble Admin adds an aci to the dn of one existing branch. #@TestStep Client searches entry with the targeted branch dn. #@TestStep Client searches entry with the previously targeted branch dn. #@TestResult Success if OpenDS returns 0 and the appropriate entry is returned in the last step. <
testcase name="getTestCaseName('DN with whole-rdn wildcard, single entry')">
<
call function="'testCase_Preamble'"/>
'ACI: RDN Wildcards: DN with whole-rdn wildcard, single entry, preamble adding aci,\n %s' % curr_aci
<
call function="'modifyEntry'">
{ 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
<
tcstatus result="'fail'"/>
'ACI: RDN Wildcards: DN with whole-rdn wildcard, single entry, user searching targeted entry'
<
call function="'SearchObject'">
{ 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' ,
'dsInstancePswd' : 'ACIRules' ,
'dsBaseDN' : 'uid=dmiller,ou=branch level three,ou=branch level two,ou=branch level one,ou=aci branch,o=RDN Wildcard Tests, o=ACI Tests,dc=example,dc=com' ,
'dsFilter' : 'objectclass=*' ,
'attributes' : 'cn sn uid' ,
returnString = STAXResult[0][1]
<
call function="'searchStringForSubstring'">
{ 'returnString' : returnString ,
'testString' : 'dn: uid=dmiller,ou=branch level three,ou=branch level two,ou=branch level one,ou=aci branch,o=RDN Wildcard Tests' ,
'ACI: RDN Wildcards: DN with whole-rdn wildcard, single entry, admin deleting aci'
<
call function="'modifyEntry'">
{ 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
<
tcstatus result="'fail'"/>
'ACI: RDN Wildcards: DN with whole-rdn wildcard, single entry, user searching previously targeted entry'
<
call function="'SearchObject'">
{ 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' ,
'dsInstancePswd' : 'ACIRules' ,
'dsBaseDN' : 'uid=dmiller,ou=branch level three,ou=branch level two,ou=branch level one,ou=aci branch,o=RDN Wildcard Tests, o=ACI Tests,dc=example,dc=com' ,
'dsFilter' : 'objectclass=*' ,
'attributes' : 'cn sn uid' ,
returnString = STAXResult[0][1]
<
call function="'checktestString'">
{ 'returnString' : returnString ,
'expectedString' : 'dn: uid=dmiller,ou=branch level three,ou=branch level two,ou=branch level one,ou=aci branch,o=RDN Wildcard Tests' }
<
call function="'testCase_Postamble'"/>
Place test-specific test information here. The tag, TestMarker, must be the same as the tag, TestSuiteName. #@TestMarker ACI RDN Wildcard Tests #@TestName Test whole-rdn wildcard for single entry, two level allow #@TestPurpose Target set equal to a dn with wildcard as attribute name, deny #@TestPreamble Admin adds an aci to the dn of one existing branch. #@TestStep Client searches entry with the targeted branch dn. #@TestStep Client searches entry with the previously targeted branch dn. #@TestResult Success if OpenDS returns 0 and the appropriate entrries are returned in the step 1 and the last step. <
testcase name="getTestCaseName('DN with whole-rdn wildcard, single entry, two level allow')">
<
call function="'testCase_Preamble'"/>
'ACI: RDN Wildcards: DN with whole-rdn wildcard, single entry, two level allow, preamble adding aci,\n %s' % curr_aci
<
call function="'modifyEntry'">
{ 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
<
tcstatus result="'fail'"/>
'ACI: RDN Wildcards: DN with whole-rdn wildcard, single entry, two level allow, user searching targeted entry'
<
call function="'SearchObject'">
{ 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' ,
'dsInstancePswd' : 'ACIRules' ,
'dsBaseDN' : 'uid=dmiller,ou=branch level three,ou=branch level two,ou=branch level one,ou=aci branch,o=RDN Wildcard Tests, o=ACI Tests,dc=example,dc=com' ,
'dsFilter' : 'objectclass=*' ,
'attributes' : 'cn sn uid' ,
returnString = STAXResult[0][1]
<
call function="'searchStringForSubstring'">
{ 'returnString' : returnString ,
'testString' : 'dn: uid=dmiller,ou=branch level three,ou=branch level two,ou=branch level one,ou=aci branch,o=RDN Wildcard Tests' ,
'ACI: RDN Wildcards: DN with whole-rdn wildcard, single entry, two level allow, admin deleting aci'
<
call function="'modifyEntry'">
{ 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
<
tcstatus result="'fail'"/>
'ACI: RDN Wildcards: DN with whole-rdn wildcard, single entry, two level allow, user searching previously targeted entry'
<
call function="'SearchObject'">
{ 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' ,
'dsInstancePswd' : 'ACIRules' ,
'dsBaseDN' : 'uid=dmiller,ou=branch level three,ou=branch level two,ou=branch level one,ou=aci branch,o=RDN Wildcard Tests, o=ACI Tests,dc=example,dc=com' ,
'dsFilter' : 'objectclass=*' ,
'attributes' : 'cn sn uid' ,
returnString = STAXResult[0][1]
<
call function="'checktestString'">
{ 'returnString' : returnString ,
'expectedString' : 'dn: uid=dmiller,ou=branch level three,ou=branch level two,ou=branch level one,ou=aci branch,o=RDN Wildcard Tests' }
<
call function="'testCase_Postamble'"/>
Place test-specific test information here. The tag, TestMarker, must be the same as the tag, TestSuiteName. #@TestMarker ACI RDN Wildcard Tests #@TestName Test multiple-whole-rdn wildcard for single entry, two level deny #@TestPurpose Target set equal to a dn with wildcard as attribute name, deny #@TestPreamble Admin adds an aci to the dn of one existing branch. #@TestStep Client searches entry with the targeted branch dn. #@TestStep Client searches entry with the previously targeted branch dn. #@TestResult Success if OpenDS returns 0 and the appropriate entry is returned in the last step. <
testcase name="getTestCaseName('DN with multiple-whole-rdn wildcard, single entry, two level deny')">
<
call function="'testCase_Preamble'"/>
'ACI: RDN Wildcards: DN with multiple-whole-rdn wildcard, single entry, two level deny, preamble adding aci,\n %s' % curr_aci
<
call function="'modifyEntry'">
{ 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
<
tcstatus result="'fail'"/>
'ACI: RDN Wildcards: DN with multiple-whole-rdn wildcard, single entry, two level deny, user searching targeted entry'
<
call function="'SearchObject'">
{ 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' ,
'dsInstancePswd' : 'ACIRules' ,
'dsBaseDN' : 'uid=dmiller,ou=branch level three,ou=branch level two,ou=branch level one,ou=aci branch,o=RDN Wildcard Tests, o=ACI Tests,dc=example,dc=com' ,
'dsFilter' : 'objectclass=*' ,
'attributes' : 'cn sn uid' ,
returnString = STAXResult[0][1]
<
call function="'searchStringForSubstring'">
{ 'returnString' : returnString ,
'testString' : 'dn: uid=dmiller,ou=branch level three,ou=branch level two,ou=branch level one,ou=aci branch,o=RDN Wildcard Tests' ,
'ACI: RDN Wildcards: DN with multiple-whole-rdn wildcard, single entry, two level deny, admin deleting aci'
<
call function="'modifyEntry'">
{ 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
<
tcstatus result="'fail'"/>
'ACI: RDN Wildcards: DN with multiple-whole-rdn wildcard, single entry, two level deny, user searching previously targeted entry'
<
call function="'SearchObject'">
{ 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' ,
'dsInstancePswd' : 'ACIRules' ,
'dsBaseDN' : 'uid=dmiller,ou=branch level three,ou=branch level two,ou=branch level one,ou=aci branch,o=RDN Wildcard Tests, o=ACI Tests,dc=example,dc=com' ,
'dsFilter' : 'objectclass=*' ,
'attributes' : 'cn sn uid' ,
returnString = STAXResult[0][1]
<
call function="'checktestString'">
{ 'returnString' : returnString ,
'expectedString' : 'dn: uid=dmiller,ou=branch level three,ou=branch level two,ou=branch level one,ou=aci branch,o=RDN Wildcard Tests' }
<
call function="'testCase_Postamble'"/>
Place test-specific test information here. The tag, TestMarker, must be the same as the tag, TestSuiteName. #@TestMarker ACI RDN Wildcard Tests #@TestName Test whole-rdn wildcard for single entry, two level deny #@TestPurpose Target set equal to a dn with wildcard as attribute name, deny #@TestPreamble Admin adds an aci to the dn of one existing branch. #@TestStep Client searches entry with the targeted branch dn. #@TestStep Client searches entry with the previously targeted branch dn. #@TestResult Success if OpenDS returns 0 and the appropriate entry is returned in the last step. <
testcase name="getTestCaseName('DN with whole-rdn wildcard, single entry, two level deny')">
<
call function="'testCase_Preamble'"/>
'ACI: RDN Wildcards: DN with whole-rdn wildcard, single entry, two level deny, preamble adding aci,\n %s' % curr_aci
<
call function="'modifyEntry'">
{ 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
<
tcstatus result="'fail'"/>
'ACI: RDN Wildcards: DN with whole-rdn wildcard, single entry, two level deny, user searching targeted entry'
<
call function="'SearchObject'">
{ 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' ,
'dsInstancePswd' : 'ACIRules' ,
'dsBaseDN' : 'uid=dmiller,ou=branch level three,ou=branch level two,ou=branch level one,ou=aci branch,o=RDN Wildcard Tests, o=ACI Tests,dc=example,dc=com' ,
'dsFilter' : 'objectclass=*' ,
'attributes' : 'cn sn uid' ,
returnString = STAXResult[0][1]
<
call function="'searchStringForSubstring'">
{ 'returnString' : returnString ,
'testString' : 'dn: uid=dmiller,ou=branch level three,ou=branch level two,ou=branch level one,ou=aci branch,o=RDN Wildcard Tests' ,
'ACI: RDN Wildcards: DN with whole-rdn wildcard, single entry, two level deny, admin deleting aci'
<
call function="'modifyEntry'">
{ 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
<
tcstatus result="'fail'"/>
'ACI: RDN Wildcards: DN with whole-rdn wildcard, single entry, two level deny, user searching previously targeted entry'
<
call function="'SearchObject'">
{ 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' ,
'dsInstancePswd' : 'ACIRules' ,
'dsBaseDN' : 'uid=dmiller,ou=branch level three,ou=branch level two,ou=branch level one,ou=aci branch,o=RDN Wildcard Tests, o=ACI Tests,dc=example,dc=com' ,
'dsFilter' : 'objectclass=*' ,
'attributes' : 'cn sn uid' ,
returnString = STAXResult[0][1]
<
call function="'checktestString'">
{ 'returnString' : returnString ,
'expectedString' : 'dn: uid=dmiller,ou=branch level three,ou=branch level two,ou=branch level one,ou=aci branch,o=RDN Wildcard Tests' }
<
call function="'testCase_Postamble'"/>
Place test-specific test information here. The tag, TestMarker, must be the same as the tag, TestSuiteName. #@TestMarker ACI RDN Wildcard Tests #@TestName Test multiple-whole-rdn wildcard for single entry, three level deny #@TestPurpose Target set equal to a dn with wildcard as attribute name, deny #@TestPreamble Admin adds an aci to the dn of one existing branch. #@TestStep Client searches entry with the targeted branch dn. #@TestStep Client searches entry with the previously targeted branch dn. #@TestResult Success if OpenDS returns 0 and the appropriate entry is returned in the last step. <
testcase name="getTestCaseName('DN with multiple-whole-rdn wildcard, single entry, three level deny')">
<
call function="'testCase_Preamble'"/>
'ACI: RDN Wildcards: DN with multiple-whole-rdn wildcard, single entry, three level deny, preamble adding aci,\n %s' % curr_aci
<
call function="'modifyEntry'">
{ 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
<
tcstatus result="'fail'"/>
'ACI: RDN Wildcards: DN with multiple-whole-rdn wildcard, single entry, three level deny, user searching targeted entry'
<
call function="'SearchObject'">
{ 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' ,
'dsInstancePswd' : 'ACIRules' ,
'dsBaseDN' : 'uid=dmiller,ou=branch level three,ou=branch level two,ou=branch level one,ou=aci branch,o=RDN Wildcard Tests, o=ACI Tests,dc=example,dc=com' ,
'dsFilter' : 'objectclass=*' ,
'attributes' : 'cn sn uid' ,
returnString = STAXResult[0][1]
<
call function="'searchStringForSubstring'">
{ 'returnString' : returnString ,
'testString' : 'dn: uid=dmiller,ou=branch level three,ou=branch level two,ou=branch level one,ou=aci branch,o=RDN Wildcard Tests' ,
'ACI: RDN Wildcards: DN with multiple-whole-rdn wildcard, single entry, three level deny, admin deleting aci'
<
call function="'modifyEntry'">
{ 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
<
tcstatus result="'fail'"/>
'ACI: RDN Wildcards: DN with multiple-whole-rdn wildcard, single entry, three level deny, user searching previously targeted entry'
<
call function="'SearchObject'">
{ 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' ,
'dsInstancePswd' : 'ACIRules' ,
'dsBaseDN' : 'uid=dmiller,ou=branch level three,ou=branch level two,ou=branch level one,ou=aci branch,o=RDN Wildcard Tests, o=ACI Tests,dc=example,dc=com' ,
'dsFilter' : 'objectclass=*' ,
'attributes' : 'cn sn uid' ,
returnString = STAXResult[0][1]
<
call function="'checktestString'">
{ 'returnString' : returnString ,
'expectedString' : 'dn: uid=dmiller,ou=branch level three,ou=branch level two,ou=branch level one,ou=aci branch,o=RDN Wildcard Tests' }
<
call function="'testCase_Postamble'"/>
Place test-specific test information here. The tag, TestMarker, must be the same as the tag, TestSuiteName. #@TestMarker ACI RDN Wildcard Tests #@TestName Test whole-rdn wildcard for single entry, three level deny #@TestPurpose Target set equal to a dn with wildcard as attribute name, deny #@TestPreamble Admin adds an aci to the dn of one existing branch. #@TestStep Client searches entry with the targeted branch dn. #@TestStep Client searches entry with the previously targeted branch dn. #@TestResult Success if OpenDS returns 0 and the appropriate entry is returned in the last step. <
testcase name="getTestCaseName('DN with whole-rdn wildcard, single entry, three level deny')">
<
call function="'testCase_Preamble'"/>
'ACI: RDN Wildcards: DN with whole-rdn wildcard, single entry, three level deny, preamble adding aci,\n %s' % curr_aci
<
call function="'modifyEntry'">
{ 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
<
tcstatus result="'fail'"/>
'ACI: RDN Wildcards: DN with whole-rdn wildcard, single entry, three level deny, user searching targeted entry'
<
call function="'SearchObject'">
{ 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' ,
'dsInstancePswd' : 'ACIRules' ,
'dsBaseDN' : 'uid=dmiller,ou=branch level three,ou=branch level two,ou=branch level one,ou=aci branch,o=RDN Wildcard Tests, o=ACI Tests,dc=example,dc=com' ,
'dsFilter' : 'objectclass=*' ,
'attributes' : 'cn sn uid' ,
returnString = STAXResult[0][1]
<
call function="'searchStringForSubstring'">
{ 'returnString' : returnString ,
'testString' : 'dn: uid=dmiller,ou=branch level three,ou=branch level two,ou=branch level one,ou=aci branch,o=RDN Wildcard Tests' ,
'ACI: RDN Wildcards: DN with whole-rdn wildcard, single entry, three level deny, admin deleting aci'
<
call function="'modifyEntry'">
{ 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
<
tcstatus result="'fail'"/>
'ACI: RDN Wildcards: DN with whole-rdn wildcard, single entry, three level deny, user searching previously targeted entry'
<
call function="'SearchObject'">
{ 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' ,
'dsInstancePswd' : 'ACIRules' ,
'dsBaseDN' : 'uid=dmiller,ou=branch level three,ou=branch level two,ou=branch level one,ou=aci branch,o=RDN Wildcard Tests, o=ACI Tests,dc=example,dc=com' ,
'dsFilter' : 'objectclass=*' ,
'attributes' : 'cn sn uid' ,
returnString = STAXResult[0][1]
<
call function="'checktestString'">
{ 'returnString' : returnString ,
'expectedString' : 'dn: uid=dmiller,ou=branch level three,ou=branch level two,ou=branch level one,ou=aci branch,o=RDN Wildcard Tests' }
<
call function="'testCase_Postamble'"/>
Place test-specific test information here. The tag, TestMarker, must be the same as the tag, TestSuiteName. #@TestMarker ACI RDN Wildcard Tests #@TestName Test whole-type and multiple-whole-rdn wildcard for several entries, shorthand #@TestPurpose Target set equal to a dn with wildcard as attribute name with shorthand, several entries, deny #@TestPreamble Admin adds an aci to the dn of one existing branch. #@TestStep Client searches entry with the targeted branch dn. #@TestStep Client searches entry with the previously targeted branch dn. #@TestResult Success if OpenDS returns 0 and the appropriate entry is returned in the last step. <
testcase name="getTestCaseName('DN with whole-type and multiple-whole-rdn wildcard, several entries, shorthand')">
<
call function="'testCase_Preamble'"/>
'ACI: RDN Wildcards: DN with whole-type and multiple-whole-rdn wildcard, several entries, shorthand, preamble adding aci,\n %s' % curr_aci
<
call function="'modifyEntry'">
{ 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
<
tcstatus result="'fail'"/>
'ACI: RDN Wildcards: DN with whole-type and multiple-whole-rdn wildcard, several entries, shorthand, user searching targeted entry'
<
call function="'SearchObject'">
{ 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' ,
'dsInstancePswd' : 'ACIRules' ,
'dsBaseDN' : 'ou=aci branch,o=RDN Wildcard Tests, o=ACI Tests,dc=example,dc=com' ,
'dsFilter' : 'uid=*miller' ,
'attributes' : 'cn sn uid' ,
returnString = STAXResult[0][1]
<
call function="'searchStringForSubstring'">
{ 'returnString' : returnString ,
'testString' : 'dn: uid=dmiller,ou=branch level three,ou=branch level two,ou=branch level one,ou=aci branch,o=RDN Wildcard Tests' ,
<
call function="'searchStringForSubstring'">
{ 'returnString' : returnString ,
'testString' : 'dn: uid=bmiller,ou=branch level two,ou=branch level one,ou=aci branch,o=RDN Wildcard Tests' ,
<
call function="'searchStringForSubstring'">
{ 'returnString' : returnString ,
'testString' : 'dn: uid=amiller,ou=branch level one,ou=aci branch,o=RDN Wildcard Tests' ,
'ACI: RDN Wildcards: DN with whole-type and multiple-whole-rdn wildcard, several entries, shorthand, admin deleting aci'
<
call function="'modifyEntry'">
{ 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
<
tcstatus result="'fail'"/>
'ACI: RDN Wildcards: DN with whole-type and multiple-whole-rdn wildcard, several entries, shorthand, user searching previously targeted entry'
<
call function="'SearchObject'">
{ 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' ,
'dsInstancePswd' : 'ACIRules' ,
'dsBaseDN' : 'uid=amiller,ou=branch level one,ou=aci branch,o=RDN Wildcard Tests, o=ACI Tests,dc=example,dc=com' ,
'dsFilter' : 'objectclass=*' ,
'attributes' : 'cn sn uid' ,
returnString = STAXResult[0][1]
<
call function="'checktestString'">
{ 'returnString' : returnString ,
'expectedString' : 'dn: uid=amiller,ou=branch level one,ou=aci branch,o=RDN Wildcard Tests' }
<
call function="'testCase_Postamble'"/>
Place test-specific test information here. The tag, TestMarker, must be the same as the tag, TestSuiteName. #@TestMarker ACI RDN Wildcard Tests #@TestName Test several multiple-whole-rdn wildcards for single entry, three level deny #@TestPurpose Target set equal to a dn with wildcard as attribute name, deny #@TestPreamble Admin adds an aci to the dn of one existing branch. #@TestStep Client searches entry with the targeted branch dn. #@TestStep Client searches entry with the previously targeted branch dn. #@TestResult Success if OpenDS returns 0 and the appropriate entry is returned in the last step. <
testcase name="getTestCaseName('DN with several multiple-whole-rdn wildcards, three level deny')">
<
call function="'testCase_Preamble'"/>
'ACI: RDN Wildcards: DN with several multiple-whole-rdn wildcards, three level deny, preamble adding aci,\n %s' % curr_aci
<
call function="'modifyEntry'">
{ 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
<
tcstatus result="'fail'"/>
'ACI: RDN Wildcards: DN with several multiple-whole-rdn wildcards, three level deny, user searching targeted entry'
<
call function="'SearchObject'">
{ 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' ,
'dsInstancePswd' : 'ACIRules' ,
'dsBaseDN' : 'uid=dmiller,ou=branch level three,ou=branch level two,ou=branch level one,ou=aci branch,o=RDN Wildcard Tests, o=ACI Tests,dc=example,dc=com' ,
'dsFilter' : 'objectclass=*' ,
'attributes' : 'cn sn uid' ,
returnString = STAXResult[0][1]
<
call function="'searchStringForSubstring'">
{ 'returnString' : returnString ,
'testString' : 'dn: uid=dmiller,ou=branch level three,ou=branch level two,ou=branch level one,ou=aci branch,o=RDN Wildcard Tests' ,
'ACI: RDN Wildcards: DN with several multiple-whole-rdn wildcards, three level deny, admin deleting aci'
<
call function="'modifyEntry'">
{ 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
<
tcstatus result="'fail'"/>
'ACI: RDN Wildcards: DN with several multiple-whole-rdn wildcards, three level deny, user searching previously targeted entry'
<
call function="'SearchObject'">
{ 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' ,
'dsInstancePswd' : 'ACIRules' ,
'dsBaseDN' : 'uid=dmiller,ou=branch level three,ou=branch level two,ou=branch level one,ou=aci branch,o=RDN Wildcard Tests, o=ACI Tests,dc=example,dc=com' ,
'dsFilter' : 'objectclass=*' ,
'attributes' : 'cn sn uid' ,
returnString = STAXResult[0][1]
<
call function="'checktestString'">
{ 'returnString' : returnString ,
'expectedString' : 'dn: uid=dmiller,ou=branch level three,ou=branch level two,ou=branch level one,ou=aci branch,o=RDN Wildcard Tests' }
<
call function="'testCase_Postamble'"/>
Place test-specific test information here. The tag, TestMarker, must be the same as the tag, TestSuiteName. #@TestMarker ACI RDN Wildcard Tests #@TestName Test several multiple-whole-rdn wildcards with bad branch #@TestPurpose Target set equal to a dn with wildcard as attribute name, deny #@TestPreamble Admin adds an aci to the dn of one existing branch. #@TestStep Client searches entry with the targeted branch dn. #@TestStep Client searches entry with the previously targeted branch dn. #@TestResult Success if OpenDS returns 0 and the appropriate entry is returned in the last step. <
testcase name="getTestCaseName('DN with several multiple-whole-rdn wildcards with bad branch')">
<
call function="'testCase_Preamble'"/>
'ACI: RDN Wildcards: DN with several multiple-whole-rdn wildcards with bad branch, preamble adding aci,\n %s' % curr_aci
<
call function="'modifyEntry'">
{ 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
<
tcstatus result="'fail'"/>
'ACI: RDN Wildcards: DN with several multiple-whole-rdn wildcards with bad branch, user searching targeted entry'
<
call function="'SearchObject'">
{ 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' ,
'dsInstancePswd' : 'ACIRules' ,
'dsBaseDN' : 'uid=dmiller,ou=branch level three,ou=branch level two,ou=branch level one,ou=aci branch,o=RDN Wildcard Tests, o=ACI Tests,dc=example,dc=com' ,
'dsFilter' : 'objectclass=*' ,
'attributes' : 'cn sn uid' ,
returnString = STAXResult[0][1]
<
call function="'searchStringForSubstring'">
{ 'returnString' : returnString ,
'testString' : 'dn: uid=dmiller,ou=branch level three,ou=branch level two,ou=branch level one,ou=aci branch,o=RDN Wildcard Tests' ,
'ACI: RDN Wildcards: DN with several multiple-whole-rdn wildcards with bad branch, admin deleting aci'
<
call function="'modifyEntry'">
{ 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
<
tcstatus result="'fail'"/>
'ACI: RDN Wildcards: DN with several multiple-whole-rdn wildcards with bad branch, user searching previously targeted entry'
<
call function="'SearchObject'">
{ 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' ,
'dsInstancePswd' : 'ACIRules' ,
'dsBaseDN' : 'uid=dmiller,ou=branch level three,ou=branch level two,ou=branch level one,ou=aci branch,o=RDN Wildcard Tests, o=ACI Tests,dc=example,dc=com' ,
'dsFilter' : 'objectclass=*' ,
'attributes' : 'cn sn uid' ,
returnString = STAXResult[0][1]
<
call function="'checktestString'">
{ 'returnString' : returnString ,
'expectedString' : 'dn: uid=dmiller,ou=branch level three,ou=branch level two,ou=branch level one,ou=aci branch,o=RDN Wildcard Tests' }
<
call function="'testCase_Postamble'"/>
Place test-specific test information here. The tag, TestMarker, must be the same as the tag, TestSuiteName. #@TestMarker ACI RDN Wildcard Tests #@TestName Test multiple-whole-rdn wildcard syntax, multiple spaces #@TestPurpose Target set equal to a dn with wildcard as attribute name, deny #@TestPreamble Admin adds an aci to the dn of one existing branch. #@TestStep Client searches entry with the targeted branch dn. #@TestStep Client searches entry with the previously targeted branch dn. #@TestResult Success if OpenDS returns 0 and the appropriate entry is returned in the last step. <
testcase name="getTestCaseName('DN with multiple-whole-rdn wildcard syntax, multiple spaces')">
<
call function="'testCase_Preamble'"/>
'ACI: RDN Wildcards: DN with multiple-whole-rdn wildcard syntax, multiple spaces, preamble adding aci,\n %s' % curr_aci
<
call function="'modifyEntry'">
{ 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
<
tcstatus result="'fail'"/>
'ACI: RDN Wildcards: DN with multiple-whole-rdn wildcard syntax, multiple spaces, user searching targeted entry'
<
call function="'SearchObject'">
{ 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' ,
'dsInstancePswd' : 'ACIRules' ,
'dsBaseDN' : 'uid=dmiller,ou=branch level three,ou=branch level two,ou=branch level one,ou=aci branch,o=RDN Wildcard Tests, o=ACI Tests,dc=example,dc=com' ,
'dsFilter' : 'objectclass=*' ,
'attributes' : 'cn sn uid' ,
returnString = STAXResult[0][1]
<
call function="'searchStringForSubstring'">
{ 'returnString' : returnString ,
'testString' : 'dn: uid=dmiller,ou=branch level three,ou=branch level two,ou=branch level one,ou=aci branch,o=RDN Wildcard Tests' ,
'ACI: RDN Wildcards: DN with multiple-whole-rdn wildcard syntax, multiple spaces, admin deleting aci'
<
call function="'modifyEntry'">
{ 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
<
tcstatus result="'fail'"/>
'ACI: RDN Wildcards: DN with multiple-whole-rdn wildcard syntax, multiple spaces, user searching previously targeted entry'
<
call function="'SearchObject'">
{ 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' ,
'dsInstancePswd' : 'ACIRules' ,
'dsBaseDN' : 'uid=dmiller,ou=branch level three,ou=branch level two,ou=branch level one,ou=aci branch,o=RDN Wildcard Tests, o=ACI Tests,dc=example,dc=com' ,
'dsFilter' : 'objectclass=*' ,
'attributes' : 'cn sn uid' ,
returnString = STAXResult[0][1]
<
call function="'checktestString'">
{ 'returnString' : returnString ,
'expectedString' : 'dn: uid=dmiller,ou=branch level three,ou=branch level two,ou=branch level one,ou=aci branch,o=RDN Wildcard Tests' }
<
call function="'testCase_Postamble'"/>
Place test-specific test information here. The tag, TestMarker, must be the same as the tag, TestSuiteName. #@TestMarker ACI RDN Wildcard Tests #@TestName Test multiple-whole-rdn wildcard syntax, extra internal space #@TestPurpose Target set equal to a dn with multiple-whole-rdn wildcard syntax, extra internal space #@TestStep Admin adds an aci to the dn of one existing branch. #@TestResult Success if OpenDS returns 21. <
testcase name="getTestCaseName('DN with multiple-whole-rdn wildcard syntax, extra internal space')">
<
call function="'testCase_Preamble'"/>
'ACI: RDN Wildcards: DN with multiple-whole-rdn wildcard syntax, extra internal space, preamble adding aci,\n %s' % curr_aci
<
call function="'modifyEntry'">
{ 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
<
call function="'testCase_Postamble'"/>
Place test-specific test information here. The tag, TestMarker, must be the same as the tag, TestSuiteName. #@TestMarker ACI RDN Wildcard Tests #@TestName Test multiple-whole-rdn wildcard syntax, extra wildcard #@TestPurpose Target set equal to a dn with wmultiple-whole-rdn wildcard syntax, extra wildcard #@TestStep Admin adds an aci to the dn of one existing branch. #@TestResult Success if OpenDS returns 21. <
testcase name="getTestCaseName('DN with multiple-whole-rdn wildcard syntax, extra wildcard')">
<
call function="'testCase_Preamble'"/>
'ACI: RDN Wildcards: DN with multiple-whole-rdn wildcard syntax, extra wildcard, preamble adding aci,\n %s' % curr_aci
<
call function="'modifyEntry'">
{ 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
<
call function="'testCase_Postamble'"/>
Place test-specific test information here. The tag, TestMarker, must be the same as the tag, TestSuiteName. #@TestMarker ACI RDN Wildcard Tests #@TestName Test usrdn syntax, single wildcard for branch #@TestPurpose Target set equal to a dn with single wildcard in branch name, deny #@TestStep Admin adds an aci to the dn of one existing branch. #@TestResult Success if OpenDS returns 21. <
testcase name="getTestCaseName('DN with usrdn syntax, single wildcard for branch')">
<
call function="'testCase_Preamble'"/>
'ACI: RDN Wildcards: DN with usrdn syntax, single wildcard for branch, preamble adding aci,\n %s' % curr_aci
<
call function="'modifyEntry'">
{ 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
<
call function="'testCase_Postamble'"/>
Place test-specific test information here. The tag, TestMarker, must be the same as the tag, TestSuiteName. #@TestMarker ACI RDN Wildcard Tests #@TestName Test usrdn syntax, double wildcard notation for branch #@TestPurpose Target set equal to a dn with double wildcard notation, deny #@TestStep Admin adds an aci to the dn of one existing branch. #@TestResult Success if OpenDS returns 21. <
testcase name="getTestCaseName('DN with usrdn syntax, double wildcard notation for branch')">
<
call function="'testCase_Preamble'"/>
'ACI: RDN Wildcards: DN with usrdn syntax, double wildcard notation for branch, preamble adding aci,\n %s' % curr_aci
<
call function="'modifyEntry'">
{ 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
<
call function="'testCase_Postamble'"/>
Place test-specific test information here. The tag, TestMarker, must be the same as the tag, TestSuiteName. #@TestMarker ACI RDN Wildcard Tests #@TestName Test usrdn syntax, wildcard notation for uid #@TestPurpose Target set equal to a dn with wildcard as attribute name, deny #@TestPreamble Admin adds an aci to the dn of one existing branch. #@TestStep Client searches entry with the targeted branch dn. #@TestStep Client searches entry with the targeted branch dn with prohibited user. #@TestStep Client searches entry with the previously targeted branch dn. #@TestResult Success if OpenDS returns 0 and the appropriate entry is returned in step 2 and the last step. <
testcase name="getTestCaseName('DN with usrdn syntax, wildcard notation for uid')">
<
call function="'testCase_Preamble'"/>
'ACI: RDN Wildcards: DN with usrdn syntax, wildcard notation for uid, preamble adding aci,\n %s' % curr_aci
<
call function="'modifyEntry'">
{ 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
<
if expr="returnCode != '0'">
<
tcstatus result="'fail'"/>
'ACI: RDN Wildcards: DN with usrdn syntax, wildcard notation for uid, user searching targeted entry'
<
call function="'SearchObject'">
{ 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
'dsInstanceDn' : 'uid=buser,ou=people,o=ACI Tests,dc=example,dc=com' ,
'dsInstancePswd' : 'ACIRules' ,
'dsBaseDN' : 'uid=dmiller,ou=branch level three,ou=branch level two,ou=branch level one,ou=aci branch,o=RDN Wildcard Tests, o=ACI Tests,dc=example,dc=com' ,
'dsFilter' : 'objectclass=*' ,
'attributes' : 'cn sn uid' ,
returnString = STAXResult[0][1]
<
call function="'searchStringForSubstring'">
{ 'returnString' : returnString ,
'testString' : 'dn: uid=dmiller,ou=branch level three,ou=branch level two,ou=branch level one,ou=aci branch,o=RDN Wildcard Tests' ,
'ACI: RDN Wildcards: DN with usrdn syntax, wildcard notation for uid, user searching targeted entry'
<
call function="'SearchObject'">
{ 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' ,
'dsInstancePswd' : 'ACIRules' ,
'dsBaseDN' : 'uid=dmiller,ou=branch level three,ou=branch level two,ou=branch level one,ou=aci branch,o=RDN Wildcard Tests, o=ACI Tests,dc=example,dc=com' ,
'dsFilter' : 'objectclass=*' ,
'attributes' : 'cn sn uid' ,
returnString = STAXResult[0][1]
<
call function="'searchStringForSubstring'">
{ 'returnString' : returnString ,
'testString' : 'dn: uid=dmiller,ou=branch level three,ou=branch level two,ou=branch level one,ou=aci branch,o=RDN Wildcard Tests' ,
'ACI: RDN Wildcards: DN with usrdn syntax, wildcard notation for uid, admin deleting aci'
<
call function="'modifyEntry'">
{ 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
<
tcstatus result="'fail'"/>
'ACI: RDN Wildcards: DN with usrdn syntax, wildcard notation for uid, user searching previously targeted entry'
<
call function="'SearchObject'">
{ 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' ,
'dsInstancePswd' : 'ACIRules' ,
'dsBaseDN' : 'uid=dmiller,ou=branch level three,ou=branch level two,ou=branch level one,ou=aci branch,o=RDN Wildcard Tests, o=ACI Tests,dc=example,dc=com' ,
'dsFilter' : 'objectclass=*' ,
'attributes' : 'cn sn uid' ,
returnString = STAXResult[0][1]
<
call function="'checktestString'">
{ 'returnString' : returnString ,
'expectedString' : 'dn: uid=dmiller,ou=branch level three,ou=branch level two,ou=branch level one,ou=aci branch,o=RDN Wildcard Tests' }
<
call function="'testCase_Postamble'"/>
Place test-specific test information here. The tag, TestMarker, must be the same as the tag, TestSuiteName. #@TestMarker ACI Modify RDN Tests #@TestPurpose Remove entries #@TestStep Directory Manager removes entries that were used for testing. #@TestResult Success if OpenDS returns 0. <!-- cross reference to DS6 docs --> <
testcase name="getTestCaseName('Postamble')">
<
call function="'testCase_Preamble'"/>
'ACI: RDN Wildcards: Postamble - delete branch, o=Modify RDN Tests'
<
call function="'DeleteEntry'">
{ 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
'dsBaseDN' : 'o=RDN Wildcard Tests, o=ACI Tests,dc=example,dc=com' ,
<
call function="'checktestRC'">
<
call function="'testCase_Postamble'"/>
<
import machine="STAF_LOCAL_HOSTNAME" <
call function="'aci_cleanup'" />
<
call function="'testSuite_Postamble'"/>