5784N/A<?xml version="1.0" encoding="UTF-8" standalone="no"?>
5784N/A<!DOCTYPE stax SYSTEM "/shared/stax.dtd">
5784N/A<!--
5784N/A ! CDDL HEADER START
5784N/A !
5784N/A ! The contents of this file are subject to the terms of the
5784N/A ! Common Development and Distribution License, Version 1.0 only
5784N/A ! (the "License"). You may not use this file except in compliance
5784N/A ! with the License.
5784N/A !
5784N/A ! You can obtain a copy of the license at
5784N/A ! trunk/opends/resource/legal-notices/CDDLv1_0.txt
5784N/A ! or http://forgerock.org/license/CDDLv1.0.html.
5784N/A ! See the License for the specific language governing permissions
5784N/A ! and limitations under the License.
5784N/A !
5784N/A ! When distributing Covered Code, include this CDDL HEADER in each
5784N/A ! file and include the License file at
5784N/A ! trunk/opends/resource/legal-notices/CDDLv1_0.txt. If applicable,
5784N/A ! add the following below this CDDL HEADER, with the fields enclosed
5784N/A ! by brackets "[]" replaced with your own identifying information:
5784N/A ! Portions Copyright [yyyy] [name of copyright owner]
5784N/A !
5784N/A ! CDDL HEADER END
5784N/A !
5784N/A ! Copyright 2012 ForgeRock AS.
5784N/A ! -->
5784N/A<stax>
5784N/A <defaultcall function="main_pwp_force_pwd_change"/>
5784N/A <function name="main_pwp_force_pwd_change" scope="local">
5784N/A <sequence>
5784N/A <block name="'main_pwp_force_pwd_change'">
5784N/A <try>
5784N/A <sequence>
5784N/A <script>
5784N/A CurrentTestPath['group'] = 'password_policy'
5784N/A CurrentTestPath['suite'] = 'force_pwd_change'
5784N/A
5784N/A _group=CurrentTestPath['group']
5784N/A _groupdir='%s/testcases/%s' % (TESTS_DIR,_group)
5784N/A _label = 'PWP Force Pwd Change'
5784N/A </script>
5784N/A
5784N/A <!--- Test Suite information
5784N/A #@TestSuiteName Password policy force_pwd_change test suite
5784N/A #@TestSuitePurpose Verify password policy force_pwd_change operations
5784N/A #@TestSuiteID force_pwd_change
5784N/A #@TestSuiteGroup password_policy
5784N/A #@TestGroup password_policy
5784N/A #@TestScript password_policy.xml
5784N/A #@TestHTMLLink http://www.forgerock.org/
5784N/A -->
5784N/A <call function="'testSuite_Preamble'"/>
5784N/A
5784N/A <try>
5784N/A <sequence>
5784N/A
5784N/A <call function="'common_setup'">
5784N/A {
5784N/A 'quickStart' : False ,
5784N/A 'startServer' : True ,
5784N/A 'loadData' : True ,
5784N/A 'ldifFile' : '%s/password_policy/pwp_startup.ldif' % remote.data ,
5784N/A 'stopServer' : False ,
5784N/A 'friendlyName' : _label
5784N/A }
5784N/A </call>
5784N/A
5784N/A <!-- List of Import of Test Functions -->
5784N/A <script>
5784N/A importList=[]
5784N/A importList.append('force_pwd_change/pwp_force_pwd_change_tests')
5784N/A importList.append('force_pwd_change/pwp_force_pwd_change_all_users_tests')
5784N/A </script>
5784N/A
5784N/A <!-- Import the files for this test suite -->
5784N/A <iterate var="_import" in="importList">
5784N/A <import machine="STAF_LOCAL_HOSTNAME"
5784N/A file="'%s/%s.xml' % (_groupdir,_import)"/>
5784N/A </iterate>
5784N/A
5784N/A <!-- Specific to force_pwd_change password policy tests -->
5784N/A <script>
5784N/A basedn = 'ou=people,ou=password tests,o=Pwd Policy Tests,dc=example,dc=com'
5784N/A basepwp = 'cn=Default Password Policy,cn=Password Policies,cn=config'
5784N/A
5784N/A msg1 = 'get-password-changed-by-required-time'
5784N/A msg2 = 'get-seconds-until-required-change-time'
5784N/A </script>
5784N/A
5784N/A <!-- List of Test Cases -->
5784N/A <script>
5784N/A testsList=[]
5784N/A testsList.append('pwp_force_pwd_change_001')
5784N/A testsList.append('pwp_force_pwd_change_002')
5784N/A testsList.append('pwp_force_pwd_change_003')
5784N/A testsList.append('pwp_force_pwd_change_004')
5784N/A testsList.append('pwp_force_pwd_change_005')
5784N/A testsList.append('pwp_force_pwd_change_006')
5784N/A testsList.append('pwp_force_pwd_change_007')
5784N/A testsList.append('pwp_force_pwd_change_008')
5784N/A testsList.append('pwp_force_pwd_change_009')
5784N/A testsList.append('pwp_force_pwd_change_010')
5784N/A testsList.append('pwp_force_pwd_change_011')
5784N/A testsList.append('pwp_force_pwd_change_012')
5784N/A testsList.append('pwp_force_pwd_change_013')
5784N/A testsList.append('pwp_force_pwd_change_014')
5784N/A testsList.append('pwp_force_pwd_change_015')
5784N/A testsList.append('pwp_force_pwd_change_016')
5784N/A testsList.append('pwp_force_pwd_change_017')
5784N/A testsList.append('pwp_force_pwd_change_018')
5784N/A testsList.append('pwp_force_pwd_change_019')
5784N/A testsList.append('pwp_force_pwd_change_020')
5784N/A testsList.append('pwp_force_pwd_change_021')
5784N/A testsList.append('pwp_force_pwd_change_022')
5784N/A testsList.append('pwp_force_pwd_change_023')
5784N/A testsList.append('pwp_force_pwd_change_024')
5784N/A </script>
5784N/A
5784N/A <!-- Execute the Tests -->
5784N/A <iterate var="__test" in="testsList">
5784N/A <sequence>
5784N/A <call function="'%s' % (__test)" />
5784N/A </sequence>
5784N/A </iterate>
5784N/A
5784N/A </sequence>
5784N/A <catch exception="'STAFException.TestSuite.SetupException'">
5784N/A <sequence>
5784N/A <message log="1" level="'fatal'">
5784N/A 'Setup of test suite failed.'
5784N/A </message>
5784N/A <rethrow/>
5784N/A </sequence>
5784N/A </catch>
5784N/A
5784N/A <finally>
5784N/A <message>'Test Cases Completed.'</message>
5784N/A </finally>
5784N/A
5784N/A </try>
5784N/A
5784N/A </sequence>
5784N/A
5784N/A <finally>
5784N/A <sequence>
5784N/A <!-- Test Suite Cleanup -->
5784N/A <message>'Finally: Password Policy Cleanup.'</message>
5784N/A <try>
5784N/A <call function="'common_cleanup'">
5784N/A { 'friendlyName' :_label }
5784N/A </call>
5784N/A <catch exception="'STAFException'">
5784N/A <sequence>
5784N/A <message log="1" level="'fatal'">'Cleanup of test suite failed.'</message>
5784N/A </sequence>
5784N/A </catch>
5784N/A <finally>
5784N/A <call function="'testSuite_Postamble'"/>
5784N/A </finally>
5784N/A </try>
5784N/A </sequence>
5784N/A </finally>
5784N/A
5784N/A </try>
5784N/A </block>
5784N/A </sequence>
5784N/A </function>
5784N/A</stax>