From 3b10b7f44b8fcc8338c5638e6a8a77eb4f17b121 Mon Sep 17 00:00:00 2001
From: gary_williams <gary_williams@localhost>
Date: Tue, 22 May 2007 08:24:10 +0000
Subject: [PATCH] Implement Issue 1498 Test report should show build number and date

---
 opends/tests/functional-tests/shared/python/common.py |   26 +++++++++++++++++++++++++-
 1 files changed, 25 insertions(+), 1 deletions(-)

diff --git a/opends/tests/functional-tests/shared/python/common.py b/opends/tests/functional-tests/shared/python/common.py
index 389ea6e..8101de2 100644
--- a/opends/tests/functional-tests/shared/python/common.py
+++ b/opends/tests/functional-tests/shared/python/common.py
@@ -29,7 +29,7 @@
 # $Source$
 
 # public symbols
-__all__ = [ "format_testcase" ]
+__all__ = [ "format_testcase", "directory_server_information" ]
 
 class format_testcase:
   "Format the Test name objects"
@@ -46,3 +46,27 @@
     self.name=string.strip()
     self.name=self.name.replace(' ','-')
     return '%s' % self.name
+
+class directory_server_information:
+  "Container for Information about Directory Servers"
+  def __init__(self):
+    self.line=''
+    self.key=''
+    self.value=''
+    self.VersionList=[]
+    self.SystemList=[]
+    self.ServerDict={}
+    self.SystemDict={}
+
+  def getServerVersion(self,string):
+    return string.replace("OpenDS Directory Server ","")
+
+  def getServerBuildId(self,string):
+    return string.replace("Build ","")
+
+  def getServerValueFromString(self,string):
+    return string[string.find(':') +1:len(string)].strip()
+
+  def getServerValueFromKey(self,string,result):
+    return result[string]
+

--
Gitblit v1.10.0