From d734fd078702dcf908523ab093e6994d571a406b Mon Sep 17 00:00:00 2001
From: ugaston <ugaston@localhost>
Date: Thu, 18 Oct 2007 16:45:27 +0000
Subject: [PATCH] Add replication failover testsuite
---
opends/tests/functional-tests/shared/functions/topology.xml | 12 +++++++++---
1 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/opends/tests/functional-tests/shared/functions/topology.xml b/opends/tests/functional-tests/shared/functions/topology.xml
index c75a276..b489909 100755
--- a/opends/tests/functional-tests/shared/functions/topology.xml
+++ b/opends/tests/functional-tests/shared/functions/topology.xml
@@ -944,14 +944,16 @@
<function-arg-def name="dsInstanceHost"
type="optional"
- default="STAF_REMOTE_HOSTNAME">
+ default="None">
<function-arg-description>
Directory server hostname or IP address
</function-arg-description>
<function-arg-property name="type" value="hostname" />
</function-arg-def>
- <function-arg-def name="dsInstancePort" type="required">
+ <function-arg-def name="dsInstancePort"
+ type="optional"
+ default="None">
<function-arg-description>
Directory server port number
</function-arg-description>
@@ -1018,7 +1020,11 @@
STAFCmd='%s/%s%s' % (dsBinPath,DSREPLICATION,fileExt)
STAFCmdParamsList=[]
- STAFCmdParamsList.append('initialize')
+
+ if dsInstanceHost:
+ STAFCmdParamsList.append('initialize')
+ else:
+ STAFCmdParamsList.append('initialize-all')
STAFCmdParamsList.append('-n')
STAFCmdParamsList.append('-Q')
--
Gitblit v1.10.0