From: Howard Chu Date: Tue, 12 Dec 2006 20:00:43 +0000 (+0000) Subject: ITS#4777 test delete of remote attribute X-Git-Tag: OPENLDAP_REL_ENG_2_4_4ALPHA~8^2~386 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=73c2e093d42bd9a5b422bd338d7c4389c89267f5;p=openldap ITS#4777 test delete of remote attribute --- diff --git a/tests/data/test-translucent-data.ldif b/tests/data/test-translucent-data.ldif index ee32cbbc74..2def65c835 100644 --- a/tests/data/test-translucent-data.ldif +++ b/tests/data/test-translucent-data.ldif @@ -5,6 +5,7 @@ uid: danger sn: warning cn: danger businessCategory: backend-opaque +initials: dw carLicense: BACK departmentNumber: 7341 displayName: Warning diff --git a/tests/data/test-translucent-merged.ldif b/tests/data/test-translucent-merged.ldif index 5bb54ec31a..583734a3a3 100644 --- a/tests/data/test-translucent-merged.ldif +++ b/tests/data/test-translucent-merged.ldif @@ -4,6 +4,7 @@ uid: danger sn: danger cn: henry businessCategory: frontend-override +initials: dw carLicense: LIVID departmentNumber: 9999999 displayName: Warning diff --git a/tests/scripts/test034-translucent b/tests/scripts/test034-translucent index 343528066a..cc620f4cdf 100755 --- a/tests/scripts/test034-translucent +++ b/tests/scripts/test034-translucent @@ -550,6 +550,24 @@ if test $RC != 16 ; then exit 1 fi +echo "Testing delete: valid local record, remote attribute..." + +$LDAPMODIFY -v -D "$TRANSLUCENTROOT" -H $URI2 -w $PASSWD > \ + $TESTOUT 2>&1 << EOF_MOD8 +version: 1 +dn: uid=danger,ou=users,o=translucent +changetype: modify +delete: initials +EOF_MOD8 + +RC=$? +if test $RC != 0 ; then + echo "ldapmodify failed ($RC)" + grep "$FAILURE" $TESTOUT + test $KILLSERVERS != no && kill -HUP $KILLPIDS + exit 1 +fi + echo "Testing modify: valid remote record, combination add-modify-delete..." $LDAPMODIFY -v -D "$TRANSLUCENTROOT" -H $URI2 -w $PASSWD > \