Checking health status too.
authorFrantišek Dvořák <valtri@civ.zcu.cz>
Thu, 11 Nov 2010 16:45:44 +0000 (16:45 +0000)
committerFrantišek Dvořák <valtri@civ.zcu.cz>
Thu, 11 Nov 2010 16:45:44 +0000 (16:45 +0000)
org.glite.testsuites.ctb/LB/tests/lb-test-bdii.sh

index 36afc90..341347f 100755 (executable)
@@ -22,7 +22,8 @@ showHelp()
 {
 cat << EndHelpHeader
 Script for testing correct reporting of LB server properties over BDII/LDAP.
-This should also be thought of as a regression test for bug #55482.
+This should also be thought of as a regression test for bug #55482,
+and ggus ticket #62737.
 
 Prerequisities:
    - LB server
@@ -187,6 +188,20 @@ else
                fi
        fi
 
+       printf "Checking HealthStatus... "
+       health=`$SYS_GREP GLUE2EndpointHealthState: ldap.$$.out | $SYS_SED 's/^[^:]*: *//'`
+       if [ "$health" == "" ]; then
+               print_error "GLUE2EndpointHealthState not specified"
+               test_failed
+       else
+               printf "$health"
+               if [ "$health" == "ok" ]; then
+                       test_done
+               else
+                       test_failed
+               fi
+       fi
+
        rm ldap.$$.out
 
 fi