5789N/A<?
xml version="1.0" encoding="UTF-8" standalone="no"?>
5789N/A ! The contents of this file are subject to the terms of the 5789N/A ! Common Development and Distribution License, Version 1.0 only 5789N/A ! (the "License"). You may not use this file except in compliance 5789N/A ! See the License for the specific language governing permissions 5789N/A ! and limitations under the License. 5789N/A ! When distributing Covered Code, include this CDDL HEADER in each 6982N/A ! If applicable, add the following below this CDDL HEADER, with the 6982N/A ! fields enclosed by brackets "[]" replaced with your own identifying 5789N/A ! Portions Copyright [yyyy] [name of copyright owner] 5789N/A ! Copyright 2012 ForgeRock AS. 5789N/A <
defaultcall function="main_pwp_lockout"/>
5789N/A <
function name="main_pwp_lockout" scope="local">
5789N/A <
block name="'main_pwp_lockout'">
5789N/A CurrentTestPath['group'] = 'password_policy'
5789N/A CurrentTestPath['suite'] = 'lockout'
5789N/A _group=CurrentTestPath['group']
5789N/A _label = 'PWP Account Lockout'
5789N/A <!--- Test Suite information 5789N/A #@TestSuiteName Password policy lockout test suite 5789N/A #@TestSuitePurpose Verify password policy lockout operations 5789N/A #@TestSuiteGroup password_policy 5789N/A #@TestGroup password_policy 5789N/A <
call function="'testSuite_Preamble'"/>
5789N/A <
call function="'common_setup'">
5789N/A <!-- List of Import of Test Functions --> 5789N/A <!-- Import the files for this test suite --> 5789N/A <
iterate var="_import" in="importList">
5789N/A <
import machine="STAF_LOCAL_HOSTNAME" 5789N/A <!-- Specific to lockout password policy tests --> 5789N/A basedn = 'ou=people,ou=password tests,o=Pwd Policy Tests,dc=example,dc=com'
5789N/A basepwp = 'cn=Default Password Policy,cn=Password Policies,cn=config'
5789N/A msg1 = 'Security: Lockout Duration:'
5789N/A msg2 = 'Security: Lockout Failure Count:'
5789N/A <!-- List of Test Cases --> 5789N/A <
iterate var="__test" in="testsList">
5789N/A <
call function="'%s' % (__test)" />
5789N/A <
message log="1" level="'fatal'">
5789N/A 'Setup of test suite failed.'
5789N/A <
message>'Test Cases Completed.'</
message>
5789N/A <!-- Test Suite Cleanup --> 5789N/A <
message>'Finally: Password Policy Cleanup.'</
message>
5789N/A <
call function="'common_cleanup'">
5789N/A <
catch exception="'STAFException'">
5789N/A <
message log="1" level="'fatal'">'Cleanup of test suite failed.'</
message>
5789N/A <
call function="'testSuite_Postamble'"/>