<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!--
! CDDL HEADER START
!
! The contents of this file are subject to the terms of the
! Common Development and Distribution License, Version 1.0 only
! (the "License"). You may not use this file except in compliance
! with the License.
!
! You can obtain a copy of the license at
! See the License for the specific language governing permissions
! and limitations under the License.
!
! When distributing Covered Code, include this CDDL HEADER in each
! file and include the License file at
! trunk/opends/resource/legal-notices/CDDLv1_0.txt. If applicable,
! add the following below this CDDL HEADER, with the fields enclosed
! by brackets "[]" replaced with your own identifying information:
! Portions Copyright [yyyy] [name of copyright owner]
!
! CDDL HEADER END
!
! Copyright 2011 ForgeRock AS.
! -->
<stax>
<defaultcall function="pta_cleanup"/>
<function name="pta_cleanup">
<function-map-args>
<function-arg-def name="suiteSuffix"
type="optional"
default="None">
<function-arg-description>
Test suite suffix used to copy the server logs back to the controller.
</function-arg-description>
<function-arg-property name="type" value="string"/>
</function-arg-def>
</function-map-args>
<sequence>
<block name="'pta-cleanup'">
<testcase name="getTestCaseName('PTA Cleanup')">
<try>
<sequence>
<!-- Stop the servers in the topology -->
<call function="'stopServers'">
[_splitServerList]
</call>
<!-- Remove the topology created for the test suite -->
<message>
'Remove DS topology created for the PTA Test Suite'
</message>
<call function="'removeTopology'">
{ 'multipleInstanceTopology' : True }
</call>
</sequence>
<finally>
<!-- Test Group postamble -->
<sequence>
<call function="'testCase_Postamble'"/>
</sequence>
</finally>
</try>
</testcase>
</block>
</sequence>
</function>
</stax>