669N/A<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2887N/A<!DOCTYPE stax SYSTEM "/shared/stax.dtd">
683N/A<!--
683N/A ! CDDL HEADER START
683N/A !
683N/A ! The contents of this file are subject to the terms of the
683N/A ! Common Development and Distribution License, Version 1.0 only
683N/A ! (the "License"). You may not use this file except in compliance
683N/A ! with the License.
683N/A !
683N/A ! You can obtain a copy of the license at
683N/A ! trunk/opends/resource/legal-notices/OpenDS.LICENSE
683N/A ! or https://OpenDS.dev.java.net/OpenDS.LICENSE.
683N/A ! See the License for the specific language governing permissions
683N/A ! and limitations under the License.
683N/A !
683N/A ! When distributing Covered Code, include this CDDL HEADER in each
683N/A ! file and include the License file at
683N/A ! trunk/opends/resource/legal-notices/OpenDS.LICENSE. If applicable,
683N/A ! add the following below this CDDL HEADER, with the fields enclosed
873N/A ! by brackets "[]" replaced with your own identifying information:
683N/A ! Portions Copyright [yyyy] [name of copyright owner]
683N/A !
683N/A ! CDDL HEADER END
683N/A !
4618N/A ! Copyright 2008-2009 Sun Microsystems, Inc.
683N/A ! -->
669N/A<stax>
669N/A
669N/A <defaultcall function="security_sasl"/>
669N/A
4618N/A <function name="security_sasl" scope="local">
669N/A
837N/A <sequence>
669N/A
946N/A <block name="'sasl'">
1372N/A
4618N/A <try>
1372N/A
4618N/A <sequence>
4618N/A
4618N/A <script>
4618N/A CurrentTestPath['group']='security'
4618N/A CurrentTestPath['suite']=STAXCurrentBlock
4618N/A _group=CurrentTestPath['group']
4618N/A _suite='sasl'
4618N/A </script>
4618N/A
4618N/A <call function="'testSuite_Preamble'"/>
957N/A
4618N/A <call function="'common_setup'">
4618N/A {
4618N/A 'quickStart' : True ,
4618N/A 'startServer' : True ,
4618N/A 'stopServer' : False
4618N/A }
4618N/A </call>
4618N/A
4618N/A <script>
4618N/A testList = []
4618N/A testList.append('setup_sasl')
4618N/A testList.append('sasl_anon')
4618N/A testList.append('sasl_plain')
4618N/A testList.append('sasl_cram-md5')
4618N/A testList.append('sasl_digest-md5')
4618N/A testList.append('sasl_new')
4618N/A testList.append('teardown_sasl')
4618N/A </script>
957N/A
4618N/A <iterate var="_test" in="testList">
4618N/A <sequence>
4618N/A
4618N/A <import machine="STAF_LOCAL_HOSTNAME"
4618N/A file="'%s/testcases/%s/%s/security_%s.xml' % (TESTS_DIR,_group,_suite,_test)"/>
4618N/A <call function="'%s' % _test" />
4618N/A
4618N/A </sequence>
4618N/A </iterate>
2224N/A
4618N/A </sequence>
957N/A
4618N/A <finally>
4618N/A <sequence>
4618N/A <!-- Test Suite Cleanup -->
4618N/A <message>'Finally: Global SASL Cleanup.'</message>
4618N/A <try>
4618N/A <call function="'common_cleanup'" />
4618N/A <catch exception="'STAFException'">
4618N/A <sequence>
4618N/A <message log="1" level="'fatal'">'Cleanup of test suite failed.'</message>
4618N/A </sequence>
4618N/A </catch>
4618N/A <finally>
4618N/A <call function="'testSuite_Postamble'"/>
4618N/A </finally>
4618N/A </try>
4618N/A </sequence>
4618N/A </finally>
4618N/A
4618N/A </try>
4618N/A
946N/A </block>
4618N/A
837N/A </sequence>
669N/A
669N/A </function>
669N/A
4618N/A</stax>