3361N/A<?xml version="1.0" encoding="UTF-8" standalone="no"?>
3361N/A<!DOCTYPE stax SYSTEM "/shared/stax.dtd">
3361N/A<!--
3361N/A ! CDDL HEADER START
3361N/A !
3361N/A ! The contents of this file are subject to the terms of the
3361N/A ! Common Development and Distribution License, Version 1.0 only
3361N/A ! (the "License"). You may not use this file except in compliance
3361N/A ! with the License.
3361N/A !
3361N/A ! You can obtain a copy of the license at
3361N/A ! trunk/opends/resource/legal-notices/OpenDS.LICENSE
3361N/A ! or https://OpenDS.dev.java.net/OpenDS.LICENSE.
3361N/A ! See the License for the specific language governing permissions
3361N/A ! and limitations under the License.
3361N/A !
3361N/A ! When distributing Covered Code, include this CDDL HEADER in each
3361N/A ! file and include the License file at
3361N/A ! trunk/opends/resource/legal-notices/OpenDS.LICENSE. If applicable,
3361N/A ! add the following below this CDDL HEADER, with the fields enclosed
3361N/A ! by brackets "[]" replaced with your own identifying information:
3361N/A ! Portions Copyright [yyyy] [name of copyright owner]
3361N/A !
3361N/A ! CDDL HEADER END
3361N/A !
4495N/A ! Portions Copyright 2008-2009 Sun Microsystems, Inc.
3361N/A! -->
3361N/A<stax>
3361N/A <defaultcall function="dsml_cleanup" />
3361N/A <function name="dsml_cleanup">
4495N/A <block name="'dsml_cleanup'">
3361N/A <sequence>
3361N/A <!--- Test Case information
3361N/A #@TestMarker cleanup
3361N/A #@TestName cleanup: stop directory server
3361N/A #@TestIssue none
3361N/A #@TestPurpose Stop the directory server necessary to the
3361N/A test suite.
3361N/A #@TestPreamble none
3361N/A #@TestStep stop directory server as described in config.py.
3361N/A #@TestPostamble none
3361N/A #@TestResult Success if stopDSWithScript returns 0.
3361N/A -->
3361N/A <testcase name="getTestCaseName('cleanup: stop directory server')">
3361N/A <sequence>
3361N/A <call function="'testCase_Preamble'"/>
3361N/A <message>
3361N/A 'Stop DS running on port %s' % (DIRECTORY_INSTANCE_PORT)
3361N/A </message>
3361N/A
3361N/A <call function="'StopDsWithScript'">
3853N/A { 'location' : STAF_REMOTE_HOSTNAME,
3853N/A 'dsHost' : DIRECTORY_INSTANCE_HOST,
3853N/A 'dsAdminPort' : DIRECTORY_INSTANCE_ADMIN_PORT,
3853N/A 'dsBindDN' : DIRECTORY_INSTANCE_DN,
3853N/A 'dsBindPwd' : DIRECTORY_INSTANCE_PSWD }
3361N/A </call>
3361N/A
3361N/A <call function="'checktestRC'">
3361N/A {
3361N/A 'returncode' : RC ,
3361N/A 'result' : STAFResult
3361N/A }
3361N/A </call>
3361N/A <call function="'testCase_Postamble'"/>
3361N/A </sequence>
3361N/A </testcase>
3361N/A
3361N/A <!--- Test Case information
3361N/A #@TestMarker cleanup
3361N/A #@TestName cleanup: remove DS instance
3361N/A #@TestIssue none
3361N/A #@TestPurpose remove DS instance
3361N/A #@TestPreamble none
3361N/A #@TestStep remove DS instance as described in config.py.
3361N/A #@TestPostamble none
3361N/A #@TestResult Success if removeInstance returns 0.
3361N/A -->
3361N/A <testcase name="getTestCaseName('cleanup: remove directory server')">
3361N/A <sequence>
3361N/A <call function="'testCase_Preamble'"/>
3361N/A <message>
3361N/A 'Remove DS as described in config.py '
3361N/A </message>
3361N/A <call function="'removeInstance'"/>
3361N/A <call function="'checktestRC'">
3361N/A {
3361N/A 'returncode' : RC ,
3361N/A 'result' : STAFResult
3361N/A }
3361N/A </call>
3361N/A <call function="'testCase_Postamble'"/>
3361N/A </sequence>
3361N/A </testcase>
3361N/A
3361N/A <!--- Test Case information
3361N/A #@TestMarker cleanup
3361N/A #@TestName cleanup: stop web webcontainer
3361N/A #@TestIssue none
3361N/A #@TestPurpose Stop the webcontainer necessary to the
3361N/A test suite.
3361N/A #@TestPreamble none
3361N/A #@TestStep stop webcontainer as described in config.py.
3361N/A #@TestPostamble none
3361N/A #@TestResult Success if stopWebcontainerWithScript returns 0.
3361N/A -->
3361N/A <testcase name="getTestCaseName('cleanup: stop webcontainer')">
3361N/A <sequence>
3361N/A <call function="'testCase_Preamble'"/>
3361N/A <message>
3361N/A 'cleanup: stop webcontainer as described in config.py'
3361N/A </message>
4978N/A <call function="'stopWebcontainerWithScript'"/>
3361N/A <call function="'testCase_Postamble'"/>
3361N/A </sequence>
3361N/A </testcase>
3361N/A
3361N/A <!--- Test Case information
3361N/A #@TestMarker cleanup
3361N/A #@TestName cleanup: stops and remove webcontainer
3361N/A #@TestIssue none
3361N/A #@TestPurpose Remove the webcontainer necessary to the
3361N/A test suite.
3361N/A #@TestPreamble none
3361N/A #@TestStep Remove webcontainer as described in config.py.
3361N/A #@TestPostamble none
3361N/A #@TestResult Success if removeWebcontainer returns 0.
3361N/A -->
3361N/A <testcase name="getTestCaseName('cleanup: remove webcontainer')">
3361N/A <sequence>
3361N/A <call function="'testCase_Preamble'"/>
3361N/A <message>
3361N/A 'cleanup: remove webcontainer as described in config.py'
3361N/A </message>
3361N/A <call function="'removeWebcontainer'" />
3361N/A <call function="'checktestRC'">
3361N/A {
3361N/A 'returncode' : RC ,
3361N/A 'result' : STAXResult
3361N/A }
3361N/A </call>
3361N/A <call function="'testCase_Postamble'"/>
3361N/A </sequence>
3361N/A </testcase>
3361N/A
3361N/A </sequence>
3361N/A </block>
3361N/A </function>
3361N/A</stax>