File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
api-spec-testing/test_file Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -73,8 +73,8 @@ def execute(client, test = nil)
73
73
if headers [ :Authorization ] == 'Basic eF9wYWNrX3Jlc3RfdXNlcjp4LXBhY2stdGVzdC1wYXNzd29yZA=='
74
74
headers . delete ( :Authorization )
75
75
end
76
- host = client . instance_variable_get ( '@options' ) [ :host ]
77
- transport_options = client . instance_variable_get ( '@arguments' ) [ :transport_options ]
76
+ host = client . transport . instance_variable_get ( '@hosts' )
77
+ transport_options = client . transport . instance_variable_get ( '@options' ) &. dig ( :transport_options ) || { }
78
78
if ENV [ 'QUIET' ] == 'true'
79
79
# todo: create a method on Elasticsearch::Client that can clone the client with new options
80
80
Elasticsearch ::Client . new (
Original file line number Diff line number Diff line change 40
40
41
41
ctx = file . gsub ( "#{ YAML_FILES_DIRECTORY } /" , '' )
42
42
context ctx do
43
+ let ( :client ) { DEFAULT_CLIENT }
44
+
43
45
test_file . tests . each do |test |
44
46
context "#{ test . description } " do
45
47
if test . skip_test? ( ADMIN_CLIENT )
46
48
skip 'Test contains feature(s) not yet supported or version is not satisfied'
47
49
next
48
50
end
49
51
50
- let ( :client ) { DEFAULT_CLIENT }
51
52
before ( :all ) { test_file . setup }
52
53
after ( :all ) do
53
54
test_file . teardown
You can’t perform that action at this time.
0 commit comments