4974N/A<?xml version="1.0" encoding="UTF-8" standalone="no"?>
4974N/A<!DOCTYPE stax SYSTEM "/shared/stax.dtd">
4974N/A<!--
4974N/A ! CDDL HEADER START
4974N/A !
4974N/A ! The contents of this file are subject to the terms of the
4974N/A ! Common Development and Distribution License, Version 1.0 only
4974N/A ! (the "License"). You may not use this file except in compliance
4974N/A ! with the License.
4974N/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.
4974N/A ! See the License for the specific language governing permissions
4974N/A ! and limitations under the License.
4974N/A !
4974N/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:
4974N/A ! Portions Copyright [yyyy] [name of copyright owner]
4974N/A !
4974N/A ! CDDL HEADER END
4974N/A !
4974N/A ! Copyright 2008-2009 Sun Microsystems, Inc.
4974N/A ! -->
4974N/A<stax>
4974N/A
4974N/A <defaultcall function="group_cleanup"/>
4974N/A
4974N/A <function name="group_cleanup">
4974N/A <function-map-args>
4974N/A <function-arg-def name="stopDS" type="optional" default="True">
4974N/A <function-arg-description>
4974N/A Optional stop the Directory Server
4974N/A </function-arg-description>
4974N/A <function-arg-property name="type" value="boolean"/>
4974N/A </function-arg-def>
4974N/A </function-map-args>
4974N/A
4974N/A <sequence>
4974N/A
4974N/A <block name="'cleanup'">
4974N/A
4974N/A <sequence>
4974N/A
4974N/A <if expr="stopDS == True">
4974N/A <sequence>
4974N/A <message>
4974N/A 'Stop DS running on port %s' % (DIRECTORY_INSTANCE_PORT)
4974N/A </message>
4974N/A
4974N/A <call function="'StopDsWithScript'">
4974N/A { 'location' : STAF_REMOTE_HOSTNAME,
4974N/A 'dsHost' : DIRECTORY_INSTANCE_HOST,
4974N/A 'dsAdminPort' : DIRECTORY_INSTANCE_ADMIN_PORT,
4974N/A 'dsBindDN' : DIRECTORY_INSTANCE_DN,
4974N/A 'dsBindPwd' : DIRECTORY_INSTANCE_PSWD }
4974N/A </call>
4974N/A
4974N/A </sequence>
4974N/A
4974N/A </if>
4974N/A
4974N/A <message>
4974N/A 'Remove DS topology created for the Test Suite'
4974N/A </message>
4974N/A
4974N/A <call function="'removeTopology'"/>
4974N/A
4974N/A </sequence>
4974N/A </block>
4974N/A
4974N/A </sequence>
4974N/A
4974N/A </function>
4974N/A
4974N/A</stax>