Skip to content

Commit

Permalink
fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewChubatiuk committed Oct 2, 2024
1 parent 3c0d93a commit d87ab63
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/plugin/test_out_datadog.rb
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ def create_valid_subject
api_key = 'XXX'
stub_dd_request_with_return_code(api_key, 500)
payload = '{}'
client = Fluent::DatadogOutput::DatadogHTTPClient.new Logger.new(STDOUT), false, false, "datadog.com", 443, 80, nil, false, api_key, true
client = Fluent::DatadogOutput::DatadogHTTPClient.new Logger.new(STDOUT), false, false, "datadog.com", 443, 80, nil, {}, false, api_key, true
assert_raise(Fluent::DatadogOutput::RetryableError) do
client.send(payload)
end
Expand All @@ -241,7 +241,7 @@ def create_valid_subject
api_key = 'XXX'
stub_dd_request_with_return_code(api_key, 429)
payload = '{}'
client = Fluent::DatadogOutput::DatadogHTTPClient.new Logger.new(STDOUT), false, false, "datadog.com", 443, 80, nil, false, api_key, true
client = Fluent::DatadogOutput::DatadogHTTPClient.new Logger.new(STDOUT), false, false, "datadog.com", 443, 80, nil, {}, false, api_key, true
assert_raise(Fluent::DatadogOutput::RetryableError) do
client.send(payload)
end
Expand All @@ -251,7 +251,7 @@ def create_valid_subject
api_key = 'XXX'
stub_dd_request_with_return_code(api_key, 400)
payload = '{}'
client = Fluent::DatadogOutput::DatadogHTTPClient.new Logger.new(STDOUT), false, false, "datadog.com", 443, 80, nil, false, api_key, true
client = Fluent::DatadogOutput::DatadogHTTPClient.new Logger.new(STDOUT), false, false, "datadog.com", 443, 80, nil, {}, false, api_key, true
assert_nothing_raised do
client.send(payload)
end
Expand All @@ -264,7 +264,7 @@ def create_valid_subject
api_key = 'XXX'
stub_dd_request_with_return_code(api_key, 500, true)
payload = '{}'
client = Fluent::DatadogOutput::DatadogHTTPClient.new Logger.new(STDOUT), false, false, "datadog.com", 443, 80, nil, false, api_key
client = Fluent::DatadogOutput::DatadogHTTPClient.new Logger.new(STDOUT), false, false, "datadog.com", 443, 80, nil, {}, false, api_key
assert_raise(Fluent::DatadogOutput::RetryableError) do
client.send(payload)
end
Expand All @@ -274,7 +274,7 @@ def create_valid_subject
api_key = 'XXX'
stub_dd_request_with_return_code(api_key, 429, true)
payload = '{}'
client = Fluent::DatadogOutput::DatadogHTTPClient.new Logger.new(STDOUT), false, false, "datadog.com", 443, 80, nil, false, api_key
client = Fluent::DatadogOutput::DatadogHTTPClient.new Logger.new(STDOUT), false, false, "datadog.com", 443, 80, nil, {}, false, api_key
assert_raise(Fluent::DatadogOutput::RetryableError) do
client.send(payload)
end
Expand All @@ -284,7 +284,7 @@ def create_valid_subject
api_key = 'XXX'
stub_dd_request_with_return_code(api_key, 400, true)
payload = '{}'
client = Fluent::DatadogOutput::DatadogHTTPClient.new Logger.new(STDOUT), false, false, "datadog.com", 443, 80, nil, false, api_key
client = Fluent::DatadogOutput::DatadogHTTPClient.new Logger.new(STDOUT), false, false, "datadog.com", 443, 80, nil, {}, false, api_key
assert_nothing_raised do
client.send(payload)
end
Expand Down

0 comments on commit d87ab63

Please sign in to comment.