893N/A<?xml version="1.0" encoding="UTF-8" standalone="no"?>
3909N/A<!DOCTYPE stax SYSTEM "/shared/stax.dtd">
893N/A<!--
893N/A ! CDDL HEADER START
893N/A !
893N/A ! The contents of this file are subject to the terms of the
2362N/A ! Common Development and Distribution License, Version 1.0 only
893N/A ! (the "License"). You may not use this file except in compliance
2362N/A ! with the License.
893N/A !
893N/A ! You can obtain a copy of the license at
893N/A ! trunk/opends/resource/legal-notices/CDDLv1_0.txt
893N/A ! or http://forgerock.org/license/CDDLv1.0.html.
893N/A ! See the License for the specific language governing permissions
893N/A ! and limitations under the License.
893N/A !
893N/A ! When distributing Covered Code, include this CDDL HEADER in each
893N/A ! file and include the License file at
893N/A ! trunk/opends/resource/legal-notices/CDDLv1_0.txt. If applicable,
893N/A ! add the following below this CDDL HEADER, with the fields enclosed
2362N/A ! by brackets "[]" replaced with your own identifying information:
2362N/A ! Portions Copyright [yyyy] [name of copyright owner]
2362N/A !
893N/A ! CDDL HEADER END
893N/A !
893N/A ! Copyright 2012 ForgeRock AS.
893N/A ! -->
893N/A<stax>
1319N/A <defaultcall function="aci_target"/>
3779N/A <function name="aci_target" scope="local">
893N/A <sequence>
893N/A <block name="'aci_target'">
893N/A <try>
893N/A <sequence>
893N/A <script>
893N/A CurrentTestPath['group'] = 'aci'
893N/A CurrentTestPath['suite'] = 'target'
893N/A
893N/A _group=CurrentTestPath['group']
893N/A _groupdir='%s/testcases/%s' % (TESTS_DIR,_group)
893N/A _label = 'ACI Target'
893N/A </script>
893N/A
893N/A <!--- Test Suite information
893N/A #@TestSuiteName ACI Target Tests
893N/A #@TestSuitePurpose Verify that ACI target are functioning correctly
893N/A #@TestSuiteID ACI Target Tests
893N/A #@TestSuiteGroup ACI Target
893N/A #@TestGroup ACI
893N/A #@TestScript aci_target.xml
893N/A #@TestHTMLLink http://www.forgerock.org/
893N/A -->
893N/A
893N/A <call function="'testSuite_Preamble'"/>
893N/A
893N/A <try>
893N/A <sequence>
893N/A
893N/A <call function="'common_setup'">
893N/A {
3779N/A 'stopServer' : False,
3779N/A 'ldifFile' : '%s/aci/aci_startup.ldif' % remote.data,
3779N/A 'friendlyName' : _label
3779N/A }
893N/A </call>
893N/A
893N/A <!-- List of Import of Test Functions -->
893N/A <script>
893N/A importList=[]
893N/A importList.append('target/target_tests')
893N/A </script>
893N/A
893N/A <!-- Import the files for this test suite -->
893N/A <iterate var="_import" in="importList">
893N/A <import machine="STAF_LOCAL_HOSTNAME"
893N/A file="'%s/%s.xml' % (_groupdir,_import)"/>
893N/A </iterate>
893N/A
893N/A <!-- Specific to aci tests -->
893N/A <script>
893N/A msg1 = 'ACI: Target:'
893N/A </script>
893N/A
893N/A <!-- List of Test Cases -->
893N/A <script>
893N/A testsList=[]
893N/A testsList.append('aci_target_001')
893N/A testsList.append('aci_target_002')
893N/A testsList.append('aci_target_003')
893N/A testsList.append('aci_target_004')
893N/A testsList.append('aci_target_005')
893N/A testsList.append('aci_target_006')
893N/A testsList.append('aci_target_007')
893N/A testsList.append('aci_target_008')
893N/A testsList.append('aci_target_009')
893N/A testsList.append('aci_target_010')
893N/A testsList.append('aci_target_011')
3471N/A testsList.append('aci_target_012')
893N/A testsList.append('aci_target_013')
893N/A testsList.append('aci_target_014')
3779N/A testsList.append('aci_target_015')
3779N/A testsList.append('aci_target_016')
893N/A testsList.append('aci_target_017')
3779N/A testsList.append('aci_target_018')
893N/A testsList.append('aci_target_019')
893N/A testsList.append('aci_target_020')
893N/A testsList.append('aci_target_021')
893N/A testsList.append('aci_target_022')
893N/A testsList.append('aci_target_023')
893N/A testsList.append('aci_target_024')
893N/A testsList.append('aci_target_025')
893N/A testsList.append('aci_target_026')
893N/A testsList.append('aci_target_027')
893N/A testsList.append('aci_target_028')
893N/A testsList.append('aci_target_029')
893N/A testsList.append('aci_target_030')
893N/A </script>
893N/A
893N/A <!-- Execute the Tests -->
893N/A <iterate var="__test" in="testsList">
893N/A <sequence>
893N/A <call function="'%s' % (__test)" />
893N/A </sequence>
893N/A </iterate>
893N/A
893N/A </sequence>
1319N/A
893N/A <catch exception="'STAFException.TestSuite.SetupException'">
893N/A <sequence>
893N/A <message log="1" level="'fatal'">
1319N/A 'Setup of test suite failed.'
893N/A </message>
893N/A <rethrow/>
893N/A </sequence>
1319N/A </catch>
893N/A
893N/A <finally>
893N/A <message>'Test Cases Completed.'</message>
893N/A </finally>
893N/A
893N/A </try>
893N/A
893N/A </sequence>
893N/A
893N/A <finally>
893N/A <sequence>
893N/A <!-- Test Suite Cleanup -->
893N/A <message>'Finally: ACI Cleanup.'</message>
893N/A <try>
893N/A <sequence>
893N/A <call function="'common_cleanup'">
893N/A { 'friendlyName' : _label }
893N/A </call>
893N/A </sequence>
893N/A <catch exception="'STAFException'">
893N/A <sequence>
893N/A <message log="1" level="'fatal'">'Cleanup of test suite failed.'</message>
893N/A </sequence>
893N/A </catch>
893N/A <finally>
893N/A <call function="'testSuite_Postamble'"/>
893N/A </finally>
893N/A </try>
893N/A </sequence>
893N/A </finally>
893N/A
893N/A </try>
893N/A </block>
893N/A </sequence>
893N/A </function>
893N/A</stax>
893N/A