- No need to specify notify receive timout (enforced externally)
authorZdeněk Šustr <sustr4@cesnet.cz>
Tue, 28 Feb 2012 15:23:42 +0000 (15:23 +0000)
committerZdeněk Šustr <sustr4@cesnet.cz>
Tue, 28 Feb 2012 15:23:42 +0000 (15:23 +0000)
- Check for validity period in notification listings to distinguish from job listing

org.glite.testsuites.ctb/LB/tests/lb-test-https.sh
org.glite.testsuites.ctb/LB/tests/lb-test-notif.sh

index 9a1b920..236041c 100755 (executable)
@@ -225,6 +225,16 @@ test_done
                                                test_done
                                        fi
 
+                                       printf "Checking for validity period (to distinguis from job listing)... "
+                                       $SYS_GREP -E "Valid until:</th><td>[0-9 :-]+</td>" https.$$.tmp > /dev/null 2> /dev/null
+
+                                       if [ "$?" != "0" ]; then
+                                               test_failed
+                                               print_error "Validity period inot listed"
+                                       else
+                                               test_done
+                                       fi
+
                                        $SYS_RM https.$$.tmp
 
                                 fi
index a4ae748..44cbfd7 100755 (executable)
@@ -145,7 +145,7 @@ else
                        test_done
 
                        #Start listening for notifications
-                       ${LBNOTIFY} receive -i 10 ${notifid} > $$_notifications.txt &
+                       ${LBNOTIFY} receive ${notifid} > $$_notifications.txt &
                        recpid=$!
                        disown $recpid