]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#9282 Extend test to cover the second issue fixed
authorOndřej Kuzník <ondra@mistotebe.net>
Wed, 2 Sep 2020 15:51:03 +0000 (16:51 +0100)
committerQuanah Gibson-Mount <quanah@openldap.org>
Wed, 2 Sep 2020 18:53:34 +0000 (18:53 +0000)
tests/data/regressions/its9282/its9282

index c590a0760982fae1bd692dbf192c03e1f59c3245..366df1cb0d295756f8c4145903fbeb07a82e0baa 100755 (executable)
@@ -67,7 +67,7 @@ while [ $n -le $MMR ]; do
        CFDIR=${XDIR}$n/slapd.d
 
        echo "Starting provider slapd on TCP/IP URI $MYURI"
-       $SLAPD -F $CFDIR -h $MYURI -d $LVL $TIMING > $MYLOG 2>&1 &
+       $SLAPD -F $CFDIR -h $MYURI -d $LVL -d sync $TIMING > $MYLOG 2>&1 &
 
        PID=$!
        if test $WAIT != 0 ; then
@@ -248,6 +248,16 @@ if test $? != 0 ; then
        exit 1
 fi
 
+echo "Checking provider 2 sent the right cookie..."
+grep "starting refresh.*csn=.*#002#.*" $LOG2 >/dev/null 2>&1
+RC=$?
+
+if test $RC != 0 ; then
+    echo "Provider 2 did not send its CSN in the cookie"
+    test $KILLSERVERS != no && kill -HUP $KILLPIDS
+    exit $RC
+fi
+
 test $KILLSERVERS != no && kill -HUP $KILLPIDS
 
 echo ">>>>> Test succeeded"