From c77efb4241fa6dbb2c5f1888f0cdbc72a6edb241 Mon Sep 17 00:00:00 2001
From: el_kaboing <el_kaboing@localhost>
Date: Fri, 09 Mar 2007 15:12:02 +0000
Subject: [PATCH] Changed the aci functional test cases to reflect the new error code that is now returned for an improperly formatted aci (Issue 1317).
---
opends/tests/functional-tests/testcases/aci/aci_target.xml | 12 ++++++------
opends/tests/functional-tests/testcases/aci/aci_targetattr.xml | 12 ++++++------
opends/tests/functional-tests/testcases/aci/aci_targetfilter_syntax.xml | 8 ++++----
3 files changed, 16 insertions(+), 16 deletions(-)
diff --git a/opends/tests/functional-tests/testcases/aci/aci_target.xml b/opends/tests/functional-tests/testcases/aci/aci_target.xml
index cbd4c93..7131529 100755
--- a/opends/tests/functional-tests/testcases/aci/aci_target.xml
+++ b/opends/tests/functional-tests/testcases/aci/aci_target.xml
@@ -971,7 +971,7 @@
self to an existing entry
#@TestStep Admin checks if aci was added.
#@TestPostamble none
- #@TestResult Success if OpenDS returns 50,
+ #@TestResult Success if OpenDS returns 21,
and the aci has not been added.
-->
<!-- cross reference to syntax.ksh Test Case 1 -->
@@ -990,7 +990,7 @@
'entryToBeModified' : '%s/aci/aci_target/add_aci8.ldif' % STAGED_DATA_DIR }
</call>
- <if expr="RC != 50">
+ <if expr="RC != 21">
<tcstatus result="'fail'"/>
</if>
@@ -1235,7 +1235,7 @@
#@TestStep Client searches entry with the targeted dn.
#@TestStep Client searches entry with a non-targeted dn.
#@TestPostamble none
- #@TestResult Success if OpenDS returns 50,
+ #@TestResult Success if OpenDS returns 21,
and the aci has not been added.
-->
<!-- cross reference to syntax.ksh Test Case 3 -->
@@ -1254,7 +1254,7 @@
'entryToBeModified' : '%s/aci/aci_target/add_aci10.ldif' % STAGED_DATA_DIR }
</call>
- <if expr="RC != 50">
+ <if expr="RC != 21">
<tcstatus result="'fail'"/>
</if>
@@ -1300,7 +1300,7 @@
#@TestStep Client searches entry with the targeted dn.
#@TestStep Client searches entry with a non-targeted dn.
#@TestPostamble none
- #@TestResult Success if OpenDS returns 50,
+ #@TestResult Success if OpenDS returns 21,
and the aci has not been added.
-->
<!-- cross reference to syntax.ksh Test Case 13 -->
@@ -1319,7 +1319,7 @@
'entryToBeModified' : '%s/aci/aci_target/add_aci11.ldif' % STAGED_DATA_DIR }
</call>
- <if expr="RC != 50">
+ <if expr="RC != 21">
<tcstatus result="'fail'"/>
</if>
diff --git a/opends/tests/functional-tests/testcases/aci/aci_targetattr.xml b/opends/tests/functional-tests/testcases/aci/aci_targetattr.xml
index 3b2999e..1aea61c 100755
--- a/opends/tests/functional-tests/testcases/aci/aci_targetattr.xml
+++ b/opends/tests/functional-tests/testcases/aci/aci_targetattr.xml
@@ -921,7 +921,7 @@
#@TestStep Admin adds an aci to an existing entry
that has multiple targetattrs.
#@TestPostamble none
- #@TestResult Success if OpenDS returns 50
+ #@TestResult Success if OpenDS returns 21
-->
<!-- cross reference to syntax.ksh Test Case 5 -->
<testcase name="'ACI: Targetattr: Multiple Targets'">
@@ -939,7 +939,7 @@
'entryToBeModified' : '%s/aci/aci_targetattr/add_aci6.ldif' % STAGED_DATA_DIR }
</call>
- <if expr="RC != 50">
+ <if expr="RC != 21">
<tcstatus result="'fail'"/>
</if>
@@ -982,7 +982,7 @@
#@TestStep Admin adds an aci to an existing entry
that has multiple targetattrs.
#@TestPostamble none
- #@TestResult Success if OpenDS returns 50
+ #@TestResult Success if OpenDS returns 21
-->
<testcase name="'ACI: Targetattr: Keyword Targetattr Mispelled'">
<sequence>
@@ -999,7 +999,7 @@
'entryToBeModified' : '%s/aci/aci_targetattr/add_aci7.ldif' % STAGED_DATA_DIR }
</call>
- <if expr="RC != 50">
+ <if expr="RC != 21">
<tcstatus result="'fail'"/>
</if>
@@ -1042,7 +1042,7 @@
#@TestStep Admin adds an aci to an existing entry
that has a targetattr missing quotes.
#@TestPostamble none
- #@TestResult Success if OpenDS returns 50
+ #@TestResult Success if OpenDS returns 21
-->
<testcase name="'ACI: Targetattr: Targetattr With Missing Quotes'">
<sequence>
@@ -1059,7 +1059,7 @@
'entryToBeModified' : '%s/aci/aci_targetattr/add_aci8.ldif' % STAGED_DATA_DIR }
</call>
- <if expr="RC != 50">
+ <if expr="RC != 21">
<tcstatus result="'fail'"/>
</if>
diff --git a/opends/tests/functional-tests/testcases/aci/aci_targetfilter_syntax.xml b/opends/tests/functional-tests/testcases/aci/aci_targetfilter_syntax.xml
index 3bee6c2..43511bd 100755
--- a/opends/tests/functional-tests/testcases/aci/aci_targetfilter_syntax.xml
+++ b/opends/tests/functional-tests/testcases/aci/aci_targetfilter_syntax.xml
@@ -1634,7 +1634,7 @@
#@TestStep Admin adds an aci with the targetfilter with missing quotes.
#@TestStep Client searches entry which should not be allowed.
#@TestPostamble none
- #@TestResult Success if OpenDS returns 50
+ #@TestResult Success if OpenDS returns 21
and the aci was not addded.
-->
<!-- cross reference to http://docs.sun.com/source/816-6698-10/aci.html -->
@@ -1654,7 +1654,7 @@
'entryToBeModified' : '%s/aci/aci_targetfilter/add_aci8.ldif' % STAGED_DATA_DIR }
</call>
- <if expr="RC != 50">
+ <if expr="RC != 21">
<tcstatus result="'fail'"/>
</if>
@@ -1697,7 +1697,7 @@
#@TestStep Admin adds an aci with the targetfilter with misplaced quotes.
#@TestStep Client searches entry which should not be allowed.
#@TestPostamble none
- #@TestResult Success if OpenDS returns 50
+ #@TestResult Success if OpenDS returns 21
and the aci was not addded.
-->
<!-- cross reference to http://docs.sun.com/source/816-6698-10/aci.html -->
@@ -1717,7 +1717,7 @@
'entryToBeModified' : '%s/aci/aci_targetfilter/add_aci9.ldif' % STAGED_DATA_DIR }
</call>
- <if expr="RC != 50">
+ <if expr="RC != 21">
<tcstatus result="'fail'"/>
</if>
--
Gitblit v1.10.0