<?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 legal-notices/CDDLv1_0.txt
! or http://forgerock.org/license/CDDLv1.0.html.
! 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 legal-notices/CDDLv1_0.txt.
! 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 2010 Sun Microsystems, Inc.
! -->
<stax>
<defaultcall function="core_collectiveattr"/>
<function name="core_collectiveattr" scope="local">
<sequence>
<block name="'core_collectiveattr'">
<try>
<sequence>
<script>
CurrentTestPath['group']='core'
CurrentTestPath['suite']='collectiveattr'
__group=CurrentTestPath['group']
__groupdir='%s/testcases/%s' % (TESTS_DIR,__group)
</script>
<!--- Test Suite information
#@TestSuiteName Collective attributes test suite
#@TestSuitePurpose Verify collective attributes
#@TestSuiteID Collective
#@TestSuiteGroup Core
#@TestGroup Core
#@TestScript core_collectiveattr.xml
#@TestHTMLLink http://opends.dev.java.net/
-->
<call function="'testSuite_Preamble'"/>
<call function="'common_setup'">
{
'quickStart' : False,
'startServer' : True,
'stopServer' : False,
'loadData' : True,
'ldifFile' : '%s/core/ldifs/core_collectiveattr.ldif' % remote.data
}
</call>
<try>
<sequence>
<!-- List of Import of Test Functions -->
<script>
importList=[]
importList.append('collectiveattr/core_collectiveattr_tests')
</script>
<!-- Import the files for this test suite -->
<iterate var="__import" in="importList">
<import machine="STAF_LOCAL_HOSTNAME"
file="'%s/%s.xml' % (__groupdir,__import)"/>
</iterate>
<!-- Specific to collective attributes tests -->
<script>
__baseDN='o=Collective attributes tests, dc=example,%s' % server.suffix
</script>
<!-- List of Test Cases -->
<!-- Short tests: tests 001 to 006, 011, 012, 020, 022, 024, 025 -->
<!-- Long tests: tests 007 to 010, 014 to 019, 021, 023, 026 to 029 -->
<script>
testsList=[]
testsList.append('core_collectiveattr_001')
testsList.append('core_collectiveattr_002')
testsList.append('core_collectiveattr_003')
testsList.append('core_collectiveattr_004')
testsList.append('core_collectiveattr_005')
testsList.append('core_collectiveattr_006')
testsList.append('core_collectiveattr_007')
testsList.append('core_collectiveattr_008')
testsList.append('core_collectiveattr_009')
testsList.append('core_collectiveattr_010')
testsList.append('core_collectiveattr_011')
testsList.append('core_collectiveattr_012')
#testsList.append('core_collectiveattr_013')
testsList.append('core_collectiveattr_014')
testsList.append('core_collectiveattr_015')
testsList.append('core_collectiveattr_016')
testsList.append('core_collectiveattr_017')
testsList.append('core_collectiveattr_018')
testsList.append('core_collectiveattr_019')
testsList.append('core_collectiveattr_020')
testsList.append('core_collectiveattr_021')
testsList.append('core_collectiveattr_022')
testsList.append('core_collectiveattr_023')
testsList.append('core_collectiveattr_024')
testsList.append('core_collectiveattr_025')
testsList.append('core_collectiveattr_026')
testsList.append('core_collectiveattr_027')
testsList.append('core_collectiveattr_028')
testsList.append('core_collectiveattr_029')
</script>
<!-- Execute the Tests -->
<iterate var="__test" in="testsList">
<sequence>
<call function="'%s' % (__test)" />
</sequence>
</iterate>
</sequence>
<catch exception="'STAFException.TestSuite.SetupException'">
<sequence>
<message log="1" level="'fatal'">
'Setup of test suite failed.'
</message>
<rethrow/>
</sequence>
</catch>
<finally>
<message>'Test Cases Completed.'</message>
</finally>
</try>
</sequence>
<finally>
<sequence>
<!-- Test Suite Cleanup -->
<message>'Finally: Controls Cleanup.'</message>
<try>
<call function="'common_cleanup'" />
<catch exception="'STAFException'">
<sequence>
<message log="1" level="'fatal'">'Cleanup of test suite failed.'</message>
</sequence>
</catch>
<finally>
<call function="'testSuite_Postamble'"/>
</finally>
</try>
</sequence>
</finally>
</try>
</block>
</sequence>
</function>
</stax>