Skip to content

Commit adab6f8

Browse files
committed
[CI] Adds client options for running YAML tests
1 parent 6f95b84 commit adab6f8

File tree

1 file changed

+11
-0
lines changed
  • elasticsearch-api/spec/yaml-test-runner

1 file changed

+11
-0
lines changed

elasticsearch-api/spec/yaml-test-runner/run.rb

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,17 @@
5050
end
5151

5252
options = { host: host, transport_options: transport_options, compression: true }
53+
options.merge!(
54+
{
55+
arguments:
56+
{
57+
retry_on_status: [409],
58+
retry_on_failure: 10,
59+
delay_on_retry: 60_000,
60+
request_timeout: 120
61+
}
62+
}
63+
)
5364
options.merge!({ api_key: ENV['ES_API_KEY'] }) if ENV['ES_API_KEY']
5465
CLIENT = Elasticsearch::Client.new(options)
5566

0 commit comments

Comments
 (0)