Preparation for another test
authorZdeněk Šustr <sustr4@cesnet.cz>
Thu, 26 Apr 2012 11:03:38 +0000 (11:03 +0000)
committerZdeněk Šustr <sustr4@cesnet.cz>
Thu, 26 Apr 2012 11:03:38 +0000 (11:03 +0000)
org.glite.testsuites.ctb/PX/tests/px-test-all.sh
org.glite.testsuites.ctb/PX/tests/px-voms-install.sh

index b7118a4..0ae715d 100755 (executable)
@@ -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
 } 
 
index af06cab..baec2b6 100755 (executable)
 #
 
 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"
 }