Skip to content

Commit ef8cad4

Browse files
committed
[test] re-tag OpenSSL tests due 4.0 divergence
1 parent cb85a9d commit ef8cad4

8 files changed

Lines changed: 20 additions & 0 deletions

File tree

test/mri/excludes/OpenSSL/TestASN1.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@
88
exclude :test_recursive_octet_string_parse, "work in progress"
99
exclude :test_sequence, "work in progress"
1010
exclude :test_set, "work in progress"
11+
exclude :test_utctime, "ASN1Error expected but nothing raised"
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
exclude :test_check_key, "work in progress"
2+
exclude :test_ECPrivateKey_encrypted, "PKeyError expected, got ECError - error class hierarchy mismatch with Ruby 4.0 tests"
23
exclude :test_ec_point, "work in progress"
34
exclude :test_ec_point_add, "work in progress"
45
exclude :test_ec_point_mul, "work in progress"
6+
exclude :test_generate, "PKeyError expected, got ECError - error class hierarchy mismatch with Ruby 4.0 tests"
7+
exclude :test_generate_key, "PKeyError expected, got ECError - error class hierarchy mismatch with Ruby 4.0 tests"
58
exclude :test_sign_verify_raw, "work in progress"
69
exclude :test_small_curve, "new failure with Ruby 4.0 tests, tested on MacOS, https://github.com/jruby/jruby/issues/9271, null curve name"

test/mri/excludes/OpenSSL/TestPKey.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,6 @@
88
exclude :test_s_generate_key, "work in progress"
99
exclude :test_s_generate_parameters, "work in progress"
1010
exclude :test_s_generate_parameters_with_block, "work in progress"
11+
exclude :test_s_read_der_then_pem, "PKey.read returns different DER encoding on master"
12+
exclude :test_s_read_passphrase, "PKeyError: Could not parse PKey: unsupported"
13+
exclude :test_x25519, "PKeyError: Could not parse PKey: unsupported"

test/mri/excludes/OpenSSL/TestPKeyDSA.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@
33
exclude :test_PUBKEY, "new failure with Ruby 4.0 tests, tested on MacOS, https://github.com/jruby/jruby/issues/9271, IllegalArgumentException: Bad sequence size: 3"
44
exclude :test_dup, 'passes except for setting (invalid) `key2.p + 1` as validation happens early'
55
exclude :test_new_break, 'needs investigation'
6+
exclude :test_new_empty, "PKeyError expected, got DSAError - error class hierarchy mismatch with Ruby 4.0 tests"
67
exclude :test_sign_verify_raw, "work in progress"

test/mri/excludes/OpenSSL/TestPKeyRSA.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
exclude :test_RSAPrivateKey_encrypted, "PKeyError expected, got RSAError - error class hierarchy mismatch with Ruby 4.0 tests"
12
exclude :test_encrypt_decrypt, "work in progress"
23
exclude :test_encrypt_decrypt_legacy, "work in progress"
34
exclude :test_new_break, 'needs investigation'
@@ -6,4 +7,6 @@
67
exclude :test_pem_passwd, "work in progress"
78
exclude :test_private_encoding_encrypted, "work in progress"
89
exclude :test_sign_verify_memory_leak, 'depends on GC.start forcing GC and changing memory size (e.g. RSS)'
10+
exclude :test_sign_verify_pss, "PKeyError expected, got RSAError - error class hierarchy mismatch with Ruby 4.0 tests"
911
exclude :test_sign_verify_raw, "work in progress"
12+
exclude :test_sign_verify_raw_legacy, "PKeyError expected, got RSAError - error class hierarchy mismatch with Ruby 4.0 tests"

test/mri/excludes/OpenSSL/TestSSL.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,16 @@
2525
exclude :test_finished_messages, 'hangs for a long time and then fails'
2626
exclude :test_get_ephemeral_key, "work in progress"
2727
exclude :test_keylog_cb, "work in progress"
28+
exclude :test_minmax_version_system_default, "TLS version mismatch - expects TLSv1.2 but gets TLSv1.3"
2829
exclude :test_post_connect_check_with_anon_ciphers, 'needs investigation'
30+
exclude :test_read_with_timeout, "timeout methods not implemented, https://github.com/jruby/jruby-openssl/issues/342"
31+
exclude :test_respect_system_default_min, "SSLError expected but nothing raised"
2932
exclude :test_readbyte, "work in progress"
3033
exclude :test_security_level, "work in progress"
3134
exclude :test_servername_cb_raises_an_exception_on_unknown_objects, "work in progress"
35+
exclude :test_set_groups_tls12, "OpenSSL::SSL::SSLError: no cipher match"
36+
exclude :test_set_groups_tls13, "undefined method 'groups=' for SSLContext"
37+
exclude :test_sigalgs, "undefined method 'add_certificate' for SSLContext"
3238
exclude :test_ssl_with_server_cert, "work in progress"
3339
exclude :test_sslctx_set_params, "work in progress"
3440
exclude :test_sysread_and_syswrite, "new failure with Ruby 4.0 tests, tested on MacOS, https://github.com/jruby/jruby/issues/9271, appears to hang and timeout"
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
exclude :test_akiski, "work in progress"
22
exclude :test_crl_uris_multiple_general_names, "work in progress"
33
exclude :test_crl_uris_no_uris, "work in progress"
4+
exclude :test_inspect, "inspect format differs from CRuby (subject= vs subject=#<OpenSSL::X509::Name>)"
45
exclude :test_load_file_certificate_der, "work in progress"
56
exclude :test_load_file_empty_pem, "work in progress"
67
exclude :test_load_file_fullchain_garbage, "work in progress"
78
exclude :test_load_file_fullchain_pem, "work in progress"
89
exclude :test_read_der_then_pem, "work in progress"
910
exclude :test_sign_and_verify_ed25519, "work in progress"
11+
exclude :test_sign_and_verify_nil_digest, "undefined method 'generate_key' for module OpenSSL::PKey"
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
exclude :test_sign_and_verify_ed25519, "work in progress"
2+
exclude :test_sign_and_verify_nil_digest, "undefined method 'generate_key' for module OpenSSL::PKey"

0 commit comments

Comments
 (0)