Rudimentary test, not much intelligence
authorZdeněk Šustr <sustr4@cesnet.cz>
Thu, 1 Mar 2012 16:10:27 +0000 (16:10 +0000)
committerZdeněk Šustr <sustr4@cesnet.cz>
Thu, 1 Mar 2012 16:10:27 +0000 (16:10 +0000)
org.glite.testsuites.ctb/gridsite/tests/gridsite-test-all.sh

index f617037..60669ab 100755 (executable)
@@ -447,7 +447,14 @@ EOF
                fi
 
                printf "Test listing of VOMS attributes (Regression test for bug #92077)\n"
-               curl --cert /tmp/x509up_u0 --key /tmp/x509up_u0 --capath /etc/grid-security/certificates --silent https://$(hostname -f)/test.cgi
+               GRST_CRED_AURI=`curl --cert /tmp/x509up_u0 --key /tmp/x509up_u0 --capath /etc/grid-security/certificates --silent https://$(hostname -f)/test.cgi|grep -E GRST_CRED_AURI.*Testers`
+               if [ "$GRST_CRED_AURI" == "" ]; then
+                       test_failed
+                       print_error "attribute not present"
+               else 
+                       printf " $GRST_CRED_AURI"
+                       test_done
+               fi
 
        else
                printf "No proxy certificate"