From 4cdb29a91e6cb2c6820d8474fd2fdcb6b1f69da8 Mon Sep 17 00:00:00 2001
From: gary_williams <gary_williams@localhost>
Date: Tue, 09 Dec 2008 08:39:18 +0000
Subject: [PATCH] fix tasks test suite, add verification to schema tests
---
opends/tests/staf-tests/functional-tests/testcases/schema/schema.xml | 18 +++++++++++++++++-
1 files changed, 17 insertions(+), 1 deletions(-)
diff --git a/opends/tests/staf-tests/functional-tests/testcases/schema/schema.xml b/opends/tests/staf-tests/functional-tests/testcases/schema/schema.xml
index 8544e37..ae9a155 100644
--- a/opends/tests/staf-tests/functional-tests/testcases/schema/schema.xml
+++ b/opends/tests/staf-tests/functional-tests/testcases/schema/schema.xml
@@ -65,7 +65,7 @@
suiteList.append('dynamic')
suiteList.append('solaris')
</script>
-
+
<!-- Data global to this test group -->
<!-- LDAP Server Object -->
<script>
@@ -77,6 +77,22 @@
server.dn = DIRECTORY_INSTANCE_DN
server.password = DIRECTORY_INSTANCE_PSWD
server.suffix = DIRECTORY_INSTANCE_SFX
+
+ def parse_stax_result(result):
+
+ if result.__class__ is org.python.core.PyList:
+ _unwrapResult=result[1][0]
+
+ try:
+ _functionString=_unwrapResult[1]
+ except AttributeError:
+ _functionString='Unable to parse result.'
+ elif result.__class__ is org.python.core.PyString:
+ _functionString=STAXResult
+ else:
+ _functionString='Unable to parse result.'
+
+ return _functionString
</script>
<!-- Run the test suites -->
--
Gitblit v1.10.0