Skip to content

Commit b9e1d6a

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

File tree

1 file changed

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

1 file changed

+13
-0
lines changed

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

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

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

0 commit comments

Comments
 (0)