]> git.sur5r.net Git - openldap/commitdiff
ITS#4417 add test for ldapdelete
authorHoward Chu <hyc@openldap.org>
Mon, 27 Feb 2006 09:35:54 +0000 (09:35 +0000)
committerHoward Chu <hyc@openldap.org>
Mon, 27 Feb 2006 09:35:54 +0000 (09:35 +0000)
tests/scripts/test033-glue-syncrepl

index 8e16fcf6747a99cf1b84d03bab879ec77730d981..b8d57aeeb2b8fd86d6165f77c9f391f1e5033976 100755 (executable)
@@ -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"