misc.xml revision 22153d8f79980de73939bd64fa05510181f5cebb
2a21a474a93152e7a1637578953dfc3093f374b2vboxsync<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2a21a474a93152e7a1637578953dfc3093f374b2vboxsync<!DOCTYPE stax SYSTEM "/shared/stax.dtd">
2a21a474a93152e7a1637578953dfc3093f374b2vboxsync<!--
2a21a474a93152e7a1637578953dfc3093f374b2vboxsync ! CDDL HEADER START
2a21a474a93152e7a1637578953dfc3093f374b2vboxsync !
2a21a474a93152e7a1637578953dfc3093f374b2vboxsync ! The contents of this file are subject to the terms of the
2a21a474a93152e7a1637578953dfc3093f374b2vboxsync ! Common Development and Distribution License, Version 1.0 only
2a21a474a93152e7a1637578953dfc3093f374b2vboxsync ! (the "License"). You may not use this file except in compliance
2a21a474a93152e7a1637578953dfc3093f374b2vboxsync ! with the License.
2a21a474a93152e7a1637578953dfc3093f374b2vboxsync !
2a21a474a93152e7a1637578953dfc3093f374b2vboxsync ! You can obtain a copy of the license at
2a21a474a93152e7a1637578953dfc3093f374b2vboxsync ! trunk/opends/resource/legal-notices/OpenDS.LICENSE
2a21a474a93152e7a1637578953dfc3093f374b2vboxsync ! or https://OpenDS.dev.java.net/OpenDS.LICENSE.
2a21a474a93152e7a1637578953dfc3093f374b2vboxsync ! See the License for the specific language governing permissions
2a21a474a93152e7a1637578953dfc3093f374b2vboxsync ! and limitations under the License.
2a21a474a93152e7a1637578953dfc3093f374b2vboxsync !
2a21a474a93152e7a1637578953dfc3093f374b2vboxsync ! When distributing Covered Code, exclude this CDDL HEADER in each
2a21a474a93152e7a1637578953dfc3093f374b2vboxsync ! file and exclude the License file at
2a21a474a93152e7a1637578953dfc3093f374b2vboxsync ! trunk/opends/resource/legal-notices/OpenDS.LICENSE. If applicable,
2a21a474a93152e7a1637578953dfc3093f374b2vboxsync ! add the following below this CDDL HEADER, with the fields enclosed
2a21a474a93152e7a1637578953dfc3093f374b2vboxsync ! by brackets "[]" replaced with your own identifying information:
2a21a474a93152e7a1637578953dfc3093f374b2vboxsync ! Portions Copyright [yyyy] [name of copyright owner]
2a21a474a93152e7a1637578953dfc3093f374b2vboxsync !
2a21a474a93152e7a1637578953dfc3093f374b2vboxsync ! CDDL HEADER END
2a21a474a93152e7a1637578953dfc3093f374b2vboxsync !
2a21a474a93152e7a1637578953dfc3093f374b2vboxsync ! Copyright 2008 Sun Microsystems, Inc.
2a21a474a93152e7a1637578953dfc3093f374b2vboxsync ! -->
2a21a474a93152e7a1637578953dfc3093f374b2vboxsync<stax>
2a21a474a93152e7a1637578953dfc3093f374b2vboxsync
2a21a474a93152e7a1637578953dfc3093f374b2vboxsync <defaultcall function="misc"/>
2a21a474a93152e7a1637578953dfc3093f374b2vboxsync
2a21a474a93152e7a1637578953dfc3093f374b2vboxsync <function name="misc">
2a21a474a93152e7a1637578953dfc3093f374b2vboxsync
2a21a474a93152e7a1637578953dfc3093f374b2vboxsync <sequence>
2a21a474a93152e7a1637578953dfc3093f374b2vboxsync
2a21a474a93152e7a1637578953dfc3093f374b2vboxsync <!--- Test Suite information
2a21a474a93152e7a1637578953dfc3093f374b2vboxsync #@TestSuiteName Setup-Uninstall misc Tests
2a21a474a93152e7a1637578953dfc3093f374b2vboxsync #@TestSuitePurpose Test miscelaneous setup/uninstall commands
2a21a474a93152e7a1637578953dfc3093f374b2vboxsync that do not fit into any other test suite
2a21a474a93152e7a1637578953dfc3093f374b2vboxsync #@TestSuiteGroup misc
2a21a474a93152e7a1637578953dfc3093f374b2vboxsync #@TestSuiteID misc Tests
74cbfe8cd9e0617fc789820f0e81e995df2fd7a0vboxsync #@TestGroup Setup-Uninstall
74cbfe8cd9e0617fc789820f0e81e995df2fd7a0vboxsync #@TestScript misc.xml
2a21a474a93152e7a1637578953dfc3093f374b2vboxsync #@TestHTMLLink http://opends.dev.java.net/
2a21a474a93152e7a1637578953dfc3093f374b2vboxsync -->
2a21a474a93152e7a1637578953dfc3093f374b2vboxsync
2a21a474a93152e7a1637578953dfc3093f374b2vboxsync <script>
2a21a474a93152e7a1637578953dfc3093f374b2vboxsync if not CurrentTestPath.has_key('group'):
2a21a474a93152e7a1637578953dfc3093f374b2vboxsync CurrentTestPath['group'] = 'setup'
2a21a474a93152e7a1637578953dfc3093f374b2vboxsync CurrentTestPath['suite'] = 'misc'
2a21a474a93152e7a1637578953dfc3093f374b2vboxsync </script>
2a21a474a93152e7a1637578953dfc3093f374b2vboxsync
2a21a474a93152e7a1637578953dfc3093f374b2vboxsync <call function="'testSuite_Preamble'"/>
2a21a474a93152e7a1637578953dfc3093f374b2vboxsync
2a21a474a93152e7a1637578953dfc3093f374b2vboxsync <call function="'getFreePort'">
2a21a474a93152e7a1637578953dfc3093f374b2vboxsync {
2a21a474a93152e7a1637578953dfc3093f374b2vboxsync 'host' : STAF_REMOTE_HOSTNAME,
2a21a474a93152e7a1637578953dfc3093f374b2vboxsync 'port' : 7500,
2a21a474a93152e7a1637578953dfc3093f374b2vboxsync }
2a21a474a93152e7a1637578953dfc3093f374b2vboxsync </call>
2a21a474a93152e7a1637578953dfc3093f374b2vboxsync <script>MISC_I1_PORT = STAXResult</script>
2a21a474a93152e7a1637578953dfc3093f374b2vboxsync
2a21a474a93152e7a1637578953dfc3093f374b2vboxsync <message>
2a21a474a93152e7a1637578953dfc3093f374b2vboxsync 'Got this free port: %s' % MISC_I1_PORT
2a21a474a93152e7a1637578953dfc3093f374b2vboxsync </message>
2a21a474a93152e7a1637578953dfc3093f374b2vboxsync
2a21a474a93152e7a1637578953dfc3093f374b2vboxsync <!--- Test Case information
2a21a474a93152e7a1637578953dfc3093f374b2vboxsync #@TestMarker Setup-Uninstall Misc tests
2a21a474a93152e7a1637578953dfc3093f374b2vboxsync #@TestName Setup-Uninstall: Misc:
2a21a474a93152e7a1637578953dfc3093f374b2vboxsync misc
2a21a474a93152e7a1637578953dfc3093f374b2vboxsync #@TestID misc
2a21a474a93152e7a1637578953dfc3093f374b2vboxsync #@TestPurpose Launch buggy setup & uninstall commands and check
2a21a474a93152e7a1637578953dfc3093f374b2vboxsync that they are rejected
2a21a474a93152e7a1637578953dfc3093f374b2vboxsync #@TestPreamble
2a21a474a93152e7a1637578953dfc3093f374b2vboxsync #@TestStep Unzip OpenDS ZIP delivery
2a21a474a93152e7a1637578953dfc3093f374b2vboxsync Setup OpenDS with unexisting option
2a21a474a93152e7a1637578953dfc3093f374b2vboxsync Check for error
2a21a474a93152e7a1637578953dfc3093f374b2vboxsync Setup OpenDS with no options
2a21a474a93152e7a1637578953dfc3093f374b2vboxsync Check for error
2a21a474a93152e7a1637578953dfc3093f374b2vboxsync Uninstall an uninstalled OpenDS
2a21a474a93152e7a1637578953dfc3093f374b2vboxsync Check for error
2a21a474a93152e7a1637578953dfc3093f374b2vboxsync #@TestPostamble
2a21a474a93152e7a1637578953dfc3093f374b2vboxsync #@TestResult PASS if all steps ran without errors
2a21a474a93152e7a1637578953dfc3093f374b2vboxsync -->
2a21a474a93152e7a1637578953dfc3093f374b2vboxsync <testcase name="getTestCaseName('misc')">
2a21a474a93152e7a1637578953dfc3093f374b2vboxsync <sequence>
2a21a474a93152e7a1637578953dfc3093f374b2vboxsync
2a21a474a93152e7a1637578953dfc3093f374b2vboxsync <script>
2a21a474a93152e7a1637578953dfc3093f374b2vboxsync MISC_I1_BASE = '%s/misc_i1' % (OUT_GROUP)
2a21a474a93152e7a1637578953dfc3093f374b2vboxsync MISC_I1_ROOT = '%s/%s' % (MISC_I1_BASE, OPENDSNAME)
2a21a474a93152e7a1637578953dfc3093f374b2vboxsync </script>
2a21a474a93152e7a1637578953dfc3093f374b2vboxsync
2a21a474a93152e7a1637578953dfc3093f374b2vboxsync
2a21a474a93152e7a1637578953dfc3093f374b2vboxsync <call function="'testCase_Preamble'"/>
2a21a474a93152e7a1637578953dfc3093f374b2vboxsync <message>'Setup Uninstall: Command errors'</message>
2a21a474a93152e7a1637578953dfc3093f374b2vboxsync
<!-- 1. Setup options: baseDN baseDN sampleData -->
<message>'++ Setup options: baseDN baseDN sampleData'</message>
<message>'Prepare Open DS ZIP (in %s)' % MISC_I1_ROOT</message>
<call function="'runSTAFCommand'">
{ 'name' : 'Create directory to contain I1',
'location' : STAF_REMOTE_HOSTNAME,
'service' : 'FS',
'request' : 'CREATE',
'arguments' : 'DIRECTORY %s FAILIFEXISTS' % MISC_I1_BASE
}
</call>
<call function="'checktestRC'">
{ 'returncode' : RC,
'expected' : 0,
'result' : 'FAIL to create directory',
}
</call>
<call function="'runSTAFCommand'">
{ 'name' : 'Extract OpenDS ZIP file',
'location' : STAF_REMOTE_HOSTNAME,
'service' : 'ZIP',
'request' : 'UNZIP',
'arguments' : 'ZIPFILE %s/%s TODIRECTORY %s RESTOREPERMISSION' \
% (DIRECTORY_INSTANCE_DIR, ZIPNAME, MISC_I1_BASE)
}
</call>
<call function="'checktestRC'">
{ 'returncode' : RC,
'expected' : 0,
'result' : 'FAIL to unzip OpenDS ZIP file',
}
</call>
<script>
c = '%s/setup%s' % (MISC_I1_ROOT, fileExt)
p = []
p.append('--cli --no-prompt')
p.append('--rootUserPassword "kangourou"')
p.append('--doesNotExist')
p = ' '.join(p)
</script>
<message>'%s %s' % (c, p)</message>
<call function="'runCommand'">
{ 'location' : STAF_REMOTE_HOSTNAME,
'name' : 'Launch (buggy) setup command for I1',
'command' : c,
'arguments' : p,
'path' : MISC_I1_ROOT,
'expectedRC': 2,
'outputFile': '%s/misc-setup1-i1.txt' % OUT_GROUP,
}
</call>
<script>
c = '%s/setup%s' % (MISC_I1_ROOT, fileExt)
p = []
p.append('--cli --no-prompt')
p = ' '.join(p)
</script>
<message>'%s %s' % (c, p)</message>
<call function="'runCommand'">
{ 'location' : STAF_REMOTE_HOSTNAME,
'name' : 'Launch (another buggy) setup command for I1',
'command' : c,
'arguments' : p,
'path' : MISC_I1_ROOT,
'expectedRC': 2,
'outputFile': '%s/misc-setup2-i1.txt' % OUT_GROUP,
}
</call>
<script>
c = '%s/uninstall%s' % (MISC_I1_ROOT, fileExt)
p = []
p.append('--cli --no-prompt')
p.append('--removeAll')
p = ' '.join(p)
</script>
<message>'%s %s' % (c, p)</message>
<call function="'runCommand'">
{ 'location' : STAF_REMOTE_HOSTNAME,
'name' : 'Launch uninstall command for (uninstalled) I1',
'command' : c,
'arguments' : p,
'path' : MISC_I1_ROOT,
'expectedRC': 2,
'outputFile': '%s/misc-uninstall-i1.txt' % OUT_GROUP,
}
</call>
<call function="'testCase_Postamble'"/>
</sequence>
</testcase>
<call function="'testSuite_Postamble'"/>
</sequence>
</function>
</stax>