2852N/A<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2887N/A<!DOCTYPE stax SYSTEM "/shared/stax.dtd">
2852N/A<!--
2852N/A ! CDDL HEADER START
2852N/A !
2852N/A ! The contents of this file are subject to the terms of the
2852N/A ! Common Development and Distribution License, Version 1.0 only
2852N/A ! (the "License"). You may not use this file except in compliance
2852N/A ! with the License.
2852N/A !
6982N/A ! You can obtain a copy of the license at
6982N/A ! trunk/opends/resource/legal-notices/OpenDS.LICENSE
2852N/A ! or https://OpenDS.dev.java.net/OpenDS.LICENSE.
2852N/A ! See the License for the specific language governing permissions
2852N/A ! and limitations under the License.
2852N/A !
6982N/A ! When distributing Covered Code, exclude this CDDL HEADER in each
6982N/A ! file and exclude the License file at
6982N/A ! trunk/opends/resource/legal-notices/OpenDS.LICENSE. If applicable,
6982N/A ! add the following below this CDDL HEADER, with the fields enclosed
2852N/A ! by brackets "[]" replaced with your own identifying information:
2852N/A ! Portions Copyright [yyyy] [name of copyright owner]
2852N/A !
2852N/A ! CDDL HEADER END
4347N/A !
6102N/A ! Copyright 2008 Sun Microsystems, Inc.
3175N/A ! -->
2852N/A<stax>
2852N/A
2852N/A <defaultcall function="_post"/>
2852N/A
4618N/A <function name="_post">
4618N/A
4618N/A <sequence>
4618N/A
4618N/A <!--- Test Suite information
4618N/A #@TestSuiteName Setup-Uninstall _post Tests
4618N/A #@TestSuitePurpose cleanup after all suites of this group are done
4618N/A #@TestSuiteGroup _post
4618N/A #@TestSuiteID _post Tests
4618N/A #@TestGroup Setup-Uninstall
4618N/A #@TestScript _post.xml
4618N/A #@TestHTMLLink http://opends.dev.java.net/
4618N/A -->
4618N/A
4618N/A <script>
4618N/A if not CurrentTestPath.has_key('group'):
4618N/A CurrentTestPath['group'] = 'setup'
4168N/A CurrentTestPath['suite'] = '_post'
4618N/A </script>
4618N/A
4618N/A <call function="'testSuite_Preamble'"/>
4618N/A
4618N/A <!--- Test Case information
4618N/A #@TestMarker Setup-Uninstall environment setup
4618N/A #@TestName Setup-Uninstall: _pre: cleanup
4618N/A #@TestID cleanup
4618N/A #@TestPurpose Remove the "ready-to-install" OpenDS created by
4618N/A the _pre test suite
4618N/A #@TestPreamble
4618N/A #@TestStep Recursive remove of unzipped OpenDS
4618N/A #@TestPostamble
4618N/A #@TestResult PASS if all steps ran without errors
4618N/A -->
4618N/A <testcase name="getTestCaseName('cleanup')">
4618N/A
4618N/A <sequence>
4618N/A
4618N/A <call function="'testCase_Preamble'"/>
4618N/A <message>'Remove all files created by setup tests'</message>
4618N/A
4618N/A <call function="'runSTAFCommand'">
4618N/A { 'name' : 'Delete directory containing unzipped OpenDS',
4618N/A 'location' : STAF_REMOTE_HOSTNAME,
4618N/A 'service' : 'FS',
4618N/A 'request' : 'DELETE',
4618N/A 'arguments' : 'ENTRY %s RECURSE CONFIRM' % OUT_GROUP
4618N/A }
4618N/A </call>
4618N/A
4618N/A <call function="'checktestRC'">
4618N/A { 'returncode' : RC,
4618N/A 'expected' : 0,
4618N/A 'result' : 'FAIL to remove files for this group at cleanup',
4618N/A }
4618N/A </call>
4618N/A
4618N/A <call function="'testCase_Postamble'"/>
4618N/A
4618N/A </sequence>
4618N/A
4618N/A </testcase>
4618N/A
4618N/A <call function="'testSuite_Postamble'"/>
4618N/A
4618N/A </sequence>
4618N/A
4618N/A </function>
4618N/A
5554N/A</stax>
4618N/A