From 36e9ccfca20aaf6a2c612ff06206583c2dda55c6 Mon Sep 17 00:00:00 2001
From: andrug <andrug@localhost>
Date: Fri, 28 Mar 2008 09:38:22 +0000
Subject: [PATCH] suffix can now import ldif file
---
opendj-sdk/opends/tests/system-tests/phases/parser/parser.py | 17 ++++++++++++-----
1 files changed, 12 insertions(+), 5 deletions(-)
diff --git a/opendj-sdk/opends/tests/system-tests/phases/parser/parser.py b/opendj-sdk/opends/tests/system-tests/phases/parser/parser.py
index 9d1f546..7580e99 100755
--- a/opendj-sdk/opends/tests/system-tests/phases/parser/parser.py
+++ b/opendj-sdk/opends/tests/system-tests/phases/parser/parser.py
@@ -148,12 +148,13 @@
"""Describes suffix information,
tree is a list of Branch objectclasses
topology is a list of SuffixTopology objectclasses"""
- def __init__(self, sid, dn, topology, nbOfEntries, tree):
+ def __init__(self, sid, dn, topology, nbOfEntries, tree, ldifFile):
self.sid = sid
self.dn = dn
self.topology = topology
self.nbOfEntries = nbOfEntries
self.tree = tree
+ self.ldifFile = ldifFile
def getId(self):
return self.sid
@@ -181,7 +182,9 @@
def getTree(self):
return self.tree
-
+
+ def getLdifFile(self):
+ return self.ldifFile
#
# Class for instance
@@ -642,6 +645,8 @@
msg = ''
cSuffixReplServers = NOT_DEFINED
cNbOfEntries = NOT_DEFINED
+ cBranches = NOT_DEFINED
+ cLdifFile = NOT_DEFINED
#
# Parsing second level : instanceList,numberOfEntries,...
@@ -695,8 +700,9 @@
(msg,thisSubChild.getNodeName())
elif (thisSubChild.getNodeType() == Node.ELEMENT_NODE and
- thisSubChild.getNodeName() == 'numberOfEntries'):
- cNbOfEntries = _getPropValue(thisSubChild)
+ thisSubChild.getNodeName() == 'ldifFile'):
+ cLdifFile = _getPropValue(thisSubChild)
+ cLdifFile = cLdifFile.strip()
# parsing suffix TREE
elif (thisSubChild.getNodeType() == Node.ELEMENT_NODE and
@@ -728,7 +734,8 @@
else:
msg = '%s\n ERROR: parseSuffix() : no children for suffix node' % msg
- return [msg,Suffix(cId,cSuffixName,cSuffixReplServers,cNbOfEntries,cBranches)]
+ return [msg,Suffix(cId,cSuffixName,cSuffixReplServers,\
+ cNbOfEntries,cBranches,cLdifFile)]
--
Gitblit v1.10.0