Fixed support of ES_INDEX_RAND.

This commit is contained in:
Martin Edenhofer 2016-01-26 17:03:32 +01:00
parent b2bfeff55a
commit c1c1930bdc

View file

@ -8,7 +8,7 @@ class ReportTest < ActiveSupport::TestCase
fail "ERROR: Need ES_URL - hint ES_URL='http://172.0.0.1:9200'" fail "ERROR: Need ES_URL - hint ES_URL='http://172.0.0.1:9200'"
end end
Setting.set('es_url', ENV['ES_URL']) Setting.set('es_url', ENV['ES_URL'])
if !ENV['ES_INDEX'] if !ENV['ES_INDEX'] && !ENV['ES_INDEX_RAND']
fail "ERROR: Need ES_INDEX - hint ES_INDEX='estest.local_zammad'" fail "ERROR: Need ES_INDEX - hint ES_INDEX='estest.local_zammad'"
end end
if ENV['ES_INDEX_RAND'] if ENV['ES_INDEX_RAND']