pwp_non_default.xml revision 6982
5789N/A<?xml version="1.0" encoding="UTF-8" standalone="no"?>
5789N/A<!DOCTYPE stax SYSTEM "/shared/stax.dtd">
5789N/A<!--
5789N/A ! CDDL HEADER START
5789N/A !
5789N/A ! The contents of this file are subject to the terms of the
5789N/A ! Common Development and Distribution License, Version 1.0 only
5789N/A ! (the "License"). You may not use this file except in compliance
5789N/A ! with the License.
6982N/A !
6982N/A ! You can obtain a copy of the license at legal-notices/CDDLv1_0.txt
5789N/A ! or http://forgerock.org/license/CDDLv1.0.html.
5789N/A ! See the License for the specific language governing permissions
5789N/A ! and limitations under the License.
6982N/A !
5789N/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:
5789N/A ! Portions Copyright [yyyy] [name of copyright owner]
5789N/A !
5789N/A ! CDDL HEADER END
5789N/A !
5789N/A ! Copyright 2012 ForgeRock AS.
5789N/A ! -->
5789N/A<stax>
5789N/A <defaultcall function="main_pwp_non_default"/>
5789N/A <function name="main_pwp_non_default" scope="local">
5789N/A <sequence>
5789N/A <block name="'main_pwp_non_default'">
5789N/A <try>
5789N/A <sequence>
5789N/A <script>
5789N/A CurrentTestPath['group'] = 'password_policy'
5789N/A CurrentTestPath['suite'] = 'non_default'
5789N/A
5789N/A _group=CurrentTestPath['group']
5789N/A _groupdir='%s/testcases/%s' % (TESTS_DIR,_group)
5789N/A _label = 'PWP Non Default Polices'
5789N/A </script>
5789N/A
5789N/A <!--- Test Suite information
5789N/A #@TestSuiteName Password policy non_default test suite
5789N/A #@TestSuitePurpose Verify password policy non_default operations
5789N/A #@TestSuiteID non_default
5789N/A #@TestSuiteGroup password_policy
5789N/A #@TestGroup password_policy
5789N/A #@TestScript password_policy.xml
5789N/A #@TestHTMLLink http://www.forgerock.org/
5789N/A -->
5789N/A <call function="'testSuite_Preamble'"/>
5789N/A
5789N/A <try>
5789N/A <sequence>
5789N/A
5789N/A <call function="'common_setup'">
5789N/A {
5789N/A 'quickStart' : False ,
5789N/A 'startServer' : True ,
5789N/A 'loadData' : True ,
5789N/A 'ldifFile' : '%s/password_policy/pwp_startup.ldif' % remote.data ,
5789N/A 'stopServer' : False ,
5789N/A 'friendlyName' : _label
5789N/A }
5789N/A </call>
5789N/A
5789N/A <!-- List of Import of Test Functions -->
5789N/A <script>
5789N/A importList=[]
5789N/A importList.append('non_default/pwp_non_default_tests')
5789N/A </script>
5789N/A
5789N/A <!-- Import the files for this test suite -->
5789N/A <iterate var="_import" in="importList">
5789N/A <import machine="STAF_LOCAL_HOSTNAME"
5789N/A file="'%s/%s.xml' % (_groupdir,_import)"/>
5789N/A </iterate>
5789N/A
5789N/A <!-- Specific to non_default password policy tests -->
5789N/A <script>
5789N/A basedn = 'ou=people,ou=password tests,o=Pwd Policy Tests,dc=example,dc=com'
5789N/A msg1 = 'Password Policy: Non Default:'
5789N/A </script>
5789N/A
5789N/A <!-- List of Test Cases -->
5789N/A <script>
5789N/A testsList=[]
5789N/A testsList.append('pwp_non_default_001')
5789N/A testsList.append('pwp_non_default_002')
5789N/A testsList.append('pwp_non_default_003')
5789N/A testsList.append('pwp_non_default_004')
5789N/A testsList.append('pwp_non_default_005')
5789N/A testsList.append('pwp_non_default_006')
5789N/A testsList.append('pwp_non_default_007')
5789N/A </script>
5789N/A
5789N/A <!-- Execute the Tests -->
5789N/A <iterate var="__test" in="testsList">
5789N/A <sequence>
5789N/A <call function="'%s' % (__test)" />
5789N/A </sequence>
5789N/A </iterate>
5789N/A
5789N/A </sequence>
5789N/A <catch exception="'STAFException.TestSuite.SetupException'">
5789N/A <sequence>
5789N/A <message log="1" level="'fatal'">
5789N/A 'Setup of test suite failed.'
5789N/A </message>
5789N/A <rethrow/>
5789N/A </sequence>
5789N/A </catch>
5789N/A
5789N/A <finally>
5789N/A <message>'Test Cases Completed.'</message>
5789N/A </finally>
5789N/A
5789N/A </try>
5789N/A
5789N/A </sequence>
5789N/A
5789N/A <finally>
5789N/A <sequence>
5789N/A <!-- Test Suite Cleanup -->
5789N/A <message>'Finally: Password Policy Cleanup.'</message>
5789N/A <try>
5789N/A <call function="'common_cleanup'">
5789N/A { 'friendlyName' :_label }
5789N/A </call>
5789N/A <catch exception="'STAFException'">
5789N/A <sequence>
5789N/A <message log="1" level="'fatal'">'Cleanup of test suite failed.'</message>
5789N/A </sequence>
5789N/A </catch>
5789N/A <finally>
5789N/A <call function="'testSuite_Postamble'"/>
5789N/A </finally>
5789N/A </try>
5789N/A </sequence>
5789N/A </finally>
5789N/A
5789N/A </try>
5789N/A </block>
5789N/A </sequence>
5789N/A </function>
5789N/A</stax>