5065N/A<?xml version="1.0" encoding="UTF-8" standalone="no"?>
5065N/A<!DOCTYPE stax SYSTEM "/shared/stax.dtd">
5065N/A<!--
5065N/A ! CDDL HEADER START
5065N/A !
5065N/A ! The contents of this file are subject to the terms of the
5065N/A ! Common Development and Distribution License, Version 1.0 only
5065N/A ! (the "License"). You may not use this file except in compliance
5065N/A ! with the License.
5065N/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.
5065N/A ! See the License for the specific language governing permissions
5065N/A ! and limitations under the License.
5065N/A !
5065N/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:
5065N/A ! Portions Copyright [yyyy] [name of copyright owner]
5065N/A !
5065N/A ! CDDL HEADER END
5065N/A !
5065N/A ! Copyright 2010 Sun Microsystems, Inc.
5065N/A ! -->
5065N/A<stax>
5065N/A
5065N/A <defaultcall function="clus_cleanup"/>
5065N/A
5065N/A <function name="clus_cleanup">
5065N/A
5065N/A <sequence>
5065N/A
5065N/A <block name="'clus_cleanup'">
5065N/A
5065N/A <sequence>
5065N/A
5065N/A <script>
5065N/A if not CurrentTestPath.has_key('group'):
5065N/A CurrentTestPath['group'] = 'clu_secure'
5065N/A CurrentTestPath['suite'] = STAXCurrentBlock
5065N/A </script>
5065N/A
5065N/A <call function="'testSuite_Preamble'"/>
5065N/A
5065N/A <!--- Test Case information
5065N/A #@TestMarker cleanup
5065N/A #@TestName cleanup: stop DS
5065N/A #@TestIssue none
5065N/A #@TestPurpose Stop DS.
5065N/A #@TestPreamble none
5065N/A #@TestStep Stop DS.
5065N/A #@TestPostamble none
5065N/A #@TestResult Success if StopDsWithScript returns 0.
5065N/A -->
5065N/A <testcase name="getTestCaseName('Stop DS')">
5065N/A
5065N/A <sequence>
5065N/A
5065N/A <call function="'testCase_Preamble'"/>
5065N/A
5065N/A <message>
5065N/A 'Stop DS running on port %s' \
5065N/A % (DIRECTORY_INSTANCE_PORT)
5065N/A </message>
5065N/A
5065N/A <call function="'StopDsWithScript'">
5065N/A {
5065N/A 'location' : STAF_REMOTE_HOSTNAME ,
5065N/A 'dsHost' : DIRECTORY_INSTANCE_HOST ,
5065N/A 'dsAdminPort' : DIRECTORY_INSTANCE_ADMIN_PORT ,
5065N/A 'dsBindDN' : DIRECTORY_INSTANCE_DN ,
5065N/A 'dsBindPwd' : DIRECTORY_INSTANCE_PSWD
5065N/A }
5065N/A </call>
5065N/A
5065N/A <call function="'checktestRC'">
5065N/A {
5065N/A 'returncode' : RC ,
5065N/A 'result' : STAXResult
5065N/A }
5065N/A </call>
5065N/A
5065N/A <call function="'testCase_Postamble'"/>
5065N/A
5065N/A </sequence>
5065N/A
5065N/A </testcase>
5065N/A
5065N/A <!--- Test Case information
5065N/A #@TestMarker cleanup
5065N/A #@TestName cleanup: remove DS topology
5065N/A #@TestIssue none
5065N/A #@TestPurpose Remove the topology created for
5065N/A the test suite.
5065N/A #@TestPreamble none
5065N/A #@TestStep Remove the topology created for
5065N/A the test suite.
5065N/A #@TestPostamble none
5065N/A #@TestResult Success if removeTopology returns 0.
5065N/A -->
5065N/A <testcase name="getTestCaseName('Remove DS topology')">
5065N/A
5065N/A <sequence>
5065N/A
5065N/A <call function="'testCase_Preamble'"/>
5065N/A
5065N/A <message>
5065N/A 'Remove DS topology created for the test suite'
5065N/A </message>
5065N/A
5065N/A <call function="'removeTopology'"/>
5065N/A
5065N/A <call function="'checktestRC'">
5065N/A {
5065N/A 'returncode' : RC ,
5065N/A 'result' : STAXResult
5065N/A }
5065N/A </call>
5065N/A
5065N/A <call function="'testCase_Postamble'"/>
5065N/A
5065N/A </sequence>
5065N/A
5065N/A </testcase>
5065N/A
5065N/A <call function="'testSuite_Postamble'"/>
5065N/A
5065N/A </sequence>
5065N/A
5065N/A </block>
5065N/A
5065N/A </sequence>
5065N/A
5065N/A </function>
5065N/A
5065N/A</stax>