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_password_policy" />
5784N/A <function name="main_password_policy">
5784N/A <function-list-args>
5784N/A <function-required-arg name="STAXParentID"/>
5784N/A </function-list-args>
5784N/A
5784N/A <sequence>
5784N/A <try>
5784N/A <block name="'password_policy'">
5784N/A <sequence>
5784N/A <!--- Load the job environment for the test group execution -->
5784N/A <import machine="STAF_LOCAL_HOSTNAME"
5784N/A file="'%s/environment.xml' % TESTS_FUNCTIONS_DIR" />
5784N/A <call function="'loadJobEnvironment'">
5784N/A { 'parent' : STAXParentID }
5784N/A </call>
5784N/A <script>
5784N/A CurrentTestPath['group']='password_policy'
5784N/A _group=CurrentTestPath['group']
5784N/A
5784N/A </script>
5784N/A <call function="'testGroup_Preamble'" />
5784N/A
5784N/A <script>
5784N/A suiteList = []
5798N/A suiteList.append('max_pwd_age')
5798N/A suiteList.append('force_pwd_change')
5798N/A suiteList.append('grace_login')
5798N/A suiteList.append('last_login')
5798N/A suiteList.append('lockout')
5798N/A suiteList.append('min_pwd_age')
5798N/A suiteList.append('non_default')
5798N/A suiteList.append('preencoded_pwds')
5798N/A suiteList.append('allow_user_password_changes')
5789N/A suiteList.append('root_policy')
5784N/A </script>
5784N/A
5784N/A <!-- Run the test suites -->
5784N/A <iterate var="_suite" in="suiteList">
5784N/A <sequence>
5784N/A <try>
5784N/A <sequence>
5784N/A
5784N/A <!-- SNMP Test Suites -->
5784N/A <import machine="STAF_LOCAL_HOSTNAME"
5784N/A file="'%s/testcases/%s/%s/pwp_%s.xml' % (TESTS_DIR,_group,_suite,_suite)"/>
5784N/A <call function="'main_pwp_%s' % (_suite)" />
5784N/A
5784N/A </sequence>
5784N/A <catch exception="'STAFException.TestSuite.SetupException'">
5784N/A <sequence>
5784N/A <message log="1" level="'fatal'">'Setup of test suite %s failed.' % _suite</message>
5784N/A </sequence>
5784N/A </catch>
5784N/A <catch exception="'STAFException.TestSuite.MainException'">
5784N/A <sequence>
5784N/A <message log="1" level="'fatal'">'Main part of test suite %s failed.' % _suite</message>
5784N/A </sequence>
5784N/A </catch>
5784N/A <catch exception="'STAFException.TestSuite.CleanupException'">
5784N/A <sequence>
5784N/A <message log="1" level="'fatal'">'Cleanup of test suite %s failed.' % _suite</message>
5784N/A </sequence>
5784N/A </catch>
5784N/A </try>
5784N/A </sequence>
5784N/A </iterate>
5784N/A
5784N/A </sequence>
5784N/A </block>
5784N/A <catch exception="'STAXException.TestGroupException'">
5784N/A <sequence>
5784N/A <message log="1" level="'fatal'">'Execution of Test Group Failed'</message>
5784N/A </sequence>
5784N/A </catch>
5784N/A <finally>
5784N/A <sequence>
5784N/A <!-- Test Group Postamble -->
5784N/A <call function="'testGroup_Postamble'"/>
5784N/A </sequence>
5784N/A </finally>
5784N/A </try>
5784N/A </sequence>
5784N/A </function>
5784N/A</stax>
5784N/A