5796N/A<?xml version="1.0" encoding="UTF-8" standalone="no"?>
5796N/A<!DOCTYPE stax SYSTEM "/shared/stax.dtd">
5796N/A<!--
5796N/A ! CDDL HEADER START
5796N/A !
5796N/A ! The contents of this file are subject to the terms of the
5796N/A ! Common Development and Distribution License, Version 1.0 only
5796N/A ! (the "License"). You may not use this file except in compliance
5796N/A ! with the License.
5796N/A !
5796N/A ! You can obtain a copy of the license at
5796N/A ! trunk/opends/resource/legal-notices/CDDLv1_0.txt
5796N/A ! or http://forgerock.org/license/CDDLv1.0.html.
5796N/A ! See the License for the specific language governing permissions
5796N/A ! and limitations under the License.
5796N/A !
5796N/A ! When distributing Covered Code, include this CDDL HEADER in each
5796N/A ! file and include the License file at
5796N/A ! trunk/opends/resource/legal-notices/CDDLv1_0.txt. If applicable,
5796N/A ! add the following below this CDDL HEADER, with the fields enclosed
5796N/A ! by brackets "[]" replaced with your own identifying information:
5796N/A ! Portions Copyright [yyyy] [name of copyright owner]
5796N/A !
5796N/A ! CDDL HEADER END
5796N/A !
5796N/A ! Copyright 2012 ForgeRock AS.
5796N/A ! -->
5796N/A<stax>
5796N/A <defaultcall function="main_pwp_allow_user_password_changes"/>
5796N/A <function name="main_pwp_allow_user_password_changes" scope="local">
5796N/A <sequence>
5796N/A <block name="'main_pwp_allow_user_password_changes'">
5796N/A <try>
5796N/A <sequence>
5796N/A <script>
5796N/A CurrentTestPath['group'] = 'password_policy'
5796N/A CurrentTestPath['suite'] = 'allow_user_password_changes'
5796N/A
5796N/A _group=CurrentTestPath['group']
5796N/A _groupdir='%s/testcases/%s' % (TESTS_DIR,_group)
5796N/A _label = 'PWP Allow User Pswd Changes'
5796N/A </script>
5796N/A
5796N/A <!--- Test Suite information
5796N/A #@TestSuiteName Password policy allow_user_password_changes test suite
5796N/A #@TestSuitePurpose Verify password policy allow_user_password_changes operations
5796N/A #@TestSuiteID allow_user_password_changes
5796N/A #@TestSuiteGroup password_policy
5796N/A #@TestGroup password_policy
5796N/A #@TestScript password_policy.xml
5796N/A #@TestHTMLLink http://www.forgerock.org/
5796N/A -->
5796N/A <call function="'testSuite_Preamble'"/>
5796N/A
5796N/A <try>
5796N/A <sequence>
5796N/A
5796N/A <call function="'common_setup'">
5796N/A {
5796N/A 'quickStart' : False ,
5796N/A 'startServer' : True ,
5796N/A 'loadData' : True ,
5796N/A 'ldifFile' : '%s/password_policy/pwp_startup.ldif' % remote.data ,
'stopServer' : False ,
'friendlyName' : _label
}
</call>
<!-- List of Import of Test Functions -->
<script>
importList=[]
importList.append('allow_user_password_changes/pwp_allow_user_password_changes_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 allow_user_password_changes password policy tests -->
<script>
basedn = 'ou=people,ou=password tests,o=Pwd Policy Tests,dc=example,dc=com'
basepwp = 'cn=Default Password Policy,cn=Password Policies,cn=config'
msg1 = 'Password Policy: Allow User Pswd Changes:'
</script>
<!-- List of Test Cases -->
<script>
testsList=[]
testsList.append('pwp_allow_user_pswd_changes_001')
testsList.append('pwp_allow_user_pswd_changes_002')
testsList.append('pwp_allow_user_pswd_changes_003')
testsList.append('pwp_allow_user_pswd_changes_004')
testsList.append('pwp_allow_user_pswd_changes_005')
testsList.append('pwp_allow_user_pswd_changes_006')
testsList.append('pwp_allow_user_pswd_changes_007')
</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: Password Policy Cleanup.'</message>
<try>
<call function="'common_cleanup'">
{ 'friendlyName' :_label }
</call>
<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>