@@ -44,7 +44,6 @@ def test_bind_tls_with_cafile
44
44
45
45
def test_bind_tls_with_bad_hostname_verify_none_no_ca_passes
46
46
@ldap . host = '127.0.0.1'
47
- @ldap . port = 9389 unless ENV [ 'TRAVIS' ] == 'true'
48
47
@ldap . encryption (
49
48
method : :start_tls ,
50
49
tls_options : { verify_mode : OpenSSL ::SSL ::VERIFY_NONE } ,
@@ -55,7 +54,6 @@ def test_bind_tls_with_bad_hostname_verify_none_no_ca_passes
55
54
56
55
def test_bind_tls_with_bad_hostname_verify_none_no_ca_opt_merge_passes
57
56
@ldap . host = '127.0.0.1'
58
- @ldap . port = 9389 unless ENV [ 'TRAVIS' ] == 'true'
59
57
@ldap . encryption (
60
58
method : :start_tls ,
61
59
tls_options : TLS_OPTS . merge ( verify_mode : OpenSSL ::SSL ::VERIFY_NONE ) ,
@@ -66,7 +64,6 @@ def test_bind_tls_with_bad_hostname_verify_none_no_ca_opt_merge_passes
66
64
67
65
def test_bind_tls_with_bad_hostname_verify_peer_ca_fails
68
66
@ldap . host = '127.0.0.1'
69
- @ldap . port = 9389 unless ENV [ 'TRAVIS' ] == 'true'
70
67
@ldap . encryption (
71
68
method : :start_tls ,
72
69
tls_options : { verify_mode : OpenSSL ::SSL ::VERIFY_PEER ,
@@ -84,7 +81,6 @@ def test_bind_tls_with_bad_hostname_verify_peer_ca_fails
84
81
85
82
def test_bind_tls_with_bad_hostname_ca_default_opt_merge_fails
86
83
@ldap . host = '127.0.0.1'
87
- @ldap . port = 9389 unless ENV [ 'TRAVIS' ] == 'true'
88
84
@ldap . encryption (
89
85
method : :start_tls ,
90
86
tls_options : TLS_OPTS . merge ( ca_file : CA_FILE ) ,
@@ -101,7 +97,6 @@ def test_bind_tls_with_bad_hostname_ca_default_opt_merge_fails
101
97
102
98
def test_bind_tls_with_valid_hostname_default_opts_passes
103
99
@ldap . host = 'localhost'
104
- @ldap . port = 9389 unless ENV [ 'TRAVIS' ] == 'true'
105
100
@ldap . encryption (
106
101
method : :start_tls ,
107
102
tls_options : TLS_OPTS . merge ( verify_mode : OpenSSL ::SSL ::VERIFY_PEER ,
@@ -113,7 +108,6 @@ def test_bind_tls_with_valid_hostname_default_opts_passes
113
108
114
109
def test_bind_tls_with_valid_hostname_just_verify_peer_ca_passes
115
110
@ldap . host = 'localhost'
116
- @ldap . port = 9389 unless ENV [ 'TRAVIS' ] == 'true'
117
111
@ldap . encryption (
118
112
method : :start_tls ,
119
113
tls_options : { verify_mode : OpenSSL ::SSL ::VERIFY_PEER ,
0 commit comments