[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: test034 doesn't like back-monitor?



The test034 script appends a config keyword to the slapd.conf file when it says "configuring local slapd with translucent_strict" which only works if the translucent overlay is the last clause in the conf file. That part of the script would need to be rewritten to do something more sophisticated if you think this change is really important.

Pierangelo Masarati wrote:

test034 is failing if I add a "database monitor" at the end of each slapd.conf. I'd like to see that directive placed in each test (along with "database config") to speed up detecting conflicts or cross-errors, and apparently I've triggered one...

This is the (trivial) diff:

Index: data/slapd-translucent-local.conf
===================================================================
RCS file: /repo/OpenLDAP/pkg/ldap/tests/data/slapd-translucent-local.conf,v
retrieving revision 1.2
diff -u -r1.2 slapd-translucent-local.conf
--- data/slapd-translucent-local.conf 16 Mar 2005 20:52:25 -0000 1.2
+++ data/slapd-translucent-local.conf 28 Mar 2005 13:35:20 -0000
@@ -51,3 +51,5 @@
lastmod off
acl-authcDN uid=binder,o=translucent
acl-passwd bindtest
+
+#monitor#database monitor
Index: data/slapd-translucent-remote.conf
===================================================================
RCS file: /repo/OpenLDAP/pkg/ldap/tests/data/slapd-translucent-remote.conf,v
retrieving revision 1.1
diff -u -r1.1 slapd-translucent-remote.conf
--- data/slapd-translucent-remote.conf 10 Mar 2005 03:35:59 -0000 1.1
+++ data/slapd-translucent-remote.conf 28 Mar 2005 13:35:20 -0000
@@ -39,3 +39,4 @@
index objectClass eq
index cn,sn,uid pres,eq,sub


+#monitor#database      monitor


And this is the output of the modified test:

[masarati@ando tests]$ ./run test034
Cleaning up test run directory leftover from previous run.
Running ./scripts/test034-translucent...
running defines.sh
Running slapadd to build remote slapd database...
Starting remote slapd on TCP/IP port 9011...
Starting local slapd on TCP/IP port 9012...
Waiting 5 seconds for local slapd to start...
Testing slapd Translucent Proxy operations...
Testing search: no remote data defined...
Populating remote database...
Testing search: remote database via local slapd...
Testing add: prohibited local record...
Testing add: valid local record, no_glue...
Testing modrdn: valid local record, no_glue...
Shutting down local slapd...
Configuring local slapd without translucent_no_glue...
Restarting local slapd on TCP/IP port 9012...
Waiting 5 seconds for local slapd to start...
Testing add: valid local record...
Testing search: data merging...
Testing compare: valid local...
Testing compare: valid remote...
Testing compare: bogus local...
Testing compare: bogus remote...
Testing modify: nonexistent record...
Testing modify: valid local record, nonexistent attribute...
Testing search: specific nonexistent remote attribute...
Testing modify: nonexistent local record, nonexistent attribute...
Testing modify: valid remote record, nonexistent attribute...
Testing delete: valid local record, nonexistent attribute...
Testing modrdn: prohibited local record...
Testing modrdn: valid local record...
Testing delete: prohibited local record...
Testing delete: valid local record...
Testing delete: valid remote record...
Testing delete: nonexistent local record, nonexistent attribute...
Testing delete: valid local record, nonexistent attribute...
Testing modify: valid remote record, combination add-modify-delete...
Shutting down local slapd...
Configuring local slapd with translucent_strict...
Restarting slapd on TCP/IP port 9012...
Waiting 5 seconds for local slapd to start...
Testing strict mode delete: nonexistent local attribute...
ldapmodify failed (0), expected CONSTRAINT VIOLATION!

It appears that the modification should sot succeed, but it does. Now, it's unclear where I should look further. I'm not filing an ITS yet because I'm not even sure it's a bug.

p.


SysNet - via Dossi,8 27100 Pavia Tel: +390382573859 Fax: +390382476497





--
 -- Howard Chu
 Chief Architect, Symas Corp.       Director, Highland Sun
 http://www.symas.com               http://highlandsun.com/hyc
 Symas: Premier OpenSource Development and Support