File tree Expand file tree Collapse file tree 3 files changed +12
-33
lines changed Expand file tree Collapse file tree 3 files changed +12
-33
lines changed Original file line number Diff line number Diff line change @@ -38,12 +38,6 @@ namespace :test do
3838 t . ruby_opts = '-W0'
3939 end
4040
41- desc 'Run Elasticsearch test suite free tests.'
42- RSpec ::Core ::RakeTask . new ( :rest_api ) do |t |
43- test_dir = Rake . application . original_dir
44- t . pattern = "#{ test_dir } /spec/rest_api/rest_api_yaml_spec.rb"
45- end
46-
4741 desc 'Run unit and integration tests'
4842 task :all do
4943 Rake ::Task [ 'test:unit' ] . invoke
@@ -61,11 +55,17 @@ namespace :test do
6155 t . ruby_opts = '-W0'
6256 end
6357
64- namespace :platinum do
65- desc 'Run Platinum Rest API Spec tests'
66- RSpec ::Core ::RakeTask . new ( :api ) do
67- ENV [ 'TEST_SUITE' ] = 'platinum'
68- Rake ::Task [ 'test:rest_api' ] . invoke
58+ # This is the task to run the Elasticsearch REST tests which we stopped using for 9.x.
59+ # Use the environment variable TEST_SUITE to choose between 'free' and 'platinum' tests. For
60+ # platinum, the test cluster needs to have the license activated and run with security enabled.
61+ # For 'free', security must be disabled in the test cluster.
62+ #
63+ namespace :deprecated do
64+ # TODO: TEST_SUITE
65+ desc 'Run Elasticsearch test suite free tests.'
66+ RSpec ::Core ::RakeTask . new ( :rest_api ) do |t |
67+ test_dir = Rake . application . original_dir
68+ t . pattern = "#{ test_dir } /spec/rest_api/rest_api_yaml_spec.rb"
6969 end
7070 end
7171end
Original file line number Diff line number Diff line change 1+ This directory contains the files to run the Elasticsearch REST API Spec tests. See [ ../../api-spec-testing/README.md'] ( api-spec-testing ) .
Original file line number Diff line number Diff line change @@ -47,33 +47,11 @@ namespace :test do
4747 end
4848 end
4949
50- desc 'Run Elasticsearch test suite free tests.'
51- task es_free : [ 'es:wait_for_green' ] do
52- puts '-' * 80
53- sh "cd #{ CURRENT_PATH . join ( 'elasticsearch-api' ) } && unset BUNDLE_GEMFILE && bundle exec rake test:rest_api"
54- puts "\n "
55- end
56-
57- desc 'Run Elasticsearch test suite platinum tests.'
58- task es_platinum : 'es:wait_for_green' do
59- puts '-' * 80
60- sh "cd #{ CURRENT_PATH . join ( 'elasticsearch-api' ) } && unset BUNDLE_GEMFILE && TEST_SUITE=platinum bundle exec rake test:rest_api"
61- puts "\n "
62- end
63-
6450 desc 'Run YAML test runner tests'
6551 task :yaml do
6652 sh "cd #{ CURRENT_PATH . join ( 'elasticsearch-api' ) } && unset BUNDLE_GEMFILE && bundle exec rake test:yaml"
6753 end
6854
69- namespace :platinum do
70- desc 'Run platinum integration tests'
71- task :integration do
72- sh "cd #{ CURRENT_PATH . join ( 'elasticsearch-api' ) } && unset BUNDLE_GEMFILE && bundle exec rake test:platinum:integration"
73- puts "\n "
74- end
75- end
76-
7755 # Returns: version_number, build_hash
7856 def cluster_info
7957 require 'elasticsearch'
You can’t perform that action at this time.
0 commit comments