Blob Blame History Raw
diff -uNr myproxy-5.3.ORIG/myproxy-test-rpm myproxy-5.3/myproxy-test-rpm
--- myproxy-5.3.ORIG/myproxy-test-rpm	2011-02-25 15:39:27.675139739 +0100
+++ myproxy-5.3/myproxy-test-rpm	2011-02-25 15:53:13.169341343 +0100
@@ -139,7 +139,8 @@
 srand(time||$$);
 $passphrase = sprintf "%010.d", int(rand(0x7fffffff));
 $trustrootdir = "$ENV{HOME}/.globus/certificates.test.$$";
-$origtrustrootdir = $ENV{'X509_CERT_DIR'} if defined($ENV{'X509_CERT_DIR'});
+# http://bugzilla.globus.org/bugzilla/show_bug.cgi?id=7135
+#$origtrustrootdir = $ENV{'X509_CERT_DIR'} if defined($ENV{'X509_CERT_DIR'});
 
 &opensslsanitycheck();
 
@@ -297,29 +298,31 @@
     print "FAILED\n"; $FAILURES++; print STDERR $output;
 }
 
-$ENV{'X509_CERT_DIR'} = $trustrootdir;
-($exitstatus, $output) =
-  &runtest("myproxy-logon -T -t 1 -o $tmpdir/myproxy-test.$$ -v -S",
-           $passphrase . "\n");
-print "MyProxy Test 3T (retrieve stored credential w/ trustroots): ";
-if ($exitstatus == 0) {
-  ($exitstatus, $output) =
-    &verifyproxy("$tmpdir/myproxy-test.$$");
-}
-if ($exitstatus == 0) {
-  ($exitstatus, $output) =
-    &verifytrustroots();
-}
-if ($exitstatus == 0) {
-  print "SUCCEEDED\n"; $SUCCESSES++;
-} else {
-  print "FAILED\n"; $FAILURES++; print STDERR $output;
-}
-if (defined($origtrustrootdir)) {
-  $ENV{'X509_CERT_DIR'} = $origtrustrootdir;
-} else {
-  delete $ENV{'X509_CERT_DIR'};
-}
+# Disabled for now
+# http://bugzilla.globus.org/bugzilla/show_bug.cgi?id=7135
+#$ENV{'X509_CERT_DIR'} = $trustrootdir;
+#($exitstatus, $output) =
+  #&runtest("myproxy-logon -T -t 1 -o $tmpdir/myproxy-test.$$ -v -S",
+           #$passphrase . "\n");
+#print "MyProxy Test 3T (retrieve stored credential w/ trustroots): ";
+#if ($exitstatus == 0) {
+  #($exitstatus, $output) =
+    #&verifyproxy("$tmpdir/myproxy-test.$$");
+#}
+#if ($exitstatus == 0) {
+  #($exitstatus, $output) =
+    #&verifytrustroots();
+#}
+#if ($exitstatus == 0) {
+  #print "SUCCEEDED\n"; $SUCCESSES++;
+#} else {
+  #print "FAILED\n"; $FAILURES++; print STDERR $output;
+#}
+#if (defined($origtrustrootdir)) {
+  #$ENV{'X509_CERT_DIR'} = $origtrustrootdir;
+#} else {
+  #delete $ENV{'X509_CERT_DIR'};
+#}
 
 if (defined($serverconf)) {
 system("touch $serverconf") && die "failed to touch $serverconf, stopped";
@@ -683,31 +686,32 @@
 unlink( "$tmpdir/myproxy-test.cert.$$.pem" );
 unlink( "$tmpdir/myproxy-test.key.$$.pem" );
 
-$ENV{'X509_CERT_DIR'} = $trustrootdir;
-($exitstatus, $output) =
-  &runtest("myproxy-retrieve -T -c $tmpdir/myproxy-test.cert.$$.pem -y $tmpdir/myproxy-test.key.$$.pem -v -S",
-           $passphrase . "\n");
-print "MyProxy Test 20T (retrieve stored credential w/ trustroots): ";
-if ($exitstatus == 0) {
-  ($exitstatus, $output) =
-    &verifycert("$tmpdir/myproxy-test.cert.$$.pem", "$tmpdir/myproxy-test.key.$$.pem");
-}
-if ($exitstatus == 0) {
-  ($exitstatus, $output) =
-    &verifytrustroots();
-}
-if ($exitstatus == 0) {
-  print "SUCCEEDED\n"; $SUCCESSES++;
-} else {
-  print "FAILED\n"; $FAILURES++; print STDERR $output;
-}
-unlink( "$tmpdir/myproxy-test.cert.$$.pem" );
-unlink( "$tmpdir/myproxy-test.key.$$.pem" );
-if (defined($origtrustrootdir)) {
-  $ENV{'X509_CERT_DIR'} = $origtrustrootdir;
-} else {
-  delete $ENV{'X509_CERT_DIR'};
-}
+# Disable: http://bugzilla.globus.org/bugzilla/show_bug.cgi?id=7135
+#$ENV{'X509_CERT_DIR'} = $trustrootdir;
+#($exitstatus, $output) =
+#  &runtest("myproxy-retrieve -T -c $tmpdir/myproxy-test.cert.$$.pem -y $tmpdir/myproxy-test.key.$$.pem -v -S",
+#           $passphrase . "\n");
+#print "MyProxy Test 20T (retrieve stored credential w/ trustroots): ";
+#if ($exitstatus == 0) {
+#  ($exitstatus, $output) =
+#    &verifycert("$tmpdir/myproxy-test.cert.$$.pem", "$tmpdir/myproxy-test.key.$$.pem");
+#}
+#if ($exitstatus == 0) {
+#  ($exitstatus, $output) =
+#    &verifytrustroots();
+#}
+#if ($exitstatus == 0) {
+#  print "SUCCEEDED\n"; $SUCCESSES++;
+#} else {
+#  print "FAILED\n"; $FAILURES++; print STDERR $output;
+#}
+#unlink( "$tmpdir/myproxy-test.cert.$$.pem" );
+#unlink( "$tmpdir/myproxy-test.key.$$.pem" );
+#if (defined($origtrustrootdir)) {
+#  $ENV{'X509_CERT_DIR'} = $origtrustrootdir;
+#} else {
+#  delete $ENV{'X509_CERT_DIR'};
+#}
 
 #
 # Test 20.a
@@ -1192,24 +1196,24 @@
 #
 # Test 41
 #
-$ENV{'X509_CERT_DIR'} = $trustrootdir;
-($exitstatus, $output) =
-  &runtest("myproxy-get-trustroots -v", undef);
-print "MyProxy Test 41 (retrieve trustroots w/o authentication): ";
-if ($exitstatus == 0) {
-  ($exitstatus, $output) =
-    &verifytrustroots();
-}
-if ($exitstatus == 0) {
-  print "SUCCEEDED\n"; $SUCCESSES++;
-} else {
-  print "FAILED\n"; $FAILURES++; print STDERR $output;
-}
-if (defined($origtrustrootdir)) {
-  $ENV{'X509_CERT_DIR'} = $origtrustrootdir;
-} else {
-  delete $ENV{'X509_CERT_DIR'};
-}
+#$ENV{'X509_CERT_DIR'} = $trustrootdir;
+#($exitstatus, $output) =
+  #&runtest("myproxy-get-trustroots -v", undef);
+#print "MyProxy Test 41 (retrieve trustroots w/o authentication): ";
+#if ($exitstatus == 0) {
+  #($exitstatus, $output) =
+    #&verifytrustroots();
+#}
+#if ($exitstatus == 0) {
+  #print "SUCCEEDED\n"; $SUCCESSES++;
+#} else {
+  #print "FAILED\n"; $FAILURES++; print STDERR $output;
+#}
+#if (defined($origtrustrootdir)) {
+  #$ENV{'X509_CERT_DIR'} = $origtrustrootdir;
+#} else {
+  #delete $ENV{'X509_CERT_DIR'};
+#}
 
 #
 # Test 42