From: Zdeněk Šustr Date: Thu, 26 Apr 2012 11:03:38 +0000 (+0000) Subject: Preparation for another test X-Git-Tag: canl_merge_branch_1_0_head_take_3_src~10 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=b12e7c60dafb73d32627d62825ea6fcd87136bce;p=jra1mw.git Preparation for another test --- 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 b7118a4..0ae715d 100755 --- a/org.glite.testsuites.ctb/PX/tests/px-test-all.sh +++ b/org.glite.testsuites.ctb/PX/tests/px-test-all.sh @@ -263,6 +263,13 @@ else test_done fi +UTOPIA=`voms-proxy-info -all | grep -A 100 "extension information" | grep "^issuer" | grep "L=Tropic" | grep "O=Utopia" | grep "OU=Relaxation"` +if [ "$UTOPIA" != "" ]; then + printf "Possibly fake VOMS extensions. Regenerating... " + voms-proxy-init -voms vo.org -key $x509_USER_KEY -cert $x509_USER_CERT | sed "s/\$/$NL/" +fi + + test_end } diff --git a/org.glite.testsuites.ctb/PX/tests/px-voms-install.sh b/org.glite.testsuites.ctb/PX/tests/px-voms-install.sh index af06cab..baec2b6 100755 --- a/org.glite.testsuites.ctb/PX/tests/px-voms-install.sh +++ b/org.glite.testsuites.ctb/PX/tests/px-voms-install.sh @@ -17,9 +17,12 @@ # function add_voms_user_w_attrs() { + longrand="" + for it in {0..250}; do longrand="${longrand}$RANDOM"; done voms-admin --nousercert --vo vo.org create-user "$1" "$2" "$3" "$4" voms-admin --nousercert --vo vo.org set-user-attribute "$1" "$2" attribute1 $RANDOM voms-admin --nousercert --vo vo.org set-user-attribute "$1" "$2" attribute2 $RANDOM + voms-admin --nousercert --vo vo.org set-user-attribute "$1" "$2" attribute3 $longrand voms-admin --nousercert --vo vo.org add-member "/vo.org/Testers" "$1" "$2" voms-admin --nousercert --vo vo.org assign-role "/vo.org/Testers" Tester "$1" "$2" }