]> git.sur5r.net Git - openldap/blobdiff - tests/scripts/test059-slave-config
ITS8589 - This modifies the test so that it will not trigger the issue described...
[openldap] / tests / scripts / test059-slave-config
index 7228372e0ea8e728cc34e7440b58f8bc04459ce8..ece5738cfd764c7c94fb2791852506f7538857dc 100755 (executable)
@@ -2,7 +2,7 @@
 # $OpenLDAP$
 ## This work is part of OpenLDAP Software <http://www.openldap.org/>.
 ##
-## Copyright 1998-2013 The OpenLDAP Foundation.
+## Copyright 1998-2017 The OpenLDAP Foundation.
 ## All rights reserved.
 ##
 ## Redistribution and use in source and binary forms, with or without
@@ -271,6 +271,20 @@ if test $RC != 0 ; then
        exit $RC
 fi
 
+echo "Using ldapsearch to check that syncrepl received the schema changes..."
+RC=32
+for i in 0 1 2 3 4 5; do
+       RESULT=`$LDAPSEARCH -H $URI2 -D cn=config -y $CONFIGPWF \
+               -s base -b "cn=schema,cn=config" \
+               '(cn=openldap)' 2>&1 | awk '/^dn:/ {print "OK"}'`
+       if test "x$RESULT" = "xOK" ; then
+               RC=0
+               break
+       fi
+       echo "Waiting $SLEEP1 seconds for syncrepl to receive changes..."
+       sleep $SLEEP1
+done
+
 nullExclude="" nullOK=""
 test $BACKEND = null && nullExclude="# " nullOK="OK"