Skip to content

Commit 93c567a

Browse files
committed
[CI] Renames ENV variables for info task
1 parent 92f6912 commit 93c567a

File tree

4 files changed

+9
-25
lines changed

4 files changed

+9
-25
lines changed

.buildkite/run-serverless-tests.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ docker run \
3535
-e "QUIET=${QUIET}" \
3636
-e "TRANSPORT_VERSION=${TRANSPORT_VERSION}" \
3737
-e "ELASTICSEARCH_URL=${ELASTICSEARCH_URL}" \
38-
-e "API_KEY=${ES_API_SECRET_KEY}" \
38+
-e "ES_API_KEY=${ES_API_SECRET_KEY}" \
3939
--volume $repo:/usr/src/app \
4040
--name elasticsearch-ruby \
4141
--rm \

Rakefile

+7
Original file line numberDiff line numberDiff line change
@@ -129,3 +129,10 @@ task :release do
129129
puts '-' * 80
130130
end
131131
end
132+
133+
desc 'Server info'
134+
task :info do
135+
client = Elasticsearch::Client.new(url: ENV['TEST_ES_SERVER'], api_key: ENV['ES_API_KEY'])
136+
info = client.info
137+
puts "Connected to Elasticsearch cluster #{info['cluster_name']}"
138+
end

elasticsearch-api/spec/yaml-test-runner/run.rb

+1
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@
7070
current_branch = `git rev-parse --abbrev-ref HEAD`.strip
7171
branch = current_branch.match(/[0-9]\.[0-9]+/)&.[](0) || ENV['ES_YAML_TESTS_BRANCH'] || nil
7272
Elasticsearch::Tests::Downloader::run(tests_path, branch)
73+
7374
runner = Elasticsearch::Tests::TestRunner.new(CLIENT, tests_path, logger)
7475
runner.add_tests_to_skip('knn_search.yml') # TODO: Extract into file
7576
runner.run(ENV['SINGLE_TEST'] || [])

rake_tasks/serverless.rake

-24
This file was deleted.

0 commit comments

Comments
 (0)