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