Commit 513af1f 1 parent 9e06950 commit 513af1f Copy full SHA for 513af1f
File tree 1 file changed +6
-3
lines changed
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 5
5
let ( :test_session ) { repo_create ( :test_session , test_suite_id : suite_id ) }
6
6
7
7
before do
8
- allow ( described_class ) . to receive ( :suite ) . and_return ( suite ) if described_class . parent . nil?
8
+ if described_class . respond_to? ( :parent ) && described_class . parent . nil?
9
+ allow ( described_class ) . to receive ( :suite ) . and_return ( suite )
10
+ end
9
11
rescue NameError
10
12
raise StandardError , "No suite id defined. Add `let(:suite_id) { 'your_suite_id' }` to the spec"
11
13
end
12
14
13
15
def run ( runnable , inputs = { } )
14
16
test_run_params = { test_session_id : test_session . id } . merge ( runnable . reference_hash )
15
17
test_run = Inferno ::Repositories ::TestRuns . new . create ( test_run_params )
16
- inputs . each do |name , value |
18
+ inputs . each do |original_name , value |
19
+ name = runnable . config . input_name ( original_name ) . presence || original_name
17
20
session_data_repo . save (
18
21
test_session_id : test_session . id ,
19
22
name :,
20
23
value :,
21
- type : runnable . config . input_type ( name )
24
+ type : runnable . available_inputs [ name . to_sym ] &. type
22
25
)
23
26
end
24
27
You can’t perform that action at this time.
0 commit comments