ruby/test/openssl
Jun Aruga 1c991f3bf4 [ruby/openssl] test_asn1.rb: Remove the assertions of the time string format without second.
This commit fixes the following errors in the tests.
Because the OpenSSL project changed the code to make the time string format
without second invalid. So, we drop the assertions.

```
1) Error: test_generalizedtime(OpenSSL::TestASN1): OpenSSL::ASN1::ASN1Error: generalizedtime is too short
/home/runner/work/ruby-openssl/ruby-openssl/test/openssl/test_asn1.rb:698:in `decode'
/home/runner/work/ruby-openssl/ruby-openssl/test/openssl/test_asn1.rb:698:in `decode_test'
/home/runner/work/ruby-openssl/ruby-openssl/test/openssl/test_asn1.rb:433:in `test_generalizedtime'
     430:       OpenSSL::ASN1::GeneralizedTime.new(Time.utc(9999, 9, 8, 23, 43, 39))
     431:     # LibreSSL 3.6.0 requires the seconds element
     432:     return if libressl?
  => 433:     decode_test B(%w{ 18 0D }) + "201612081934Z".b,
     434:       OpenSSL::ASN1::GeneralizedTime.new(Time.utc(2016, 12, 8, 19, 34, 0))
     435:     # not implemented
     436:     # decode_test B(%w{ 18 13 }) + "2016120819+0930".b,

2) Error: test_utctime(OpenSSL::TestASN1): OpenSSL::ASN1::ASN1Error: utctime is too short
/home/runner/work/ruby-openssl/ruby-openssl/test/openssl/test_asn1.rb:698:in `decode'
/home/runner/work/ruby-openssl/ruby-openssl/test/openssl/test_asn1.rb:698:in `decode_test'
/home/runner/work/ruby-openssl/ruby-openssl/test/openssl/test_asn1.rb:411:in `test_utctime'
     408:     end
     409:     # Seconds is omitted. LibreSSL 3.6.0 requires it
     410:     return if libressl?
  => 411:     decode_test B(%w{ 17 0B }) + "1609082343Z".b,
     412:       OpenSSL::ASN1::UTCTime.new(Time.utc(2016, 9, 8, 23, 43, 0))
     413:     # not implemented
     414:     # decode_test B(%w{ 17 11 }) + "5009082343+0930".b,
```

2e826d5715
2024-04-30 14:02:50 +09:00
..
fixtures/pkey Fix test_pkey_dh.rb in FIPS. 2023-11-25 10:12:28 +00:00
test_asn1.rb [ruby/openssl] test_asn1.rb: Remove the assertions of the time string format without second. 2024-04-30 14:02:50 +09:00
test_bn.rb [ruby/openssl] Fix modular square root test with LibreSSL >= 3.8 2023-06-19 01:57:09 +09:00
test_buffering.rb
test_cipher.rb [ruby/openssl] Use openssl? instead of OpenSSL::OPENSSL_VERSION_NUMBER. 2023-08-16 14:48:42 +09:00
test_config.rb [ruby/openssl] config: relax test assertions against error messages 2023-08-16 14:48:41 +09:00
test_digest.rb [ruby/openssl] Prefer String#unpack1 2023-09-06 19:24:53 +09:00
test_engine.rb [ruby/openssl] Remove OSSL_DEBUG compile-time option 2023-09-06 19:20:57 +09:00
test_fips.rb [ruby/openssl] test_fips.rb: Fix the OpenSSL.fips_mode affecting other tests. 2023-09-21 18:04:55 +00:00
test_hmac.rb [ruby/openssl] Revert "Skip OpenSSL::TestHMAC#test_dup when running with RHEL9" 2023-05-19 09:25:11 +09:00
test_kdf.rb
test_ns_spki.rb [ruby/openssl] Prefer String#unpack1 2023-09-06 19:24:53 +09:00
test_ocsp.rb [ruby/openssl] Let OpenSSL choose the digest if digest for Openssl::OCSP::BasicResponse#sign is nil. 2022-07-08 23:18:22 +09:00
test_ossl.rb [ruby/openssl] test/openssl/test_ossl.rb: relax assertion for error messages 2023-09-06 19:30:55 +09:00
test_pair.rb [ruby/openssl] test/openssl/test_ssl.rb: do not run SSL tests if not available 2022-12-23 09:39:15 +09:00
test_pkcs7.rb
test_pkcs12.rb [ruby/openssl] Prefer String#unpack1 2023-09-06 19:24:53 +09:00
test_pkey.rb [ruby/openssl] test_pkey.rb: Refactor the test_ed25519 on FIPS. 2023-09-21 18:04:55 +00:00
test_pkey_dh.rb Fix test_pkey_dh.rb in FIPS. 2023-11-25 10:12:28 +00:00
test_pkey_dsa.rb [ruby/openssl] Prefer String#unpack1 2023-09-06 19:24:53 +09:00
test_pkey_ec.rb [ruby/openssl] Fix test_pkey_ec.rb on FIPS. 2023-09-21 18:04:56 +00:00
test_pkey_rsa.rb [ruby/openssl] Prefer String#unpack1 2023-09-06 19:24:53 +09:00
test_provider.rb [ruby/openssl] Remove OSSL_DEBUG compile-time option 2023-09-06 19:20:57 +09:00
test_random.rb
test_ssl.rb [ruby/openssl] ssl: raise SSLError if loading ca_file or ca_path fails 2023-08-16 14:48:41 +09:00
test_ssl_session.rb [ruby/openssl] Prefer String#unpack1 2023-09-06 19:24:53 +09:00
test_ts.rb
test_x509attr.rb
test_x509cert.rb [ruby/openssl] Use SHA256 instead of SHA1 where needed in tests. 2022-12-13 18:07:41 +09:00
test_x509crl.rb [ruby/openssl] Use SHA256 instead of SHA1 where needed in tests. 2022-12-13 18:07:41 +09:00
test_x509ext.rb [ruby/openssl] Exact checks with assert_include 2023-10-06 09:45:20 +00:00
test_x509name.rb
test_x509req.rb [ruby/openssl] Use SHA256 instead of SHA1 where needed in tests. 2022-12-13 18:07:41 +09:00
test_x509store.rb
ut_eof.rb
utils.rb Fix test_pkey_dh.rb in FIPS. 2023-11-25 10:12:28 +00:00