From: Howard Chu Date: Mon, 27 Feb 2006 09:35:54 +0000 (+0000) Subject: ITS#4417 add test for ldapdelete X-Git-Tag: OPENLDAP_REL_ENG_2_4_BP~165 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=94ee25b0d61f1bf705411c0f4d2ad646d2894cbc;p=openldap ITS#4417 add test for ldapdelete --- diff --git a/tests/scripts/test033-glue-syncrepl b/tests/scripts/test033-glue-syncrepl index 8e16fcf674..b8d57aeeb2 100755 --- a/tests/scripts/test033-glue-syncrepl +++ b/tests/scripts/test033-glue-syncrepl @@ -158,6 +158,23 @@ for P in $PORT1 $PORT2 ; do fi done +echo "Testing ldapdelete propagation..." +$LDAPDELETE -D "cn=Manager 1,$BASEDN" -w $PASSWD -H $URI1 "$BABSDN" \ + > $TESTOUT 2>&1 +RC=$? +if test $RC != 0 ; then + echo "ldapdelete failed ($RC)!" + test $KILLSERVERS != no && kill -HUP $KILLPIDS + exit $RC +fi +$LDAPSEARCH -H $URI2 -b "$BABSDN" > $TESTOUT 2>&1 +RC=$? +if test $RC = 0 ; then + echo "ldapsearch should have failed ($RC)!" + test $KILLSERVERS != no && kill -HUP $KILLPIDS + exit -1 +fi + test $KILLSERVERS != no && kill -HUP $KILLPIDS echo ">>>>> Test succeeded"