5796N/A<?
xml version="1.0" encoding="UTF-8" standalone="no"?>
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 ! You can obtain a copy of the license at 5796N/A ! See the License for the specific language governing permissions 5796N/A ! and limitations under the License. 5796N/A ! When distributing Covered Code, include this CDDL HEADER in each 5796N/A ! file and include the License file at 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 ! Copyright 2012 ForgeRock AS. 5796N/A <
defaultcall function="main_pwp_allow_user_password_changes"/>
5796N/A <
function name="main_pwp_allow_user_password_changes" scope="local">
5796N/A <
block name="'main_pwp_allow_user_password_changes'">
5796N/A CurrentTestPath['group'] = 'password_policy'
5796N/A CurrentTestPath['suite'] = 'allow_user_password_changes'
5796N/A _group=CurrentTestPath['group']
5796N/A _label = 'PWP Allow User Pswd Changes'
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 <
call function="'testSuite_Preamble'"/>
5796N/A <
call function="'common_setup'">
<!-- List of Import of Test Functions --> <!-- Import the files for this test suite --> <
iterate var="_import" in="importList">
<
import machine="STAF_LOCAL_HOSTNAME" file="'%s/%s.xml' % (_groupdir,_import)"/>
<!-- Specific to allow_user_password_changes password policy tests --> 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:'
<!-- List of Test Cases --> <!-- Execute the Tests --> <
iterate var="__test" in="testsList">
<
call function="'%s' % (__test)" />
<
message log="1" level="'fatal'">
'Setup of test suite failed.'
<
message>'Test Cases Completed.'</
message>
<!-- Test Suite Cleanup --> <
message>'Finally: Password Policy Cleanup.'</
message>
<
call function="'common_cleanup'">
{ 'friendlyName' :_label }
<
catch exception="'STAFException'">
<
message log="1" level="'fatal'">'Cleanup of test suite failed.'</
message>
<
call function="'testSuite_Postamble'"/>