From a82d92991b486ffa4352855bf2ba485b0ef72698 Mon Sep 17 00:00:00 2001 From: KOSAKI Motohiro Date: Sun, 17 Jan 2010 17:38:25 +0900 Subject: [PATCH 3/3] test/openssl: 1) Failure: test_sign_and_verify(OpenSSL::TestX509Certificate) [/home/kosaki/linux/ruby/test/openssl/test_x509cert.rb:169]: OpenSSL::X509::CertificateError expected but nothing was raised. 2) Failure: test_sign_and_verify(OpenSSL::TestX509Request) [/home/kosaki/linux/ruby/test/openssl/test_x509req.rb:133]: OpenSSL::X509::RequestError expected but nothing was raised. --- test/openssl/test_x509cert.rb | 4 ---- test/openssl/test_x509req.rb | 2 -- 2 files changed, 0 insertions(+), 6 deletions(-) diff --git a/test/openssl/test_x509cert.rb b/test/openssl/test_x509cert.rb index e560849..48bab17 100644 --- a/test/openssl/test_x509cert.rb +++ b/test/openssl/test_x509cert.rb @@ -166,10 +166,6 @@ class OpenSSL::TestX509Certificate < Test::Unit::TestCase cert = issue_cert(@ca, @dsa512, 1, Time.now, Time.now+3600, [], nil, nil, OpenSSL::Digest::MD5.new) } - assert_raise(OpenSSL::X509::CertificateError){ - cert = issue_cert(@ca, @dsa512, 1, Time.now, Time.now+3600, [], - nil, nil, OpenSSL::Digest::SHA1.new) - } end private diff --git a/test/openssl/test_x509req.rb b/test/openssl/test_x509req.rb index 4f3643b..f53408f 100644 --- a/test/openssl/test_x509req.rb +++ b/test/openssl/test_x509req.rb @@ -131,8 +131,6 @@ class OpenSSL::TestX509Request < Test::Unit::TestCase assert_raise(OpenSSL::X509::RequestError){ issue_csr(0, @dn, @rsa1024, OpenSSL::Digest::DSS1.new) } assert_raise(OpenSSL::X509::RequestError){ - issue_csr(0, @dn, @dsa512, OpenSSL::Digest::SHA1.new) } - assert_raise(OpenSSL::X509::RequestError){ issue_csr(0, @dn, @dsa512, OpenSSL::Digest::MD5.new) } end -- 1.6.6