File tree Expand file tree Collapse file tree 1 file changed +0
-24
lines changed Expand file tree Collapse file tree 1 file changed +0
-24
lines changed Original file line number Diff line number Diff line change @@ -66,30 +66,6 @@ def test_bad_ssl_certificates
6666 end
6767 end
6868
69- def test_bad_system_ssl_certificates
70- `sudo mv #{ OpenSSL ::X509 ::DEFAULT_CERT_FILE } /tmp/system_cert.pem`
71- `sudo mv #{ OpenSSL ::X509 ::DEFAULT_CERT_DIR } /tmp/system_certs`
72-
73- begin
74- d = create_driver %(
75- api_write_token test_token
76- )
77-
78- d . run ( default_tag : "test" ) do
79- time = event_time ( "2015-04-01 10:00:00 UTC" )
80- d . feed ( time , { "a" => 1 } )
81-
82- logger = flexmock ( $log)
83- logger . should_receive ( :warn ) . once . with ( /certificate verification failed/i )
84- logger . should_receive ( :warn ) . once . with ( /certificate verify failed/i )
85- logger . should_receive ( :warn ) . once . with ( /discarding buffer/i )
86- end
87- ensure
88- `sudo mv /tmp/system_certs #{ OpenSSL ::X509 ::DEFAULT_CERT_DIR } `
89- `sudo mv /tmp/system_cert.pem #{ OpenSSL ::X509 ::DEFAULT_CERT_FILE } `
90- end
91- end
92-
9369 def test_hostname_verification
9470 agent_scalyr_com_ip = `dig +short agent.scalyr.com 2> /dev/null | tail -n 1 | tr -d "\n "`
9571 if agent_scalyr_com_ip . empty?
You can’t perform that action at this time.
0 commit comments