From 8d79a0d4be44451ffc4c94bbc7f468aa7d14dfec Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zden=C4=9Bk=20=C5=A0ustr?= Date: Mon, 30 Apr 2012 10:03:46 +0000 Subject: [PATCH] Adding a test for SB #92806 --- org.glite.testsuites.ctb/PX/tests/px-test-all.sh | 35 ++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/org.glite.testsuites.ctb/PX/tests/px-test-all.sh b/org.glite.testsuites.ctb/PX/tests/px-test-all.sh index 0ae715d..233aff7 100755 --- a/org.glite.testsuites.ctb/PX/tests/px-test-all.sh +++ b/org.glite.testsuites.ctb/PX/tests/px-test-all.sh @@ -270,6 +270,41 @@ if [ "$UTOPIA" != "" ]; then fi +printf "Checking VOMS attributes size to decide if it's possible to determine the status of bug #92806 (regression into bug #92806)... " +attrsize=`voms-proxy-info -all | grep ^attribute | sed -r 's/attribute\s*:\s*//' | wc -c` +if [ "$attrsize" == "" ]; then + attrsize=0 +fi +if [ $attrsize -gt 1024 ]; then + printf "Registering proxy for renewal" + ORIG_PROXY=`voms-proxy-info | grep -E "^path" | sed 's/^path\s*:\s*//'` + REGISTERED=`glite-proxy-renew -s localhost -f $ORIG_PROXY -j $JOBID start` + + if [ "$REGISTERED" = "" ]; then + printf "failed to renew with $attrsize bytes of attributes" + test_failed + print_error "Could not set renewal" + else + printf "renewed with $attrsize bytes of attributes" + test_done + + printf "Stopping renewal... " + glite-proxy-renew -j $JOBID stop; + if [ $? -eq 0 ]; then + test_done + else + test_failed + print_error "Failed to stop" + fi + + fi +else + printf "only $attrsize bytes of attributes" + test_skipped +fi + + + test_end } -- 1.8.2.3