Skip to content

Commit

Permalink
[CI] Adds client options for running YAML tests
Browse files Browse the repository at this point in the history
  • Loading branch information
picandocodigo committed Jan 17, 2025
1 parent 6f95b84 commit adab6f8
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions elasticsearch-api/spec/yaml-test-runner/run.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,17 @@
end

options = { host: host, transport_options: transport_options, compression: true }
options.merge!(
{
arguments:
{
retry_on_status: [409],
retry_on_failure: 10,
delay_on_retry: 60_000,
request_timeout: 120
}
}
)
options.merge!({ api_key: ENV['ES_API_KEY'] }) if ENV['ES_API_KEY']
CLIENT = Elasticsearch::Client.new(options)

Expand Down

0 comments on commit adab6f8

Please sign in to comment.