<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE stax SYSTEM "/shared/stax.dtd">
<!--
! CDDL HEADER START
!
! The contents of this file are subject to the terms of the
! Common Development and Distribution License, Version 1.0 only
! (the "License"). You may not use this file except in compliance
! with the License.
!
! You can obtain a copy of the license at legal-notices/CDDLv1_0.txt
! or http://forgerock.org/license/CDDLv1.0.html.
! See the License for the specific language governing permissions
! and limitations under the License.
!
! When distributing Covered Code, include this CDDL HEADER in each
! file and include the License file at legal-notices/CDDLv1_0.txt.
! If applicable, add the following below this CDDL HEADER, with the
! fields enclosed by brackets "[]" replaced with your own identifying
! information:
! Portions Copyright [yyyy] [name of copyright owner]
!
! CDDL HEADER END
!
! Copyright 2007-2009 Sun Microsystems, Inc.
! -->
<stax>
<defaultcall function="security_auth_pwd_syntax"/>
<function name="security_auth_pwd_syntax" scope="local">
<sequence>
<block name="'auth_pwd_syntax'">
<try>
<sequence>
<script>
CurrentTestPath['group']='security'
CurrentTestPath['suite']=STAXCurrentBlock
_group=CurrentTestPath['group']
_suite='auth_pwd_syntax'
</script>
<call function="'testSuite_Preamble'"/>
<call function="'common_setup'">
{
'quickStart' : True ,
'startServer' : True ,
'stopServer' : False
}
</call>
<script>
testList = []
testList.append('setup_auth_pwd_syntax')
testList.append('auth_pwd_syntax_MD5_policy')
testList.append('auth_pwd_syntax_SHA256_policy')
testList.append('auth_pwd_syntax_SHA384_policy')
testList.append('auth_pwd_syntax_SHA512_policy')
testList.append('auth_pwd_syntax_SHA1_policy')
testList.append('auth_pwd_syntax_def_policy')
testList.append('teardown_auth_pwd_syntax')
</script>
<iterate var="_test" in="testList">
<sequence>
<import machine="STAF_LOCAL_HOSTNAME"
file="'%s/testcases/%s/%s/security_%s.xml' % (TESTS_DIR,_group,_suite,_test)"/>
<call function="'%s' % _test" />
</sequence>
</iterate>
</sequence>
<finally>
<sequence>
<!-- Test Suite Cleanup -->
<message>'Finally: Global Auth Password Syntax Cleanup.'</message>
<try>
<call function="'common_cleanup'" />
<catch exception="'STAFException'">
<sequence>
<message log="1" level="'fatal'">'Cleanup of test suite failed.'</message>
</sequence>
</catch>
<finally>
<call function="'testSuite_Postamble'"/>
</finally>
</try>
</sequence>
</finally>
</try>
</block>
</sequence>
</function>
</stax>