Skip to content

Commit 6211d5f

Browse files
committed
Omit tests in Ruby versions where OpenSSL doesn't support :verify_hostname
1 parent b3c3570 commit 6211d5f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/integration/test_bind.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ def test_bind_tls_with_cafile
4848
end
4949

5050
def test_bind_tls_with_bad_hostname_no_verify_hostname_no_ca_passes
51+
omit_unless TLS_OPTS.key?(:verify_hostname)
52+
5153
@ldap.host = '127.0.0.1'
5254
@ldap.encryption(
5355
method: :start_tls,
@@ -60,6 +62,8 @@ def test_bind_tls_with_bad_hostname_no_verify_hostname_no_ca_passes
6062
end
6163

6264
def test_bind_tls_with_bad_hostname_no_verify_hostname_no_ca_opt_merge_passes
65+
omit_unless TLS_OPTS.key?(:verify_hostname)
66+
6367
@ldap.host = '127.0.0.1'
6468
@ldap.encryption(
6569
method: :start_tls,

0 commit comments

Comments
 (0)