Skip to content

Commit 810f925

Browse files
committed
[API] Adds better defaults for running x-pack tests
1 parent 7fe212e commit 810f925

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

elasticsearch-xpack/spec/rest_yaml_tests_helper.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
PROJECT_PATH = File.join(File.dirname(__FILE__), '..', '..')
2323

2424
TRANSPORT_OPTIONS = {}
25-
TEST_SUITE = ENV['TEST_SUITE'].freeze
25+
TEST_SUITE = ENV['TEST_SUITE'].freeze || 'platinum'
2626

2727
if hosts = ENV['TEST_ES_SERVER'] || ENV['ELASTICSEARCH_HOSTS']
2828
split_hosts = hosts.split(',').map do |host|
@@ -48,7 +48,7 @@
4848
TRANSPORT_OPTIONS.merge!(
4949
ssl: { verify: false, client_cert: certificate, client_key: key, ca_file: ca_file }
5050
)
51-
password = ENV['ELASTIC_PASSWORD']
51+
password = ENV['ELASTIC_PASSWORD'] || 'changeme'
5252
URL = "https://elastic:#{password}@#{TEST_HOST}:#{TEST_PORT}"
5353
else
5454
URL = "http://#{TEST_HOST}:#{TEST_PORT}"

0 commit comments

Comments
 (0)