schema.xml revision 3973
504N/A<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2887N/A<!DOCTYPE stax SYSTEM "/shared/stax.dtd">
671N/A<!--
671N/A ! CDDL HEADER START
671N/A !
671N/A ! The contents of this file are subject to the terms of the
671N/A ! Common Development and Distribution License, Version 1.0 only
671N/A ! (the "License"). You may not use this file except in compliance
671N/A ! with the License.
671N/A !
671N/A ! You can obtain a copy of the license at
671N/A ! trunk/opends/resource/legal-notices/OpenDS.LICENSE
671N/A ! or https://OpenDS.dev.java.net/OpenDS.LICENSE.
671N/A ! See the License for the specific language governing permissions
671N/A ! and limitations under the License.
671N/A !
671N/A ! When distributing Covered Code, include this CDDL HEADER in each
671N/A ! file and include the License file at
671N/A ! trunk/opends/resource/legal-notices/OpenDS.LICENSE. If applicable,
671N/A ! add the following below this CDDL HEADER, with the fields enclosed
873N/A ! by brackets "[]" replaced with your own identifying information:
671N/A ! Portions Copyright [yyyy] [name of copyright owner]
671N/A !
671N/A ! CDDL HEADER END
671N/A !
3232N/A ! Copyright 2006-2008 Sun Microsystems, Inc.
671N/A ! -->
504N/A<stax>
3973N/A <defaultcall function="main_schema"/>
504N/A
3973N/A <function name="main_schema" scope="local">
3816N/A <function-list-args>
3816N/A <function-required-arg name="STAXParentID"/>
3816N/A </function-list-args>
504N/A
690N/A <sequence>
3973N/A <try>
3973N/A <block name="'main_schema'">
3973N/A <sequence>
837N/A
3973N/A <message log="1" level="'Info'">'STAXParentID= %s' % STAXParentID</message>
3973N/A
3973N/A <!--- Load the job environment for the test group execution -->
3973N/A <import machine="STAF_LOCAL_HOSTNAME"
3973N/A file="'%s/environment.xml' % TESTS_FUNCTIONS_DIR" />
3973N/A <call function="'loadJobEnvironment'">
3973N/A { 'parent' : STAXParentID }
3973N/A </call>
3973N/A
3973N/A <script>
3973N/A _group='schema'
3973N/A CurrentTestPath={ 'group' : '%s' % _group }
3973N/A </script>
3973N/A
3973N/A <!--- Test Group information
3973N/A #@TestGroupName Schema Test
3973N/A #@TestGroupPurpose Verify that schema is working correctly
3973N/A -->
3973N/A <call function="'testGroup_Preamble'"/>
3973N/A
3973N/A <!-- List of test suites to run -->
3973N/A <script>
3973N/A suiteList=[]
3973N/A suiteList.append('rfc')
3973N/A suiteList.append('dynamic')
3973N/A suiteList.append('solaris')
3973N/A </script>
3816N/A
3973N/A <!-- Data global to this test group -->
3973N/A <!-- LDAP Server Object -->
3973N/A <script>
3973N/A server=directory_server()
3973N/A server.location = STAF_REMOTE_HOSTNAME
3973N/A server.host = DIRECTORY_INSTANCE_HOST
3973N/A server.port = DIRECTORY_INSTANCE_PORT
3973N/A server.adminport = DIRECTORY_INSTANCE_ADMIN_PORT
3973N/A server.dn = DIRECTORY_INSTANCE_DN
3973N/A server.password = DIRECTORY_INSTANCE_PSWD
3973N/A server.suffix = DIRECTORY_INSTANCE_SFX
3973N/A </script>
957N/A
3973N/A <!-- Run the test suites -->
3973N/A <iterate var="_suite" in="suiteList">
3973N/A <sequence>
3973N/A <try>
3973N/A <sequence>
3973N/A <import machine="STAF_LOCAL_HOSTNAME"
3973N/A file="'%s/testcases/%s/%s/%s_%s.xml' %
3973N/A (TESTS_DIR,_group,_suite,_group,_suite)"/>
3973N/A <call function="'main_%s_%s' % (_group,_suite)" />
3973N/A </sequence>
3973N/A <catch exception="'STAFException.TestSuite.SetupException'">
3973N/A <sequence>
3973N/A <message log="1" level="'fatal'">'Setup of test suite %s failed.' % _suite</message>
3973N/A <throw exception="'STAXException.TestGroupException'" />
3973N/A </sequence>
3973N/A </catch>
3973N/A <catch exception="'STAFException.TestSuite.MainException'">
3973N/A <sequence>
3973N/A <message log="1" level="'fatal'">'Main part of test suite %s failed.' % _suite</message>
3973N/A <throw exception="'STAXException.TestGroupException'" />
3973N/A </sequence>
3973N/A </catch>
3973N/A <catch exception="'STAFException.TestSuite.CleanupException'">
3973N/A <sequence>
3973N/A <message log="1" level="'fatal'">'Cleanup of test suite %s failed.' % _suite</message>
3973N/A <throw exception="'STAXException.TestGroupException'" />
3973N/A </sequence>
3973N/A </catch>
3973N/A </try>
3973N/A </sequence>
3973N/A </iterate>
504N/A
3973N/A </sequence>
3973N/A </block>
3973N/A <finally>
3973N/A <!-- Test Group postamble -->
3973N/A <call function="'testGroup_Postamble'"/>
3973N/A </finally>
3973N/A </try>
690N/A </sequence>
504N/A </function>
504N/A</stax>