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.
6982N/A !
6982N/A ! You can obtain a copy of the license at 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.
6982N/A !
5784N/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:
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_max_pwd_age"/>
5784N/A <function name="main_pwp_max_pwd_age" scope="local">
5784N/A <sequence>
5784N/A <block name="'main_pwp_max_pwd_age'">
5784N/A <try>
5784N/A <sequence>
5784N/A <script>
5784N/A CurrentTestPath['group'] = 'password_policy'
5784N/A CurrentTestPath['suite'] = 'max_pwd_age'
5784N/A
5784N/A _group=CurrentTestPath['group']
5784N/A _groupdir='%s/testcases/%s' % (TESTS_DIR,_group)
5784N/A _label = 'PWP Max Password Age'
5784N/A </script>
5784N/A
5784N/A <!--- Test Suite information
5784N/A #@TestSuiteName Password policy max_pwd_age test suite
5784N/A #@TestSuitePurpose Verify password policy max_pwd_age operations
5784N/A #@TestSuiteID max_pwd_age
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('max_pwd_age/pwp_max_pwd_age_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 max_pwd_age password policy tests -->
5784N/A
5784N/A
5784N/A <!-- List of Test Cases -->
5784N/A <script>
5784N/A testsList=[]
5784N/A testsList.append('pwp_max_pwd_age_001')
5784N/A testsList.append('pwp_max_pwd_age_002')
5784N/A testsList.append('pwp_max_pwd_age_003')
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>