From 7d1dc50106c14d1063ba774f3d8d6b542f689948 Mon Sep 17 00:00:00 2001
From: el_kaboing <el_kaboing@localhost>
Date: Fri, 23 Mar 2007 19:48:18 +0000
Subject: [PATCH] This is a workaround for Issue 1433. The daily functional tests on the nightly builds should now work until Issue 1433 is resolved.
---
opends/tests/functional-tests/shared/data/quickstart/add_aci_workaround.ldif | 30 ++++++++++++++++++++++++++++++
opends/tests/functional-tests/testcases/quickstart/quickstart.xml | 17 +++++++++++++++++
2 files changed, 47 insertions(+), 0 deletions(-)
diff --git a/opends/tests/functional-tests/shared/data/quickstart/add_aci_workaround.ldif b/opends/tests/functional-tests/shared/data/quickstart/add_aci_workaround.ldif
new file mode 100644
index 0000000..8ebc505
--- /dev/null
+++ b/opends/tests/functional-tests/shared/data/quickstart/add_aci_workaround.ldif
@@ -0,0 +1,30 @@
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License, Version 1.0 only
+# (the "License"). You may not use this file except in compliance
+# with the License.
+#
+# You can obtain a copy of the license at
+# trunk/opends/resource/legal-notices/OpenDS.LICENSE
+# or https://OpenDS.dev.java.net/OpenDS.LICENSE.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at
+# trunk/opends/resource/legal-notices/OpenDS.LICENSE. If applicable,
+# add the following below this CDDL HEADER, with the fields enclosed
+# by brackets "[]" replaced with your own identifying information:
+# Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+# Portions Copyright 2007 Sun Microsystems, Inc.
+#
+
+dn: cn=Access Control Handler,cn=config
+changetype: modify
+add: ds-cfg-global-aci
+ds-cfg-global-aci: (targetattr="pwdChangedTime")(version 3.0; acl "Self entry modification Workaround for Issue 1433"; allow (write) userdn="ldap:///self";)
+
diff --git a/opends/tests/functional-tests/testcases/quickstart/quickstart.xml b/opends/tests/functional-tests/testcases/quickstart/quickstart.xml
index ec654ce..bef6151 100755
--- a/opends/tests/functional-tests/testcases/quickstart/quickstart.xml
+++ b/opends/tests/functional-tests/testcases/quickstart/quickstart.xml
@@ -74,6 +74,23 @@
'result' : STAXResult }
</call>
+ <message>
+ 'Quickstart: Adding ACI that is a workaround for Issue 1433'
+ </message>
+
+ <call function="'addEntry'">
+ { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST ,
+ 'dsInstancePort' : DIRECTORY_INSTANCE_PORT ,
+ 'dsInstanceDn' : DIRECTORY_INSTANCE_DN ,
+ 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD ,
+ 'entryToBeAdded' : '%s/quickstart/add_aci_workaround.ldif' % STAGED_DATA_DIR }
+ </call>
+
+ <call function="'checkRC'">
+ { 'returncode' : RC ,
+ 'result' : STAXResult }
+ </call>
+
<!--- Stop DS -->
<message>
'Stop DS running on port %s' % (DIRECTORY_INSTANCE_PORT)
--
Gitblit v1.10.0