10139N/A<?
xml version="1.0" encoding="UTF-8" standalone="no"?>
10139N/A ! The contents of this file are subject to the terms of the 10139N/A ! Common Development and Distribution License, Version 1.0 only 10139N/A ! (the "License"). You may not use this file except in compliance 10139N/A ! You can obtain a copy of the license at 12586N/A ! See the License for the specific language governing permissions 10139N/A ! and limitations under the License. 10139N/A ! When distributing Covered Code, exclude this CDDL HEADER in each 10139N/A ! file and exclude the License file at 12586N/A ! add the following below this CDDL HEADER, with the fields enclosed 10142N/A ! by brackets "[]" replaced with your own identifying information: 12132N/A ! Portions Copyright [yyyy] [name of copyright owner] 12773N/A ! Copyright 2008 Sun Microsystems, Inc. 10139N/A #@TestSuiteName Setup-Uninstall misc Tests 10139N/A that do not fit into any other test suite 11419N/A CurrentTestPath['group'] = 'setup'
11419N/A CurrentTestPath['suite'] = 'misc'
12107N/A <
call function="'testSuite_Preamble'"/>
12127N/A <
call function="'getFreePort'">
10139N/A <
script>MISC_I1_PORT = STAXResult</
script>
10139N/A 'Got this free port: %s' % MISC_I1_PORT
10139N/A #@TestMarker Setup-Uninstall Misc tests 10139N/A #@TestName Setup-Uninstall: Misc: 10139N/A #@TestPurpose Launch buggy setup and uninstall commands and 10139N/A #@TestStep Unzip OpenDS ZIP delivery 10139N/A Setup OpenDS with unexisting option 10139N/A Uninstall an uninstalled OpenDS 10139N/A #@TestResult PASS if all steps ran without errors 10139N/A <
testcase name="getTestCaseName('misc')">
10139N/A MISC_I1_ROOT = '%s/%s' % (MISC_I1_BASE, OPENDSNAME)
10139N/A <
call function="'testCase_Preamble'"/>
10139N/A <
message>'Setup Uninstall: Command errors'</
message>
10139N/A <!-- 1. Setup options: baseDN baseDN sampleData --> 10139N/A <
message>'++ Setup options: baseDN baseDN sampleData'</
message>
10139N/A <
message>'Prepare Open DS ZIP (in %s)' % MISC_I1_ROOT</
message>
10139N/A <
call function="'runSTAFCommand'">
10139N/A { 'name' : 'Create directory to contain I1',
10139N/A 'location' : STAF_REMOTE_HOSTNAME,
10139N/A 'arguments' : 'DIRECTORY %s FAILIFEXISTS' % MISC_I1_BASE
10139N/A <
call function="'checktestRC'">
10139N/A 'result' : 'FAIL to create directory',
10139N/A <
call function="'runSTAFCommand'">
10139N/A { 'name' : 'Extract OpenDS ZIP file',
10139N/A 'location' : STAF_REMOTE_HOSTNAME,
10139N/A 'arguments' : 'ZIPFILE %s/%s TODIRECTORY %s RESTOREPERMISSION' \
10139N/A % (DIRECTORY_INSTANCE_DIR, ZIPNAME, MISC_I1_BASE)
10142N/A <
call function="'checktestRC'">
12176N/A 'result' : 'FAIL to unzip OpenDS ZIP file',
11855N/A <
message>'%s %s' % (c, p)</
message>
10981N/A { 'location' : STAF_REMOTE_HOSTNAME,
12154N/A 'name' : 'Launch (buggy) setup command for I1',
10139N/A <
message>'%s %s' % (c, p)</
message>
10139N/A { 'location' : STAF_REMOTE_HOSTNAME,
10139N/A 'name' : 'Launch (another buggy) setup command for I1',
12773N/A <
message>'%s %s' % (c, p)</
message>
12773N/A { 'location' : STAF_REMOTE_HOSTNAME,
12773N/A 'name' : 'Launch uninstall command for (uninstalled) I1',
10139N/A <
call function="'testCase_Postamble'"/>
10139N/A <
call function="'testSuite_Postamble'"/>