190N/A<?
xml version="1.0" encoding="UTF-8" standalone="no"?>
190N/A ! The contents of this file are subject to the terms of the 190N/A ! Common Development and Distribution License, Version 1.0 only 190N/A ! (the "License"). You may not use this file except in compliance 190N/A ! You can obtain a copy of the license at 190N/A ! See the License for the specific language governing permissions 190N/A ! and limitations under the License. 190N/A ! When distributing Covered Code, include this CDDL HEADER in each 190N/A ! file and include the License file at 190N/A ! add the following below this CDDL HEADER, with the fields enclosed 190N/A ! by brackets "[]" replaced with your own identifying information: 190N/A ! Portions Copyright [yyyy] [name of copyright owner] 190N/A ! Copyright 2008 Sun Microsystems, Inc. 190N/A <
defaultcall function="global_acis"/>
190N/A <
function name="global_acis">
190N/A <
block name="'global-acis'">
202N/A CurrentTestPath['group']='aci'
202N/A CurrentTestPath['suite']=STAXCurrentBlock
190N/A <
call function="'testSuite_Preamble'"/>
190N/A Place suite-specific test information here. 271N/A #@TestSuiteName ACI Global Tests 190N/A #@TestSuitePurpose Test the basic global ACI Support. 190N/A #@TestSuiteGroup Global ACI Tests 190N/A <
import machine="STAF_LOCAL_HOSTNAME" 190N/A <
call function="'aci_setup'" />
271N/A Place test-specific test information here. 190N/A The tag, TestMarker, must be the same as the tag, TestSuiteName. 190N/A #@TestMarker ACI Global Tests 271N/A #@TestName Global ACI Search 190N/A #@TestPurpose Search against default global acis #@TestStep Client searches entry. #@TestResult Success if OpenDS returns 0 The attributes, sn and dn, should be returned <
testcase name="getTestCaseName('Search')">
<
call function="'testCase_Preamble'"/>
'ACI: Global: Search, user searching 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=scarter,ou=People,ou=aci branch,o=ACI Tests,dc=example,dc=com' ,
'dsFilter' : 'objectclass=*' ,
'attributes' : 'cn sn uid userpassword' }
returnString = STAXResult[0][1]
<
call function="'searchStringForSubstring'">
{ 'returnString' : returnString ,
<
call function="'searchStringForSubstring'">
{ 'returnString' : returnString ,
'testString' : 'userpassword' ,
<
call function="'checktestString'">
{ 'returnString' : returnString ,
'expectedString' : 'dn: uid=scarter,ou=People,ou=aci branch,o=ACI Tests' }
<
call function="'testCase_Postamble'"/>
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 #@TestPurpose Search one operational attribute for one entry against default global acis #@TestStep Client searches one operational attribute of an entry. #@TestResult Success if OpenDS returns 0 The attributes, creatorsname and dn, should be returned. <
testcase name="getTestCaseName('Search Operational Attribute of an entry')">
<
call function="'testCase_Preamble'"/>
'ACI: Global: Search, user searching operational attribute of an 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=scarter,ou=People,ou=aci branch,o=ACI Tests,dc=example,dc=com' ,
'dsFilter' : 'objectclass=*' ,
'attributes' : 'creatorsName'}
returnString = STAXResult[0][1]
<
call function="'searchStringForSubstring'">
{ 'returnString' : returnString ,
'testString' : 'creatorsName' ,
<
call function="'checktestString'">
{ 'returnString' : returnString ,
'expectedString' : 'dn: uid=scarter,ou=People,ou=aci branch,o=ACI Tests' }
<
call function="'testCase_Postamble'"/>
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 #@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. #@TestResult Success if OpenDS returns 0 Six attributes and the dn should be returned. <
testcase name="getTestCaseName('Search All Operational Attributes of an entry')">
<
call function="'testCase_Preamble'"/>
'ACI: Global: Search, admin modifying entry'
<
call function="'modifyEntry'">
{ 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
<
tcstatus result="'fail'"/>
'ACI: Global: Search, user searching all operational attributes of an 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=scarter,ou=People,ou=aci branch,o=ACI Tests,dc=example,dc=com' ,
'dsFilter' : 'objectclass=*' ,
returnString = STAXResult[0][1]
<
call function="'searchStringForSubstring'">
{ 'returnString' : returnString ,
'testString' : 'creatorsName:' ,
<
call function="'searchStringForSubstring'">
{ 'returnString' : returnString ,
'testString' : 'createTimestamp:' ,
<
call function="'searchStringForSubstring'">
{ 'returnString' : returnString ,
'testString' : 'entryDN:' ,
<
call function="'searchStringForSubstring'">
{ 'returnString' : returnString ,
'testString' : 'modifiersName:' ,
<
call function="'searchStringForSubstring'">
{ 'returnString' : returnString ,
'testString' : 'modifyTimestamp' ,
<
call function="'searchStringForSubstring'">
{ 'returnString' : returnString ,
'testString' : 'subschemaSubentry:' ,
<
call function="'checktestString'">
{ 'returnString' : returnString ,
'expectedString' : 'dn: uid=scarter,ou=People,ou=aci branch,o=ACI Tests' }
<
call function="'testCase_Postamble'"/>
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 #@TestPurpose Search one operational attribute for cn=schema against default global acis #@TestStep Client searches one operational attribute of cn=schema. #@TestResult Success if OpenDS returns 0 The attributes, matchingrules and dn, should be returned. <
testcase name="getTestCaseName('Search Operational Attribute, cn=schema')">
<
call function="'testCase_Preamble'"/>
'ACI: Global: Search, user searching operational attribute of cn=schema'
<
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' }
returnString = STAXResult[0][1]
<
call function="'searchStringForSubstring'">
{ 'returnString' : returnString ,
'testString' : 'matchingRules:' ,
<
call function="'checktestString'">
{ 'returnString' : returnString ,
'expectedString' : 'dn: cn=schema' }
<
call function="'testCase_Postamble'"/>
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 #@TestPurpose Search all operational attributes for cn=schema against default global acis #@TestStep Client searches all operational attributes of cn=schema. #@TestResult Success if OpenDS returns 0 Six attributes and the dn should be returned. <
testcase name="getTestCaseName('Search All Operational Attributes, cn=schema')">
<
call function="'testCase_Preamble'"/>
'ACI: Global: Search, user searching operational attribute of cn=schema'
<
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=*' ,
'extraParams' : '-T -s base' }
returnString = STAXResult[0][1]
<
call function="'searchStringForSubstring'">
{ 'returnString' : returnString ,
'testString' : 'attributeTypes:' ,
<
call function="'searchStringForSubstring'">
{ 'returnString' : returnString ,
'testString' : 'dITStructureRules:' ,
<
call function="'searchStringForSubstring'">
{ 'returnString' : returnString ,
'testString' : 'ldapSyntaxes:' ,
<
call function="'searchStringForSubstring'">
{ 'returnString' : returnString ,
'testString' : 'matchingRules:' ,
<
call function="'searchStringForSubstring'">
{ 'returnString' : returnString ,
'testString' : 'nameForms:' ,
<
call function="'searchStringForSubstring'">
{ 'returnString' : returnString ,
'testString' : 'objectClasses:' ,
<
call function="'checktestString'">
{ 'returnString' : returnString ,
'expectedString' : 'dn: cn=schema' }
<
call function="'testCase_Postamble'"/>
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 #@TestPurpose Search one operational attribute for root dse against default global acis #@TestStep Client searches one operational attribute of root dse. #@TestResult Success if OpenDS returns 0 The attributes, vendorname and dn, should be returned. <
testcase name="getTestCaseName('Search Operational Attribute, root dse')">
<
call function="'testCase_Preamble'"/>
'ACI: Global: Search, user searching operational attribute of root dse'
<
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' ,
'dsFilter' : 'objectclass=*' ,
'attributes' : 'vendorName' ,
'extraParams' : '-T -s base' }
returnString = STAXResult[0][1]
<
call function="'searchStringForSubstring'">
{ 'returnString' : returnString ,
'testString' : 'vendorName:' ,
<
call function="'checktestString'">
{ 'returnString' : returnString ,
'expectedString' : 'dn: ' }
<
call function="'testCase_Postamble'"/>
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 #@TestPurpose Search all operational attributes for root dse against default global acis #@TestStep Client searches all operational attributes of root dse. #@TestResult Success if OpenDS returns 0 Eight attributes and the dn should be returned. <
testcase name="getTestCaseName('Search All Operational Attribute, root dse')">
<
call function="'testCase_Preamble'"/>
'ACI: Global: Search, user searching operational attribute of root dse'
<
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' ,
'dsFilter' : 'objectclass=*' ,
'extraParams' : '-T -s base' }
returnString = STAXResult[0][1]
<
call function="'searchStringForSubstring'">
{ 'returnString' : returnString ,
'testString' : 'namingContexts:' ,
<
call function="'searchStringForSubstring'">
{ 'returnString' : returnString ,
'testString' : 'supportedAuthPasswordSchemes:' ,
<
call function="'searchStringForSubstring'">
{ 'returnString' : returnString ,
'testString' : 'supportedControl:' ,
<
call function="'searchStringForSubstring'">
{ 'returnString' : returnString ,
'testString' : 'supportedExtension:' ,
<
call function="'searchStringForSubstring'">
{ 'returnString' : returnString ,
'testString' : 'supportedFeatures:' ,
<
call function="'searchStringForSubstring'">
{ 'returnString' : returnString ,
'testString' : 'supportedSASLMechanisms:' ,
<
call function="'searchStringForSubstring'">
{ 'returnString' : returnString ,
'testString' : 'vendorName:' ,
<
call function="'searchStringForSubstring'">
{ 'returnString' : returnString ,
'testString' : 'vendorVersion:' ,
<
call function="'checktestString'">
{ 'returnString' : returnString ,
'expectedString' : 'dn: ' }
<
call function="'testCase_Postamble'"/>
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 #@TestPurpose Search all operational attributes for cn=config against default global acis #@TestStep Client searches all operational attributes for cn=config. #@TestResult Success if OpenDS returns 50. <
testcase name="getTestCaseName('Search Operational Attribute, cn=config')">
<
call function="'testCase_Preamble'"/>
'ACI: Global: Search, user searching operational attribute of an 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' : 'cn=config' ,
'dsFilter' : 'objectclass=*' ,
<
call function="'testCase_Postamble'"/>
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 #@TestPurpose Anonymous search against default global acis #@TestStep Client searches entry as anonymous. #@TestResult Success if OpenDS returns 0 The attributes, uid, sn and dn, should be returned for specified dn. <
testcase name="getTestCaseName('Anon Search')">
<
call function="'testCase_Preamble'"/>
'ACI: Global: AnonSearch, user searching entry'
<
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=*' ,
'dsFilter' : '(uid=scarter)'}
returnString = STAXResult[0][1]
<
call function="'searchStringForSubstring'">
{ 'returnString' : returnString ,
<
call function="'searchStringForSubstring'">
{ 'returnString' : returnString ,
<
call function="'checktestString'">
{ 'returnString' : returnString ,
'expectedString' : 'dn: uid=scarter,ou=People,ou=aci branch,o=ACI Tests' }
<
call function="'testCase_Postamble'"/>
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 #@TestPurpose Anonymous search with not equals filter against default global acis #@TestStep Client searches entry as anonymous with not equals filter #@TestResult Success if OpenDS returns 0 The attributes, uid, sn and dn, should be returned for all other entries but the <
testcase name="getTestCaseName('Anon Search, not equals filter')">
<
call function="'testCase_Preamble'"/>
'ACI: Global: AnonSearch, not equals filter, user searching entry'
<
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=*' ,
'dsFilter' : '(!(uid=scarter))'}
returnString = STAXResult[0][1]
<
call function="'searchStringForSubstring'">
{ 'returnString' : returnString ,
<
call function="'searchStringForSubstring'">
{ 'returnString' : returnString ,
<
call function="'checktestString'">
{ 'returnString' : returnString ,
'expectedString' : 'dn: uid=tmorris,ou=People,ou=aci branch,o=ACI Tests' }
<
call function="'testCase_Postamble'"/>
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 #@TestPurpose Compare against default global acis #@TestStep Client compares attribute in an entry. #@TestResult Success if OpenDS returns 0 and returns true for step 1. <
testcase name="getTestCaseName('Compare')">
<
call function="'testCase_Preamble'"/>
'ACI: Global: Compare, user comparing entry'
<
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' }
returnString = STAXResult[0][1]
<
call function="'checktestString'">
{ 'returnString' : returnString ,
'expectedString' : 'true' }
<
call function="'testCase_Postamble'"/>
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 #@TestPurpose Modify against default global acis #@TestStep Client modifies attribute in an entry. #@TestResult Success if OpenDS returns 50. <
testcase name="getTestCaseName('Modify')">
<
call function="'testCase_Preamble'"/>
'ACI: Global: Modify, user modifying entry'
<
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' ,
<
call function="'testCase_Postamble'"/>
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 #@TestPurpose Delete against default global acis #@TestStep Client deletes an entry. #@TestResult Success if OpenDS returns 50. <
testcase name="getTestCaseName('Delete')">
<
call function="'testCase_Preamble'"/>
'ACI: Global: Delete, user deleting entry'
<
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' ,
<
call function="'testCase_Postamble'"/>
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 #@TestPurpose Modify RDN against default global acis #@TestStep Client modifies the RDN of an entry. #@TestResult Success if OpenDS returns 50. <
testcase name="getTestCaseName('Modify RDN')">
<
call function="'testCase_Preamble'"/>
'ACI: Global: Modify RDN, user modifying rdn of an entry'
<
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' ,
<
call function="'testCase_Postamble'"/>
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 #@TestPurpose Modify self against default global acis #@TestStep Client modifies attribute in the user entry. #@TestResult Success if OpenDS returns 0. <
testcase name="getTestCaseName('Self Modify')">
<
call function="'testCase_Preamble'"/>
'ACI: Global: Self Modify, user modifying itself'
<
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' ,
<
call function="'testCase_Postamble'"/>
<
import machine="STAF_LOCAL_HOSTNAME" <
call function="'aci_cleanup'" />
<
call function="'testSuite_Postamble'"/>