File tree 3 files changed +12
-33
lines changed
3 files changed +12
-33
lines changed Original file line number Diff line number Diff line change @@ -38,12 +38,6 @@ namespace :test do
38
38
t . ruby_opts = '-W0'
39
39
end
40
40
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
-
47
41
desc 'Run unit and integration tests'
48
42
task :all do
49
43
Rake ::Task [ 'test:unit' ] . invoke
@@ -61,11 +55,17 @@ namespace :test do
61
55
t . ruby_opts = '-W0'
62
56
end
63
57
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"
69
69
end
70
70
end
71
71
end
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
47
47
end
48
48
end
49
49
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
-
64
50
desc 'Run YAML test runner tests'
65
51
task :yaml do
66
52
sh "cd #{ CURRENT_PATH . join ( 'elasticsearch-api' ) } && unset BUNDLE_GEMFILE && bundle exec rake test:yaml"
67
53
end
68
54
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
-
77
55
# Returns: version_number, build_hash
78
56
def cluster_info
79
57
require 'elasticsearch'
You can’t perform that action at this time.
0 commit comments