1372N/A<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2887N/A<!DOCTYPE stax SYSTEM "/shared/stax.dtd">
1372N/A<!--
1372N/A ! CDDL HEADER START
1372N/A !
1372N/A ! The contents of this file are subject to the terms of the
1372N/A ! Common Development and Distribution License, Version 1.0 only
1372N/A ! (the "License"). You may not use this file except in compliance
1372N/A ! with the License.
1372N/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.
1372N/A ! See the License for the specific language governing permissions
1372N/A ! and limitations under the License.
1372N/A !
1372N/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:
1372N/A ! Portions Copyright [yyyy] [name of copyright owner]
1372N/A !
1372N/A ! CDDL HEADER END
1372N/A !
4618N/A ! Copyright 2008-2009 Sun Microsystems, Inc.
1372N/A ! -->
1372N/A<stax>
1372N/A
1372N/A <defaultcall function="schema_cleanup"/>
1372N/A
1372N/A <function name="schema_cleanup">
1372N/A
1372N/A <sequence>
1372N/A
1372N/A <block name="'cleanup'">
3973N/A
3973N/A <try>
3973N/A
1372N/A <sequence>
1372N/A
4618N/A <!-- Subtree delete all entries under suffix -->
4618N/A
4618N/A <!-- Stop Directory Server -->
3973N/A <call function="'runFunction'">
3973N/A { 'functionName' : 'StopDsWithScript' ,
3973N/A 'functionMessage' : 'Stop the Directory Server.' ,
3973N/A 'functionException' : 'Server.StopException' ,
3973N/A 'functionArguments' : { 'location' : STAF_REMOTE_HOSTNAME ,
3973N/A 'dsHost' : server.host ,
3973N/A 'dsAdminPort' : server.adminport ,
3973N/A 'dsBindDN' : server.dn ,
3973N/A 'dsBindPwd' : server.password }
3973N/A }
3973N/A </call>
4618N/A
4618N/A <!-- Remove topology -->
3973N/A <call function="'runFunction'">
3973N/A { 'functionName' : 'removeTopology' ,
3973N/A 'functionMessage' : 'Remove DS topology.' ,
3973N/A 'functionException' : 'Server.RemoveTopologyException'
3973N/A }
3973N/A </call>
3973N/A
4618N/A </sequence>
3973N/A <catch exception="'STAXException.Server.RemoveTopologyException'" typevar="eType" var="eInfo">
3973N/A <sequence>
3973N/A <message log="1" level="'fatal'">
3973N/A '%s: Remove topology failed. eInfo(%s)' % (eType,eInfo)
3973N/A </message>
3973N/A <throw exception="'STAFException.TestSuite.CleanupException'" />
3973N/A </sequence>
3973N/A </catch>
1372N/A
3973N/A <catch exception="'STAXException.Server.StopException'" typevar="eType" var="eInfo">
3973N/A <sequence>
3973N/A <message log="1" level="'fatal'">
3973N/A '%s: Failed to stop Directory Server. eInfo(%s)' % (eType,eInfo)
3973N/A </message>
3973N/A <throw exception="'STAFException.TestSuite.CleanupException'" />
3973N/A </sequence>
3973N/A </catch>
3973N/A
3973N/A </try>
3973N/A
1372N/A </block>
1372N/A
1372N/A </sequence>
1372N/A
1372N/A </function>
1372N/A
1372N/A</stax>