Skip to content

Commit

Permalink
[API] Test Runner - Use WipeCluster8 for 8.x compatibility tests
Browse files Browse the repository at this point in the history
  • Loading branch information
picandocodigo committed Sep 5, 2023
1 parent 3b97834 commit a0b664e
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,11 @@

after(:all) do
test_file.teardown
Elasticsearch::RestAPIYAMLTests::WipeCluster.run(ADMIN_CLIENT)
if [true, 'true'].include?(ENV['ELASTIC_CLIENT_APIVERSIONING'])
Elasticsearch::RestAPIYAMLTests::WipeCluster8.run(ADMIN_CLIENT)
else
Elasticsearch::RestAPIYAMLTests::WipeCluster.run(ADMIN_CLIENT)
end
end

test.task_groups.each do |task_group|
Expand Down

0 comments on commit a0b664e

Please sign in to comment.