File tree Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Original file line number Diff line number Diff line change @@ -219,23 +219,4 @@ def test_bind_tls_valid_hostname_system_ca_on_travis_passes
219219 assert @ldap . bind ( BIND_CREDS ) ,
220220 @ldap . get_operation_result . inspect
221221 end
222-
223- # Inverse of the above! Don't run this on Travis, only on Vagrant.
224- # Since Vagrant's hypervisor *won't* have the CA in the system
225- # x509 store, we can assume validation will fail
226- def test_bind_tls_valid_hostname_system_on_vagrant_fails
227- omit_if ENV [ 'TRAVIS' ] == 'true'
228-
229- @ldap . encryption (
230- method : :start_tls ,
231- tls_options : { verify_mode : OpenSSL ::SSL ::VERIFY_PEER } ,
232- )
233- error = assert_raise Net ::LDAP ::Error do
234- @ldap . bind BIND_CREDS
235- end
236- assert_equal (
237- "SSL_connect returned=1 errno=0 state=error: certificate verify failed" ,
238- error . message ,
239- )
240- end
241222end
You can’t perform that action at this time.
0 commit comments