File tree Expand file tree Collapse file tree 1 file changed +5
-10
lines changed
elasticsearch-api/spec/yaml-test-runner Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Original file line number Diff line number Diff line change 4949 transport_options = { }
5050end
5151
52- CLIENT = if ENV [ 'ES_API_KEY' ]
53- Elasticsearch ::Client . new ( host : host , api_key : ENV [ 'ES_API_KEY' ] , transport_options : transport_options )
54- else
55- Elasticsearch ::Client . new ( host : host , transport_options : transport_options )
56- end
52+ options = { host : host , transport_options : transport_options , compression : true }
53+ options . merge! ( { api_key : ENV [ 'ES_API_KEY' ] } ) if ENV [ 'ES_API_KEY' ]
54+ CLIENT = Elasticsearch ::Client . new ( options )
5755
5856tests_path = File . expand_path ( './tmp' , __dir__ )
59- ruby_version = if defined? JRUBY_VERSION
60- "jruby-#{ JRUBY_VERSION } "
61- else
62- "ruby-#{ RUBY_VERSION } "
63- end
57+ ruby_version = defined? ( JRUBY_VERSION ) ? "jruby-#{ JRUBY_VERSION } " : "ruby-#{ RUBY_VERSION } "
58+
6459log_filename = "es-#{ Elasticsearch ::VERSION } -transport-#{ ENV [ 'TRANSPORT_VERSION' ] } -#{ ruby_version } .log"
6560logfile = File . expand_path "../../tmp/#{ log_filename } " , __dir__
6661logger = Logger . new ( File . open ( logfile , 'w' ) )
You can’t perform that action at this time.
0 commit comments