proxy_auth.xml revision 7d34efbc9a101a1180d1ed6e8bcda0c795648d48
6443N/A<?xml version="1.0" encoding="UTF-8" standalone="no"?>
6443N/A<!DOCTYPE stax SYSTEM "/shared/stax.dtd">
6443N/A<!--
6443N/A ! CDDL HEADER START
6443N/A !
6443N/A ! The contents of this file are subject to the terms of the
6443N/A ! Common Development and Distribution License, Version 1.0 only
6443N/A ! (the "License"). You may not use this file except in compliance
6443N/A ! with the License.
6443N/A !
6443N/A ! You can obtain a copy of the license at
6443N/A ! trunk/opends/resource/legal-notices/CDDLv1_0.txt
6443N/A ! or http://forgerock.org/license/CDDLv1.0.html.
6443N/A ! See the License for the specific language governing permissions
6443N/A ! and limitations under the License.
6443N/A !
6443N/A ! When distributing Covered Code, include this CDDL HEADER in each
6443N/A ! file and include the License file at
6443N/A ! trunk/opends/resource/legal-notices/CDDLv1_0.txt. If applicable,
6443N/A ! add the following below this CDDL HEADER, with the fields enclosed
6443N/A ! by brackets "[]" replaced with your own identifying information:
6443N/A ! Portions Copyright [yyyy] [name of copyright owner]
6443N/A !
6443N/A ! CDDL HEADER END
6443N/A !
6443N/A ! Copyright 2012 ForgeRock AS.
6443N/A ! -->
6443N/A<stax>
6443N/A <defaultcall function="aci_proxy_auth"/>
6443N/A <function name="aci_proxy_auth" scope="local">
6443N/A <sequence>
6443N/A <block name="'aci_proxy_auth'">
6443N/A <try>
6443N/A <sequence>
6443N/A <script>
6443N/A CurrentTestPath['group'] = 'aci'
6443N/A CurrentTestPath['suite'] = 'proxy_auth'
6443N/A
6443N/A _group=CurrentTestPath['group']
6443N/A _groupdir='%s/testcases/%s' % (TESTS_DIR,_group)
6443N/A _label = 'ACI Proxy Auth'
6443N/A </script>
6443N/A
6443N/A <!--- Test Suite information
6443N/A #@TestSuiteName ACI Proxy Auth Tests
6443N/A #@TestSuitePurpose Verify that ACI proxy_auths are functioning correctly
6443N/A #@TestSuiteID ACI Proxy Auth Tests
6443N/A #@TestSuiteGroup ACI Proxy Auth
6443N/A #@TestGroup ACI
6443N/A #@TestScript proxy_auth.xml
6443N/A #@TestHTMLLink http://www.forgerock.org/
6443N/A -->
6443N/A
6443N/A <call function="'testSuite_Preamble'"/>
6443N/A
6443N/A <try>
6443N/A <sequence>
6443N/A
6443N/A <call function="'common_setup'">
6443N/A {
6443N/A 'stopServer' : False,
6443N/A 'ldifFile' : '%s/aci/aci_startup.ldif' % remote.data,
6443N/A 'friendlyName' : _label
6443N/A }
6443N/A </call>
6443N/A
6443N/A <!-- List of Import of Test Functions -->
6443N/A <script>
6443N/A importList=[]
6443N/A importList.append('proxy_auth/proxy_auth_tests')
6443N/A </script>
6443N/A
6443N/A <!-- Import the files for this test suite -->
6443N/A <iterate var="_import" in="importList">
6443N/A <import machine="STAF_LOCAL_HOSTNAME"
6443N/A file="'%s/%s.xml' % (_groupdir,_import)"/>
6443N/A </iterate>
6443N/A
6443N/A <!-- Specific to aci tests -->
6443N/A <script>
6443N/A msg1 = 'ACI: Proxy Auth:'
6443N/A </script>
6443N/A
6443N/A <!-- List of Test Cases -->
6443N/A <script>
6443N/A testsList=[]
6443N/A testsList.append('aci_proxy_auth_001')
6443N/A testsList.append('aci_proxy_auth_002')
6443N/A testsList.append('aci_proxy_auth_003')
6443N/A testsList.append('aci_proxy_auth_004')
6443N/A testsList.append('aci_proxy_auth_005')
6443N/A testsList.append('aci_proxy_auth_006')
6443N/A testsList.append('aci_proxy_auth_007')
6443N/A testsList.append('aci_proxy_auth_008')
6443N/A testsList.append('aci_proxy_auth_009')
6443N/A#OOS testsList.append('aci_proxy_auth_010')
6443N/A testsList.append('aci_proxy_auth_011')
6443N/A </script>
6443N/A
6443N/A <!-- Execute the Tests -->
6443N/A <iterate var="__test" in="testsList">
6443N/A <sequence>
6443N/A <call function="'%s' % (__test)" />
6443N/A </sequence>
6443N/A </iterate>
6443N/A
6443N/A </sequence>
6443N/A
6443N/A <catch exception="'STAFException.TestSuite.SetupException'">
6443N/A <sequence>
6443N/A <message log="1" level="'fatal'">
6443N/A 'Setup of test suite failed.'
6443N/A </message>
6443N/A <rethrow/>
6443N/A </sequence>
6443N/A </catch>
6443N/A
6443N/A <finally>
6443N/A <message>'Test Cases Completed.'</message>
6443N/A </finally>
6443N/A
6443N/A </try>
6443N/A
6443N/A </sequence>
6443N/A
6443N/A <finally>
6443N/A <sequence>
6443N/A <!-- Test Suite Cleanup -->
6443N/A <message>'Finally: ACI Cleanup.'</message>
6443N/A <try>
6443N/A <sequence>
6443N/A <call function="'common_cleanup'">
6443N/A { 'friendlyName' : _label }
6443N/A </call>
6443N/A </sequence>
6443N/A <catch exception="'STAFException'">
6443N/A <sequence>
6443N/A <message log="1" level="'fatal'">'Cleanup of test suite failed.'</message>
6443N/A </sequence>
6443N/A </catch>
6443N/A <finally>
6443N/A <call function="'testSuite_Postamble'"/>
6443N/A </finally>
6443N/A </try>
6443N/A </sequence>
6443N/A </finally>
6443N/A
6443N/A </try>
6443N/A </block>
6443N/A </sequence>
6443N/A </function>
6443N/A</stax>
6443N/A