File tree Expand file tree Collapse file tree 3 files changed +9
-7
lines changed
api-spec-testing/test_file
elasticsearch-transport/lib/elasticsearch/transport Expand file tree Collapse file tree 3 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -75,12 +75,16 @@ def execute(client, test = nil)
75
75
end
76
76
if ENV [ 'QUIET' ] == 'true'
77
77
# todo: create a method on Elasticsearch::Client that can clone the client with new options
78
- Elasticsearch ::Client . new ( host : URL ,
79
- transport_options : TRANSPORT_OPTIONS . merge ( headers : headers ) )
78
+ Elasticsearch ::Client . new (
79
+ host : URL ,
80
+ transport_options : TRANSPORT_OPTIONS . merge ( headers : headers )
81
+ )
80
82
else
81
- Elasticsearch ::Client . new ( host : URL ,
82
- tracer : Logger . new ( $stdout) ,
83
- transport_options : TRANSPORT_OPTIONS . merge ( headers : headers ) )
83
+ Elasticsearch ::Client . new (
84
+ host : URL ,
85
+ tracer : Logger . new ( $stdout) ,
86
+ transport_options : TRANSPORT_OPTIONS . merge ( headers : headers )
87
+ )
84
88
end
85
89
when 'catch' , 'warnings' , 'allowed_warnings'
86
90
client
Original file line number Diff line number Diff line change 51
51
52
52
SINGLE_TEST = if ENV [ 'SINGLE_TEST' ] && !ENV [ 'SINGLE_TEST' ] . empty?
53
53
test_target = ENV [ 'SINGLE_TEST' ]
54
- path = File . expand_path ( File . dirname ( '..' ) , '..' )
55
54
56
55
if test_target . match? ( /\. yml$/ )
57
56
[ "#{ PROJECT_PATH } /../tmp/rest-api-spec/test/free/#{ test_target } " ]
Original file line number Diff line number Diff line change 19
19
20
20
module Elasticsearch
21
21
module Transport
22
-
23
22
# Methods for the Elastic meta header used by Cloud.
24
23
# X-Elastic-Client-Meta HTTP header which is used by Elastic Cloud and can be disabled when
25
24
# instantiating the Client with the :enable_meta_header parameter set to `false`.
You can’t perform that action at this time.
0 commit comments