security.xml revision df82d14da19ae2598955c9de19d3042d51b0ad8d
5612N/A<?xml version="1.0" encoding="UTF-8" standalone="no"?>
5612N/A<!DOCTYPE stax SYSTEM "/shared/stax.dtd">
5653N/A<!--
5612N/A ! CDDL HEADER START
6254N/A !
5612N/A ! The contents of this file are subject to the terms of the
6254N/A ! Common Development and Distribution License, Version 1.0 only
5612N/A ! (the "License"). You may not use this file except in compliance
5612N/A ! with the License.
6254N/A !
5612N/A ! You can obtain a copy of the license at
5612N/A ! trunk/opends/resource/legal-notices/OpenDS.LICENSE
5612N/A ! or https://OpenDS.dev.java.net/OpenDS.LICENSE.
5612N/A ! See the License for the specific language governing permissions
5612N/A ! and limitations under the License.
5612N/A !
5612N/A ! When distributing Covered Code, include this CDDL HEADER in each
5612N/A ! file and include the License file at
5612N/A ! trunk/opends/resource/legal-notices/OpenDS.LICENSE. If applicable,
5612N/A ! add the following below this CDDL HEADER, with the fields enclosed
5612N/A ! by brackets "[]" replaced with your own identifying information:
5612N/A ! Portions Copyright [yyyy] [name of copyright owner]
5612N/A !
5612N/A ! CDDL HEADER END
5612N/A !
5612N/A ! Copyright 2006-2009 Sun Microsystems, Inc.
5612N/A ! Portions Copyright 2011 ForgeRock AS
5612N/A ! -->
5612N/A<stax>
5612N/A <defaultcall function="main_security" />
5612N/A <function name="main_security">
5612N/A <function-list-args>
5612N/A <function-required-arg name="STAXParentID"/>
5612N/A </function-list-args>
5612N/A
5612N/A <sequence>
5612N/A <try>
5612N/A <block name="'security'">
5612N/A <sequence>
5612N/A <!--- Load the job environment for the test group execution -->
5612N/A <import machine="STAF_LOCAL_HOSTNAME"
5612N/A file="'%s/environment.xml' % TESTS_FUNCTIONS_DIR" />
5612N/A <call function="'loadJobEnvironment'">
5612N/A { 'parent' : STAXParentID }
5612N/A </call>
5612N/A <script>
5612N/A CurrentTestPath['group']='security'
5612N/A _group=CurrentTestPath['group']
5612N/A
5612N/A GLOBAL_ACI_SEARCH="(targetattr!=\"userPassword||authPassword||changes||changeNumber||changeType||changeTime||targetDN||newRDN||newSuperior||deleteOldRDN||targetEntryUUID||changeInitiatorsName||changeLogCookie||includedAttributes\")(version 3.0; acl \"Anonymous read access\"; allow (read,search,compare) userdn=\"ldap:///anyone\";)"
5612N/A </script>
5612N/A <call function="'testGroup_Preamble'" />
5612N/A <script>
5612N/A suiteList = []
5612N/A suiteList.append(['client_auth','client_auth'])
5612N/A suiteList.append(['jks','security_jks'])
5612N/A suiteList.append(['pkcs12','security_pkcs12'])
5612N/A suiteList.append(['startTLS','security_startTLS'])
5612N/A suiteList.append(['sasl','security_sasl'])
5612N/A suiteList.append(['pwd_policy','security_pwd_policy'])
5612N/A suiteList.append(['pwd_policy_root','security_pwd_policy_root'])
5612N/A suiteList.append(['auth_pwd_syntax','security_auth_pwd_syntax'])
5612N/A suiteList.append(['pwd_validator','security_pwd_validator'])
5612N/A suiteList.append(['pwd_storage','security_pwd_storage'])
5612N/A suiteList.append(['bind_no_pwd','security_bind_no_pwd'])
5612N/A suiteList.append(['account_activation','security_account_activation'])
5612N/A </script>
5612N/A
5612N/A <!-- Run the test suites -->
5612N/A <iterate var="_suite" in="suiteList">
5612N/A <sequence>
5612N/A <try>
5612N/A <sequence>
5612N/A <import machine="STAF_LOCAL_HOSTNAME"
5612N/A file="'%s/testcases/%s/%s/%s.xml' % (TESTS_DIR,_group,_suite[0],_suite[1])"/>
5612N/A <call function="'%s' % _suite[1]" />
5612N/A </sequence>
5612N/A <catch exception="'STAFException.TestSuite.SetupException'">
5612N/A <sequence>
5612N/A <message log="1" level="'fatal'">'Setup of test suite %s failed.' % _suite[0]</message>
5612N/A </sequence>
5612N/A </catch>
5612N/A <catch exception="'STAFException.TestSuite.MainException'">
5612N/A <sequence>
5612N/A <message log="1" level="'fatal'">'Main part of test suite %s failed.' % _suite[0]</message>
5612N/A </sequence>
5612N/A </catch>
5612N/A <catch exception="'STAFException.TestSuite.CleanupException'">
5612N/A <sequence>
5612N/A <message log="1" level="'fatal'">'Cleanup of test suite %s failed.' % _suite[0]</message>
5612N/A </sequence>
5612N/A </catch>
5612N/A </try>
5612N/A </sequence>
5612N/A </iterate>
5612N/A
5612N/A </sequence>
5612N/A </block>
5612N/A <catch exception="'STAXException.TestGroupException'">
5612N/A <sequence>
5612N/A <message log="1" level="'fatal'">'Execution of Test Group Failed'</message>
5612N/A </sequence>
5612N/A </catch>
5612N/A <finally>
5612N/A <!-- Test Group postamble -->
5612N/A <call function="'testGroup_Postamble'"/>
5612N/A </finally>
5612N/A </try>
5612N/A </sequence>
5612N/A </function>
5612N/A</stax>