3622N/A<?xml version="1.0" encoding="UTF-8" standalone="no"?>
3622N/A<!DOCTYPE stax SYSTEM "/shared/stax.dtd">
3622N/A<!--
3622N/A ! CDDL HEADER START
3622N/A !
3622N/A ! The contents of this file are subject to the terms of the
3622N/A ! Common Development and Distribution License, Version 1.0 only
3622N/A ! (the "License"). You may not use this file except in compliance
3622N/A ! with the License.
3622N/A !
3622N/A ! You can obtain a copy of the license at
3622N/A ! trunk/opends/resource/legal-notices/OpenDS.LICENSE
3622N/A ! or https://OpenDS.dev.java.net/OpenDS.LICENSE.
3622N/A ! See the License for the specific language governing permissions
3622N/A ! and limitations under the License.
3622N/A !
3622N/A ! When distributing Covered Code, include this CDDL HEADER in each
3622N/A ! file and include the License file at
3622N/A ! trunk/opends/resource/legal-notices/OpenDS.LICENSE. If applicable,
3622N/A ! add the following below this CDDL HEADER, with the fields enclosed
3622N/A ! by brackets "[]" replaced with your own identifying information:
3622N/A ! Portions Copyright [yyyy] [name of copyright owner]
3622N/A !
3622N/A ! CDDL HEADER END
3622N/A !
3622N/A ! Copyright 2008 Sun Microsystems, Inc.
3622N/A ! -->
3622N/A<stax>
3622N/A
3622N/A <defaultcall function="i18n_cleanup"/>
3622N/A
3622N/A <function name="i18n_cleanup">
3622N/A <function-map-args>
3622N/A <function-arg-def name="stopDS" type="optional" default="True">
3622N/A <function-arg-description>
3622N/A Optional stop the Directory Server
3622N/A </function-arg-description>
3622N/A <function-arg-property name="type" value="boolean"/>
3622N/A </function-arg-def>
3622N/A </function-map-args>
3622N/A
3622N/A <sequence>
3622N/A
3622N/A <block name="'cleanup'">
3622N/A
3622N/A <sequence>
3622N/A
3622N/A <if expr="stopDS == True">
3622N/A <block name="'Block DS Process Stop'">
3622N/A <!--- Stop DS -->
3622N/A <sequence>
3622N/A <message>
3622N/A '------ Stop DS running on port %s' % (DIRECTORY_INSTANCE_PORT)
3622N/A </message>
3622N/A
3622N/A <call function="'StopDsWithScript'">
3853N/A { 'location' : STAF_REMOTE_HOSTNAME,
3853N/A 'dsHost' : DIRECTORY_INSTANCE_HOST,
3853N/A 'dsAdminPort' : DIRECTORY_INSTANCE_ADMIN_PORT,
3853N/A 'dsBindDN' : DIRECTORY_INSTANCE_DN,
3853N/A 'dsBindPwd' : DIRECTORY_INSTANCE_PSWD }
3622N/A </call>
3622N/A
3622N/A <call function="'checkRC'">
3622N/A { 'returncode' : RC ,
3622N/A 'result' : STAXResult }
3622N/A </call>
3622N/A
3622N/A </sequence>
3622N/A <!--- End Block DS Process Stop -->
3622N/A </block>
3622N/A </if>
3622N/A
3622N/A
3622N/A
3622N/A <block name="'Block Remove DS Topology'">
3622N/A <!-- Remove the topology created for the test suite -->
3622N/A <sequence>
3622N/A
3622N/A <message>
3622N/A '------ Remove DS topology created for the Test Suite'
3622N/A </message>
3622N/A
3622N/A <call function="'removeTopology'"/>
3622N/A
3622N/A <call function="'checkRC'">
3622N/A { 'returncode' : RC ,
3622N/A 'result' : STAXResult }
3622N/A </call>
3622N/A
3622N/A </sequence>
3622N/A <!-- End Block Remove DS Topology-->
3622N/A </block>
3622N/A
3622N/A
3622N/A </sequence>
3622N/A </block>
3622N/A
3622N/A </sequence>
3622N/A
3622N/A </function>
3622N/A
3622N/A</stax>