We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f0b8b0 commit 353f1a8Copy full SHA for 353f1a8
elasticsearch-api/Rakefile
@@ -41,20 +41,6 @@ namespace :test do
41
42
desc "Run Rest API Spec tests"
43
RSpec::Core::RakeTask.new(:rest_api) do |t|
44
- require 'elasticsearch'
45
- # Check if a test cluster is running
46
- begin
47
- url = ENV['TEST_CLUSTER_URL'] || ENV['TEST_ES_SERVER']
48
- url = "http://localhost:#{ENV['TEST_CLUSTER_PORT'] || 9200}" unless url
49
- client = Elasticsearch::Client.new :url => url
50
- es_version_info = client.info['version']
51
- version_number = es_version_info['number']
52
- build_hash = es_version_info['build_hash']
53
- rescue Faraday::ConnectionFailed
54
- STDERR.puts "[!] Test cluster not running?"
55
- exit 1
56
- end
57
-
58
t.pattern = 'spec/**{,/*/**}/rest_api_yaml_spec.rb'
59
end
60
0 commit comments