]> git.sur5r.net Git - openldap/commitdiff
ITS#4777 test delete of remote attribute
authorHoward Chu <hyc@openldap.org>
Tue, 12 Dec 2006 20:00:43 +0000 (20:00 +0000)
committerHoward Chu <hyc@openldap.org>
Tue, 12 Dec 2006 20:00:43 +0000 (20:00 +0000)
tests/data/test-translucent-data.ldif
tests/data/test-translucent-merged.ldif
tests/scripts/test034-translucent

index ee32cbbc74bf9f0320d13ca81da1a2f069eb05b8..2def65c835bfe6538894175017188cc45bc5b08f 100644 (file)
@@ -5,6 +5,7 @@ uid: danger
 sn: warning
 cn: danger
 businessCategory: backend-opaque
+initials: dw
 carLicense: BACK
 departmentNumber: 7341
 displayName: Warning
index 5bb54ec31ab4671fd637b1425e20dea4a95df339..583734a3a3e2213cfb0ec7c07d34ac001ab8c05c 100644 (file)
@@ -4,6 +4,7 @@ uid: danger
 sn: danger
 cn: henry
 businessCategory: frontend-override
+initials: dw
 carLicense: LIVID
 departmentNumber: 9999999
 displayName: Warning
index 343528066a61d5a7e1a0b8fa871920676915ded5..cc620f4cdfcc7b07f0ea696bbb4a6cf67eb8eac6 100755 (executable)
@@ -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 > \