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