Diff for /tests/scripts/test017-syncreplication-refresh between versions 1.27 and 1.28

version 1.27, 2005/01/19 13:05:35 version 1.28, 2005/01/19 13:45:35
Line 1 Line 1
 #! /bin/sh  #! /bin/sh
 # $OpenLDAP: pkg/ldap/tests/scripts/test017-syncreplication-refresh,v 1.26 2005/01/10 23:34:14 ando Exp $  # $OpenLDAP: pkg/ldap/tests/scripts/test017-syncreplication-refresh,v 1.27 2005/01/19 13:05:35 ando Exp $
 ## This work is part of OpenLDAP Software <http://www.openldap.org/>.  ## This work is part of OpenLDAP Software <http://www.openldap.org/>.
 ##  ##
 ## Copyright 1998-2005 The OpenLDAP Foundation.  ## Copyright 1998-2005 The OpenLDAP Foundation.
Line 206  $LDAPMODIFY -v -D "$MANAGERDN" -h $LOCAL Line 206  $LDAPMODIFY -v -D "$MANAGERDN" -h $LOCAL
 dn: cn=James A Jones 1, ou=Alumni Association, ou=People, dc=example, dc=com  dn: cn=James A Jones 1, ou=Alumni Association, ou=People, dc=example, dc=com
 changetype: modify  changetype: modify
 add: description  add: description
 description: this write must fail because directed to a shadow context  description: This write must fail because directed to a shadow context,
   description: unless the chain overlay is configured appropriately ;)
   
 EOMODS  EOMODS
   
 RC=$?  RC=$?
   
 # expect 10 (LDAP_REFERRAL)...  if test $BACKLDAP = "ldapno" ; then
 if test $RC != 10 ; then          # expect 10 (LDAP_REFERRAL)...
         echo "ldapmodify should have failed ($RC)!"          if test $RC != 10 ; then
         test $KILLSERVERS != no && kill -HUP $KILLPIDS                  echo "ldapmodify should have failed ($RC)!"
         exit $RC                  test $KILLSERVERS != no && kill -HUP $KILLPIDS
                   exit $RC
           fi
   
   else
           # expect 0 (LDAP_SUCCESS)...
           if test $RC != 0 ; then
                   echo "ldapmodify failed ($RC)!"
                   test $KILLSERVERS != no && kill -HUP $KILLPIDS
                   exit $RC
           fi
   
           echo "Waiting 5 seconds for slurpd to send changes..."
           sleep 5
 fi  fi
   
 echo "Using ldapsearch to read all the entries from the master..."  echo "Using ldapsearch to read all the entries from the master..."

Removed from v.1.27  
changed lines
  Added in v.1.28


______________
© Copyright 1998-2020, OpenLDAP Foundation, info@OpenLDAP.org