Skip to content

Commit 0b1f2c2

Browse files
committed
[CI] Use text/plain for xpack tests
1 parent c56e671 commit 0b1f2c2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

elasticsearch-xpack/spec/rest_yaml_tests_helper.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,11 @@
2323

2424
PROJECT_PATH = File.join(File.dirname(__FILE__), '..', '..')
2525

26-
TRANSPORT_OPTIONS = {}
26+
TRANSPORT_OPTIONS = if [true, 'true', 1].include? ENV['ELASTIC_CLIENT_APIVERSIONING']
27+
{ headers: { 'Accept' => 'application/vnd.elasticsearch+json; compatible-with=7,text/plain' } }
28+
else
29+
{}
30+
end
2731
TEST_SUITE = ENV['TEST_SUITE'].freeze || 'platinum'
2832
STACK_VERSION = ENV['STACK_VERSION']
2933

0 commit comments

Comments
 (0)