mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-07 23:51:21 -05:00
ITS#4417 add test for ldapdelete
This commit is contained in:
parent
7b5528d68b
commit
94ee25b0d6
1 changed files with 17 additions and 0 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in a new issue