From 0af23478cae44609607abcc374a24ba507222a10 Mon Sep 17 00:00:00 2001
From: andrug <andrug@localhost>
Date: Tue, 18 Mar 2008 18:43:24 +0000
Subject: [PATCH] detail pre/post conf example in sample2 scenario
---
opendj-sdk/opends/tests/system-tests/phases/log/log.xml | 50 +++++++++++++++++++++++++++++++++++++++++++++++++-
1 files changed, 49 insertions(+), 1 deletions(-)
diff --git a/opendj-sdk/opends/tests/system-tests/phases/log/log.xml b/opendj-sdk/opends/tests/system-tests/phases/log/log.xml
index ce324a7..963a236 100755
--- a/opendj-sdk/opends/tests/system-tests/phases/log/log.xml
+++ b/opendj-sdk/opends/tests/system-tests/phases/log/log.xml
@@ -487,7 +487,55 @@
</if>
</sequence>
</function>
-
+
+
+ <!-- ************************************************************ -->
+ <function name="writeStartTagInstance" scope="local">
+ <function-prolog>
+ ''
+ </function-prolog>
+ <function-map-args>
+ <function-arg-def name="instance" type="required">
+ </function-arg-def>
+ <function-arg-def name="fileFd" type="required">
+ <function-arg-description>
+ file descriptor
+ </function-arg-description>
+ </function-arg-def>
+ </function-map-args>
+ <sequence>
+ <if expr="fileFd != NO_FILE">
+ <script>
+ str = '\n<instance name=\"%s\"' % instance.getName()
+ str = '%s host=\"%s\"' % (str, instance.getHost())
+ str = '%s port=\"%s\"' % (str, instance.getLDAPPort())
+ str = '%s product=\"%s\">\n' % (str, instance.getProduct())
+ fileFd.write(str)
+ </script>
+ </if>
+ </sequence>
+ </function>
+
+ <function name="writeEndTagInstance" scope="local">
+ <function-prolog>
+ ''
+ </function-prolog>
+ <function-map-args>
+ <function-arg-def name="fileFd" type="required">
+ <function-arg-description>
+ file descriptor
+ </function-arg-description>
+ </function-arg-def>
+ </function-map-args>
+ <sequence>
+ <if expr="fileFd != NO_FILE">
+ <script>
+ fileFd.write('</instance>\n\n')
+ </script>
+ </if>
+ </sequence>
+ </function>
+
<!-- ************************************************************ -->
<function name="writeStartTagOperation" scope="local">
--
Gitblit v1.10.0