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 84b3cf9
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion elasticsearch-api/spec/yaml-test-runner/run.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,14 @@
transport_options = {}
end

options = { host: host, transport_options: transport_options, compression: true }
options = {
host: host,
transport_options: transport_options,
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 84b3cf9

Please sign in to comment.