3551N/A<?xml version="1.0" encoding="UTF-8" standalone="no"?>
3551N/A<!DOCTYPE stax SYSTEM "/shared/stax.dtd">
3551N/A<!--
3551N/A ! CDDL HEADER START
3551N/A !
3551N/A ! The contents of this file are subject to the terms of the
3551N/A ! Common Development and Distribution License, Version 1.0 only
3551N/A ! (the "License"). You may not use this file except in compliance
3551N/A ! with the License.
3551N/A !
6982N/A ! You can obtain a copy of the license at legal-notices/CDDLv1_0.txt
6982N/A ! or http://forgerock.org/license/CDDLv1.0.html.
3551N/A ! See the License for the specific language governing permissions
3551N/A ! and limitations under the License.
3551N/A !
6982N/A ! When distributing Covered Code, include this CDDL HEADER in each
6982N/A ! file and include the License file at legal-notices/CDDLv1_0.txt.
6982N/A ! If applicable, add the following below this CDDL HEADER, with the
6982N/A ! fields enclosed by brackets "[]" replaced with your own identifying
6982N/A ! information:
3551N/A ! Portions Copyright [yyyy] [name of copyright owner]
3551N/A !
3551N/A ! CDDL HEADER END
3551N/A !
3551N/A ! Copyright 2008 Sun Microsystems, Inc.
6035N/A ! Portions Copyright 2013 ForgeRock AS
3551N/A ! -->
3551N/A<stax>
3551N/A
3551N/A <defaultcall function="_pre"/>
3551N/A
3551N/A <function name="_pre">
3551N/A
3551N/A <sequence>
3551N/A
3551N/A <!--- Test Suite information
3551N/A #@TestSuiteName Setup-Uninstall _pre Tests
3551N/A #@TestSuitePurpose setup minimal environment for the other
3551N/A suites to execute gently
3551N/A #@TestSuiteGroup _pre
3551N/A #@TestSuiteID _pre Tests
3551N/A #@TestGroup Setup-Uninstall
3551N/A #@TestScript _pre.xml
3551N/A #@TestHTMLLink http://opends.dev.java.net/
3551N/A -->
3551N/A
3551N/A <script>
3551N/A if not CurrentTestPath.has_key('group'):
3551N/A CurrentTestPath['group'] = 'setup'
3551N/A CurrentTestPath['suite'] = '_pre'
3551N/A </script>
3551N/A
3551N/A <call function="'testSuite_Preamble'"/>
3551N/A
3551N/A <!--- Test Case information
3551N/A #@TestMarker Setup-Uninstall environment setup
3551N/A #@TestName Setup-Uninstall: _pre: prepare_zip
3551N/A #@TestID prepare_zip
3551N/A #@TestPurpose Have a "ready-to-install" OpenDS for other
3551N/A test cases
3551N/A #@TestPreamble
3551N/A #@TestStep Copy then unzip a .ZIP OpenDS distribution
3551N/A #@TestPostamble
3551N/A #@TestResult PASS if all steps ran without errors
3551N/A -->
3551N/A <testcase name="getTestCaseName('prepare_zip')">
3551N/A
3551N/A <sequence>
3551N/A
3551N/A <call function="'testCase_Preamble'"/>
3551N/A <message>'Prepare Open DS ZIP (in %s)' % ODS_UNZIPPED</message>
3551N/A
3612N/A <message>
3612N/A 'setup: create DS topology as described in config.py'
3612N/A </message>
3612N/A
3612N/A <call function="'createTopology'">
3612N/A { 'initialiseInstance' : False }
3612N/A </call>
3612N/A
3612N/A <call function="'checktestRC'">
3612N/A {
3612N/A 'returncode' : RC ,
3612N/A 'result' : STAXResult
3612N/A }
3612N/A </call>
3612N/A
3551N/A <call function="'runSTAFCommand'">
3551N/A { 'name' : 'Extract OpenDS ZIP file',
3612N/A 'location' : STAF_REMOTE_HOSTNAME,
3551N/A 'service' : 'ZIP',
3551N/A 'request' : 'UNZIP',
3551N/A 'arguments' : 'ZIPFILE %s/%s TODIRECTORY %s RESTOREPERMISSION' \
3690N/A % (DIRECTORY_INSTANCE_DIR, ZIPNAME, ODS_UNZIPPED)
3551N/A }
3551N/A </call>
3551N/A
3551N/A <call function="'checktestRC'">
3551N/A { 'returncode' : RC,
3551N/A 'expected' : 0,
3551N/A 'result' : 'FAIL to unzip OpenDS ZIP file',
3551N/A }
3551N/A </call>
3551N/A
3551N/A <call function="'testCase_Postamble'"/>
3551N/A
3551N/A </sequence>
3551N/A
3551N/A </testcase>
3551N/A
3551N/A <call function="'testSuite_Postamble'"/>
3551N/A
3551N/A </sequence>
3551N/A
3551N/A </function>
3551N/A
3551N/A</stax>