Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: Turn off aborted testcases on windows #3094

Merged
merged 2 commits into from
Aug 31, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions test/plugin/test_in_tail.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1403,6 +1403,9 @@ def test_tail_path_with_multiline_without_firstline
end

def test_tail_path_with_multiline_with_multiple_paths
if ENV["APPVEYOR"] && Fluent.windows?
omit "This testcase is unstable on AppVeyor."
end
files = ["#{TMP_DIR}/tail1.txt", "#{TMP_DIR}/tail2.txt"]
files.each { |file| File.open(file, "wb") { |f| } }

Expand Down
5 changes: 5 additions & 0 deletions test/plugin_helper/test_http_server_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,7 @@ def start_https_request(addr, port, verify: true, cert_path: nil, selfsigned: tr
driver.http_server_create_https_server(:http_server_helper_test_tls, addr: '127.0.0.1', port: PORT, logger: NULL_LOGGER) do |s|
s.get('/example/hello') { [200, { 'Content-Type' => 'text/plain' }, 'hello get'] }
end
omit "TLS connection should be aborted due to `Errno::ECONNABORTED`. Need to debug." if Fluent.windows?

resp = secure_get("https://127.0.0.1:#{PORT}/example/hello", verify: false)
assert_equal('200', resp.code)
Expand All @@ -293,6 +294,8 @@ def start_https_request(addr, port, verify: true, cert_path: nil, selfsigned: tr
'with passphrase' => ['apple', 'cert-pass.pem', 'cert-key-pass.pem'],
'without passphrase' => [nil, 'cert.pem', 'cert-key.pem'])
test 'load self-signed cert/key pair, verified from clients using cert files' do |(passphrase, cert, private_key)|
omit "Self signed certificate blocks TLS connection. Need to debug." if Fluent.windows?

cert_path = File.join(CERT_DIR, cert)
private_key_path = File.join(CERT_DIR, private_key)
opt = { 'insecure' => 'false', 'private_key_path' => private_key_path, 'cert_path' => cert_path }
Expand All @@ -315,6 +318,8 @@ def start_https_request(addr, port, verify: true, cert_path: nil, selfsigned: tr
'with passphrase' => ['apple', 'cert-pass.pem', 'cert-key-pass.pem', 'ca-cert-pass.pem'],
'without passphrase' => [nil, 'cert.pem', 'cert-key.pem', 'ca-cert.pem'])
test 'load cert by private CA cert file, verified from clients using CA cert file' do |(passphrase, cert, cert_key, ca_cert)|
omit "Self signed certificate blocks TLS connection. Need to debug." if Fluent.windows?

cert_path = File.join(CERT_CA_DIR, cert)
private_key_path = File.join(CERT_CA_DIR, cert_key)

Expand Down