Skip to content

Commit

Permalink
[CI] Use text/plain for xpack tests
Browse files Browse the repository at this point in the history
  • Loading branch information
picandocodigo committed Dec 9, 2021
1 parent c56e671 commit 0b1f2c2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion elasticsearch-xpack/spec/rest_yaml_tests_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@

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

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

Expand Down

0 comments on commit 0b1f2c2

Please sign in to comment.