global_acis.xml revision d81978a0815d5b8a75633c35e3e1f8708d36f017
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE stax SYSTEM "/shared/stax.dtd">
<!--
! CDDL HEADER START
!
! The contents of this file are subject to the terms of the
! Common Development and Distribution License, Version 1.0 only
! (the "License"). You may not use this file except in compliance
! with the License.
!
! You can obtain a copy of the license at
! trunk/opends/resource/legal-notices/OpenDS.LICENSE
! or https://OpenDS.dev.java.net/OpenDS.LICENSE.
! See the License for the specific language governing permissions
! and limitations under the License.
!
! When distributing Covered Code, include this CDDL HEADER in each
! file and include the License file at
! trunk/opends/resource/legal-notices/OpenDS.LICENSE. If applicable,
! add the following below this CDDL HEADER, with the fields enclosed
! by brackets "[]" replaced with your own identifying information:
! Portions Copyright [yyyy] [name of copyright owner]
!
! CDDL HEADER END
!
! Copyright 2008 Sun Microsystems, Inc.
! -->
<stax>
<defaultcall function="global_acis"/>
<function name="global_acis">
<sequence>
<block name="'global-acis'">
<sequence>
<script>
if not CurrentTestPath.has_key('group'):
CurrentTestPath['group']='aci'
CurrentTestPath['suite']=STAXCurrentBlock
</script>
<call function="'testSuite_Preamble'"/>
<!---
Place suite-specific test information here.
#@TestSuiteName ACI Global Tests
#@TestSuitePurpose Test the basic global ACI Support.
#@TestSuiteGroup Global ACI Tests
#@TestScript global_acis.xml
-->
<import machine="STAF_LOCAL_HOSTNAME"
file="'%s/testcases/aci/aci_setup.xml' % (TESTS_DIR)"/>
<call function="'aci_setup'" />
<!---
Place test-specific test information here.
The tag, TestMarker, must be the same as the tag, TestSuiteName.
#@TestMarker ACI Global Tests
#@TestName Global ACI Search
#@TestIssue 1402
#@TestPurpose Search against default global acis
#@TestPreamble none
#@TestStep Client searches entry.
#@TestPostamble none
#@TestResult Success if OpenDS returns 0
and entry for step 1.
The attributes, sn and dn, should be returned
but not userpassword.
-->
<testcase name="getTestCaseName('Search')">
<sequence>
<call function="'testCase_Preamble'"/>
<message>
'ACI: Global: Search, user searching entry'
</message>
<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=scarter,ou=People,ou=aci branch,o=ACI Tests,dc=example,dc=com' ,
'dsFilter' : 'objectclass=*' ,
'attributes' : 'cn sn uid userpassword' }
</call>
<script>
returnString = STAXResult[0][1]
</script>
<call function="'searchStringForSubstring'">
{ 'returnString' : returnString ,
'testString' : 'sn' ,
'expectedResult' : '1' }
</call>
<call function="'searchStringForSubstring'">
{ 'returnString' : returnString ,
'testString' : 'userpassword' ,
'expectedResult' : '0' }
</call>
<call function="'checktestString'">
{ 'returnString' : returnString ,
'expectedString' : 'dn: uid=scarter,ou=People,ou=aci branch,o=ACI Tests' }
</call>
<call function="'testCase_Postamble'"/>
</sequence>
</testcase>
<!---
Place test-specific test information here.
The tag, TestMarker, must be the same as the tag, TestSuiteName.
#@TestMarker ACI Global Tests
#@TestName Global ACI Search - One operational attribute for one entry
#@TestIssue 1622
#@TestPurpose Search one operational attribute for one entry against default global acis
#@TestPreamble none
#@TestStep Client searches one operational attribute of an entry.
#@TestPostamble none
#@TestResult Success if OpenDS returns 0
and entry for step 1.
The attributes, creatorsname and dn, should be returned.
-->
<testcase name="getTestCaseName('Search Operational Attribute of an entry')">
<sequence>
<call function="'testCase_Preamble'"/>
<message>
'ACI: Global: Search, user searching operational attribute of an entry'
</message>
<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=scarter,ou=People,ou=aci branch,o=ACI Tests,dc=example,dc=com' ,
'dsFilter' : 'objectclass=*' ,
'attributes' : 'creatorsName'}
</call>
<script>
returnString = STAXResult[0][1]
</script>
<call function="'searchStringForSubstring'">
{ 'returnString' : returnString ,
'testString' : 'creatorsName' ,
'expectedResult' : '1' }
</call>
<call function="'checktestString'">
{ 'returnString' : returnString ,
'expectedString' : 'dn: uid=scarter,ou=People,ou=aci branch,o=ACI Tests' }
</call>
<call function="'testCase_Postamble'"/>
</sequence>
</testcase>
<!---
Place test-specific test information here.
The tag, TestMarker, must be the same as the tag, TestSuiteName.
#@TestMarker ACI Global Tests
#@TestName Global ACI Search - All operational attributes for one entry
#@TestIssue 1622
#@TestPurpose Search all operational attributes for one entry against default global acis
#@TestPreamble Admin modify entry so there are modifyTimestamp and modifiersName attributes
#@TestStep Client searches all operational attributes of an entry.
#@TestPostamble none
#@TestResult Success if OpenDS returns 0
and entry for step 1.
Six attributes and the dn should be returned.
-->
<testcase name="getTestCaseName('Search All Operational Attributes of an entry')">
<sequence>
<call function="'testCase_Preamble'"/>
<message>
'ACI: Global: Search, admin modifying entry'
</message>
<call function="'modifyEntry'">
{ 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
'entryToBeModified' : '%s/aci/global_acis/mod_modifier_entry1.ldif' % (remote.data) }
</call>
<if expr="RC != 0">
<tcstatus result="'fail'"/>
</if>
<message>
'ACI: Global: Search, user searching all operational attributes of an entry'
</message>
<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=scarter,ou=People,ou=aci branch,o=ACI Tests,dc=example,dc=com' ,
'dsFilter' : 'objectclass=*' ,
'attributes' : '+'}
</call>
<script>
returnString = STAXResult[0][1]
</script>
<call function="'searchStringForSubstring'">
{ 'returnString' : returnString ,
'testString' : 'creatorsName:' ,
'expectedResult' : '1' }
</call>
<call function="'searchStringForSubstring'">
{ 'returnString' : returnString ,
'testString' : 'createTimestamp:' ,
'expectedResult' : '1' }
</call>
<call function="'searchStringForSubstring'">
{ 'returnString' : returnString ,
'testString' : 'entryDN:' ,
'expectedResult' : '1' }
</call>
<call function="'searchStringForSubstring'">
{ 'returnString' : returnString ,
'testString' : 'modifiersName:' ,
'expectedResult' : '1' }
</call>
<call function="'searchStringForSubstring'">
{ 'returnString' : returnString ,
'testString' : 'modifyTimestamp' ,
'expectedResult' : '1' }
</call>
<call function="'searchStringForSubstring'">
{ 'returnString' : returnString ,
'testString' : 'subschemaSubentry:' ,
'expectedResult' : '1' }
</call>
<call function="'checktestString'">
{ 'returnString' : returnString ,
'expectedString' : 'dn: uid=scarter,ou=People,ou=aci branch,o=ACI Tests' }
</call>
<call function="'testCase_Postamble'"/>
</sequence>
</testcase>
<!---
Place test-specific test information here.
The tag, TestMarker, must be the same as the tag, TestSuiteName.
#@TestMarker ACI Global Tests
#@TestName Global ACI Search - One operational attribute for cn=schema
#@TestIssue 1622
#@TestPurpose Search one operational attribute for cn=schema against default global acis
#@TestPreamble none
#@TestStep Client searches one operational attribute of cn=schema.
#@TestPostamble none
#@TestResult Success if OpenDS returns 0
and entry for step 1.
The attributes, matchingrules and dn, should be returned.
-->
<testcase name="getTestCaseName('Search Operational Attribute, cn=schema')">
<sequence>
<call function="'testCase_Preamble'"/>
<message>
'ACI: Global: Search, user searching operational attribute of cn=schema'
</message>
<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' : 'cn=schema' ,
'dsFilter' : 'objectclass=*' ,
'attributes' : 'matchingRules' ,
'extraParams' : '-T -s base' }
</call>
<script>
returnString = STAXResult[0][1]
</script>
<call function="'searchStringForSubstring'">
{ 'returnString' : returnString ,
'testString' : 'matchingRules:' ,
'expectedResult' : '1' }
</call>
<call function="'checktestString'">
{ 'returnString' : returnString ,
'expectedString' : 'dn: cn=schema' }
</call>
<call function="'testCase_Postamble'"/>
</sequence>
</testcase>
<!---
Place test-specific test information here.
The tag, TestMarker, must be the same as the tag, TestSuiteName.
#@TestMarker ACI Global Tests
#@TestName Global ACI Search - All operational attributes for cn=schema
#@TestIssue 1622
#@TestPurpose Search all operational attributes for cn=schema against default global acis
#@TestPreamble none
#@TestStep Client searches all operational attributes of cn=schema.
#@TestPostamble none
#@TestResult Success if OpenDS returns 0
and entry for step 1.
Six attributes and the dn should be returned.
-->
<testcase name="getTestCaseName('Search All Operational Attributes, cn=schema')">
<sequence>
<call function="'testCase_Preamble'"/>
<message>
'ACI: Global: Search, user searching operational attribute of cn=schema'
</message>
<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' : 'cn=schema' ,
'dsFilter' : 'objectclass=*' ,
'attributes' : '+' ,
'extraParams' : '-T -s base' }
</call>
<script>
returnString = STAXResult[0][1]
</script>
<call function="'searchStringForSubstring'">
{ 'returnString' : returnString ,
'testString' : 'attributeTypes:' ,
'expectedResult' : '1' }
</call>
<call function="'searchStringForSubstring'">
{ 'returnString' : returnString ,
'testString' : 'dITStructureRules:' ,
'expectedResult' : '1' }
</call>
<call function="'searchStringForSubstring'">
{ 'returnString' : returnString ,
'testString' : 'ldapSyntaxes:' ,
'expectedResult' : '1' }
</call>
<call function="'searchStringForSubstring'">
{ 'returnString' : returnString ,
'testString' : 'matchingRules:' ,
'expectedResult' : '1' }
</call>
<call function="'searchStringForSubstring'">
{ 'returnString' : returnString ,
'testString' : 'nameForms:' ,
'expectedResult' : '1' }
</call>
<call function="'searchStringForSubstring'">
{ 'returnString' : returnString ,
'testString' : 'objectClasses:' ,
'expectedResult' : '1' }
</call>
<call function="'checktestString'">
{ 'returnString' : returnString ,
'expectedString' : 'dn: cn=schema' }
</call>
<call function="'testCase_Postamble'"/>
</sequence>
</testcase>
<!---
Place test-specific test information here.
The tag, TestMarker, must be the same as the tag, TestSuiteName.
#@TestMarker ACI Global Tests
#@TestName Global ACI Search - One operational attribute for root dse
#@TestIssue 1622
#@TestPurpose Search one operational attribute for root dse against default global acis
#@TestPreamble none
#@TestStep Client searches one operational attribute of root dse.
#@TestPostamble none
#@TestResult Success if OpenDS returns 0
and entry for step 1.
The attributes, vendorname and dn, should be returned.
-->
<testcase name="getTestCaseName('Search Operational Attribute, root dse')">
<sequence>
<call function="'testCase_Preamble'"/>
<message>
'ACI: Global: Search, user searching operational attribute of root dse'
</message>
<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' : ' ' ,
'dsFilter' : 'objectclass=*' ,
'attributes' : 'vendorName' ,
'extraParams' : '-T -s base' }
</call>
<script>
returnString = STAXResult[0][1]
</script>
<call function="'searchStringForSubstring'">
{ 'returnString' : returnString ,
'testString' : 'vendorName:' ,
'expectedResult' : '1' }
</call>
<call function="'checktestString'">
{ 'returnString' : returnString ,
'expectedString' : 'dn: ' }
</call>
<call function="'testCase_Postamble'"/>
</sequence>
</testcase>
<!---
Place test-specific test information here.
The tag, TestMarker, must be the same as the tag, TestSuiteName.
#@TestMarker ACI Global Tests
#@TestName Global ACI Search - All operational attributes for root dse
#@TestIssue 1622
#@TestPurpose Search all operational attributes for root dse against default global acis
#@TestPreamble none
#@TestStep Client searches all operational attributes of root dse.
#@TestPostamble none
#@TestResult Success if OpenDS returns 0
and entry for step 1.
Eight attributes and the dn should be returned.
-->
<testcase name="getTestCaseName('Search All Operational Attribute, root dse')">
<sequence>
<call function="'testCase_Preamble'"/>
<message>
'ACI: Global: Search, user searching operational attribute of root dse'
</message>
<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' : ' ' ,
'dsFilter' : 'objectclass=*' ,
'attributes' : '+' ,
'extraParams' : '-T -s base' }
</call>
<script>
returnString = STAXResult[0][1]
</script>
<call function="'searchStringForSubstring'">
{ 'returnString' : returnString ,
'testString' : 'namingContexts:' ,
'expectedResult' : '1' }
</call>
<call function="'searchStringForSubstring'">
{ 'returnString' : returnString ,
'testString' : 'supportedAuthPasswordSchemes:' ,
'expectedResult' : '1' }
</call>
<call function="'searchStringForSubstring'">
{ 'returnString' : returnString ,
'testString' : 'supportedControl:' ,
'expectedResult' : '1' }
</call>
<call function="'searchStringForSubstring'">
{ 'returnString' : returnString ,
'testString' : 'supportedExtension:' ,
'expectedResult' : '1' }
</call>
<call function="'searchStringForSubstring'">
{ 'returnString' : returnString ,
'testString' : 'supportedFeatures:' ,
'expectedResult' : '1' }
</call>
<call function="'searchStringForSubstring'">
{ 'returnString' : returnString ,
'testString' : 'supportedSASLMechanisms:' ,
'expectedResult' : '1' }
</call>
<call function="'searchStringForSubstring'">
{ 'returnString' : returnString ,
'testString' : 'vendorName:' ,
'expectedResult' : '1' }
</call>
<call function="'searchStringForSubstring'">
{ 'returnString' : returnString ,
'testString' : 'vendorVersion:' ,
'expectedResult' : '1' }
</call>
<call function="'checktestString'">
{ 'returnString' : returnString ,
'expectedString' : 'dn: ' }
</call>
<call function="'testCase_Postamble'"/>
</sequence>
</testcase>
<!---
Place test-specific test information here.
The tag, TestMarker, must be the same as the tag, TestSuiteName.
#@TestMarker ACI Global Tests
#@TestName Global ACI Search - All operational attributes for cn=config
#@TestIssue 1622
#@TestPurpose Search all operational attributes for cn=config against default global acis
#@TestPreamble none
#@TestStep Client searches all operational attributes for cn=config.
#@TestPostamble none
#@TestResult Success if OpenDS returns 50.
-->
<testcase name="getTestCaseName('Search Operational Attribute, cn=config')">
<sequence>
<call function="'testCase_Preamble'"/>
<message>
'ACI: Global: Search, user searching operational attribute of an entry'
</message>
<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' : 'cn=config' ,
'dsFilter' : 'objectclass=*' ,
'attributes' : '+' ,
'expectedRC' : 50
}
</call>
<call function="'testCase_Postamble'"/>
</sequence>
</testcase>
<!---
Place test-specific test information here.
The tag, TestMarker, must be the same as the tag, TestSuiteName.
#@TestMarker ACI Global Tests
#@TestName Global ACI Search - Anonymous
#@TestIssue 1621
#@TestPurpose Anonymous search against default global acis
#@TestPreamble none
#@TestStep Client searches entry as anonymous.
#@TestPostamble none
#@TestResult Success if OpenDS returns 0
and entry for step 1.
The attributes, uid, sn and dn, should be returned for specified dn.
-->
<testcase name="getTestCaseName('Anon Search')">
<sequence>
<call function="'testCase_Preamble'"/>
<message>
'ACI: Global: AnonSearch, user searching entry'
</message>
<call function="'AnonSearchObject'">
{ 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
'dsBaseDN' : 'ou=People,ou=aci branch,o=ACI Tests,dc=example,dc=com' ,
'dsFilter' : 'objectclass=*' ,
'extraParams' : '-T' ,
'dsFilter' : '(uid=scarter)'}
</call>
<script>
returnString = STAXResult[0][1]
</script>
<call function="'searchStringForSubstring'">
{ 'returnString' : returnString ,
'testString' : 'sn' ,
'expectedResult' : '1' }
</call>
<call function="'searchStringForSubstring'">
{ 'returnString' : returnString ,
'testString' : 'uid' ,
'expectedResult' : '1' }
</call>
<call function="'checktestString'">
{ 'returnString' : returnString ,
'expectedString' : 'dn: uid=scarter,ou=People,ou=aci branch,o=ACI Tests' }
</call>
<call function="'testCase_Postamble'"/>
</sequence>
</testcase>
<!---
Place test-specific test information here.
The tag, TestMarker, must be the same as the tag, TestSuiteName.
#@TestMarker ACI Global Tests
#@TestName Global ACI Search - Anonymous with not equals filter
#@TestIssue 1621
#@TestPurpose Anonymous search with not equals filter against default global acis
#@TestPreamble none
#@TestStep Client searches entry as anonymous with not equals filter
#@TestPostamble none
#@TestResult Success if OpenDS returns 0
and entries for step 1.
The attributes, uid, sn and dn, should be returned for all other entries but the
for the specified dn.
-->
<testcase name="getTestCaseName('Anon Search, not equals filter')">
<sequence>
<call function="'testCase_Preamble'"/>
<message>
'ACI: Global: AnonSearch, not equals filter, user searching entry'
</message>
<call function="'AnonSearchObject'">
{ 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
'dsBaseDN' : 'ou=People,ou=aci branch,o=ACI Tests,dc=example,dc=com' ,
'dsFilter' : 'objectclass=*' ,
'extraParams' : '-T' ,
'dsFilter' : '(!(uid=scarter))'}
</call>
<script>
returnString = STAXResult[0][1]
</script>
<call function="'searchStringForSubstring'">
{ 'returnString' : returnString ,
'testString' : 'sn' ,
'expectedResult' : '1' }
</call>
<call function="'searchStringForSubstring'">
{ 'returnString' : returnString ,
'testString' : 'uid' ,
'expectedResult' : '1' }
</call>
<call function="'checktestString'">
{ 'returnString' : returnString ,
'expectedString' : 'dn: uid=tmorris,ou=People,ou=aci branch,o=ACI Tests' }
</call>
<call function="'testCase_Postamble'"/>
</sequence>
</testcase>
<!---
Place test-specific test information here.
The tag, TestMarker, must be the same as the tag, TestSuiteName.
#@TestMarker ACI Global Tests
#@TestName Global ACI Compare
#@TestIssue 1402
#@TestPurpose Compare against default global acis
#@TestPreamble none
#@TestStep Client compares attribute in an entry.
#@TestPostamble none
#@TestResult Success if OpenDS returns 0
and returns true for step 1.
-->
<testcase name="getTestCaseName('Compare')">
<sequence>
<call function="'testCase_Preamble'"/>
<message>
'ACI: Global: Compare, user comparing entry'
</message>
<call function="'compareEntry'">
{ 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' ,
'dsInstancePswd' : 'ACIRules' ,
'attrToBeCompared' : 'l:Santa Clara',
'entryToBeCompared' : 'uid=tclow, ou=People, ou=aci branch, o=ACI Tests, dc=example,dc=com' }
</call>
<script>
returnString = STAXResult[0][1]
</script>
<call function="'checktestString'">
{ 'returnString' : returnString ,
'expectedString' : 'true' }
</call>
<call function="'testCase_Postamble'"/>
</sequence>
</testcase>
<!---
Place test-specific test information here.
The tag, TestMarker, must be the same as the tag, TestSuiteName.
#@TestMarker ACI Global Tests
#@TestName Global ACI Modify
#@TestIssue 1402
#@TestPurpose Modify against default global acis
#@TestPreamble none
#@TestStep Client modifies attribute in an entry.
#@TestPostamble none
#@TestResult Success if OpenDS returns 50.
-->
<testcase name="getTestCaseName('Modify')">
<sequence>
<call function="'testCase_Preamble'"/>
<message>
'ACI: Global: Modify, user modifying entry'
</message>
<call function="'modifyEntry'">
{ 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' ,
'dsInstancePswd' : 'ACIRules' ,
'entryToBeModified' : '%s/aci/global_acis/mod_entry1.ldif' % remote.data ,
'expectedRC' : 50
}
</call>
<call function="'testCase_Postamble'"/>
</sequence>
</testcase>
<!---
Place test-specific test information here.
The tag, TestMarker, must be the same as the tag, TestSuiteName.
#@TestMarker ACI Global Tests
#@TestName Global ACI Delete
#@TestIssue 1402
#@TestPurpose Delete against default global acis
#@TestPreamble none
#@TestStep Client deletes an entry.
#@TestPostamble none
#@TestResult Success if OpenDS returns 50.
-->
<testcase name="getTestCaseName('Delete')">
<sequence>
<call function="'testCase_Preamble'"/>
<message>
'ACI: Global: Delete, user deleting entry'
</message>
<call function="'modifyEntry'">
{ 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' ,
'dsInstancePswd' : 'ACIRules' ,
'entryToBeModified' : '%s/aci/global_acis/del_entry1.ldif' % remote.data ,
'expectedRC' : 50
}
</call>
<call function="'testCase_Postamble'"/>
</sequence>
</testcase>
<!---
Place test-specific test information here.
The tag, TestMarker, must be the same as the tag, TestSuiteName.
#@TestMarker ACI Global Tests
#@TestName Global ACI Modify RDN
#@TestIssue 1402
#@TestPurpose Modify RDN against default global acis
#@TestPreamble none
#@TestStep Client modifies the RDN of an entry.
#@TestPostamble none
#@TestResult Success if OpenDS returns 50.
-->
<testcase name="getTestCaseName('Modify RDN')">
<sequence>
<call function="'testCase_Preamble'"/>
<message>
'ACI: Global: Modify RDN, user modifying rdn of an entry'
</message>
<call function="'modifyEntry'">
{ 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' ,
'dsInstancePswd' : 'ACIRules' ,
'entryToBeModified' : '%s/aci/global_acis/modrdn_entry1.ldif' % remote.data ,
'expectedRC' : 50
}
</call>
<call function="'testCase_Postamble'"/>
</sequence>
</testcase>
<!---
Place test-specific test information here.
The tag, TestMarker, must be the same as the tag, TestSuiteName.
#@TestMarker ACI Global Tests
#@TestName Global ACI Modify Self
#@TestIssue 1402
#@TestPurpose Modify self against default global acis
#@TestPreamble none
#@TestStep Client modifies attribute in the user entry.
#@TestPostamble none
#@TestResult Success if OpenDS returns 0.
-->
<testcase name="getTestCaseName('Self Modify')">
<sequence>
<call function="'testCase_Preamble'"/>
<message>
'ACI: Global: Self Modify, user modifying itself'
</message>
<call function="'modifyEntry'">
{ 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
'dsInstanceDn' : 'uid=auser,ou=people,o=ACI Tests,dc=example,dc=com' ,
'dsInstancePswd' : 'ACIRules' ,
'entryToBeModified' : '%s/aci/global_acis/mod_entry2.ldif' % remote.data }
</call>
<call function="'testCase_Postamble'"/>
</sequence>
</testcase>
<import machine="STAF_LOCAL_HOSTNAME"
file="'%s/testcases/aci/aci_cleanup.xml' % (TESTS_DIR)"/>
<call function="'aci_cleanup'" />
<call function="'testSuite_Postamble'"/>
</sequence>
</block>
</sequence>
</function>
</stax>