inferno_core 0.3.3 → 0.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/inferno/config/boot/db.rb +1 -1
- data/lib/inferno/config/boot.rb +1 -1
- data/lib/inferno/dsl/configurable.rb +1 -1
- data/lib/inferno/dsl/fhir_client.rb +22 -10
- data/lib/inferno/dsl/fhir_validation.rb +35 -12
- data/lib/inferno/dsl/http_client.rb +47 -35
- data/lib/inferno/dsl/input_output_handling.rb +2 -2
- data/lib/inferno/dsl/runnable.rb +30 -10
- data/lib/inferno/dsl/tcp_exception_handler.rb +11 -0
- data/lib/inferno/entities/test.rb +4 -2
- data/lib/inferno/entities/test_group.rb +2 -2
- data/lib/inferno/entities/test_session.rb +12 -1
- data/lib/inferno/entities/test_suite.rb +10 -13
- data/lib/inferno/public/bundle.js +15 -15
- data/lib/inferno/test_runner.rb +9 -3
- data/lib/inferno/version.rb +1 -1
- data/spec/support/factory_bot.rb +6 -0
- metadata +3 -2
data/lib/inferno/test_runner.rb
CHANGED
@@ -62,7 +62,13 @@ module Inferno
|
|
62
62
|
inputs = load_inputs(test)
|
63
63
|
input_json_string = inputs_as_json(test, inputs)
|
64
64
|
|
65
|
-
test_instance =
|
65
|
+
test_instance =
|
66
|
+
test.new(
|
67
|
+
inputs: inputs,
|
68
|
+
test_session_id: test_session.id,
|
69
|
+
scratch: scratch,
|
70
|
+
suite_options: test_session.suite_options
|
71
|
+
)
|
66
72
|
|
67
73
|
result = begin
|
68
74
|
raise Exceptions::CancelException, 'Test cancelled by user' if test_run_is_cancelling
|
@@ -118,7 +124,7 @@ module Inferno
|
|
118
124
|
end
|
119
125
|
|
120
126
|
results = []
|
121
|
-
group.children.each do |child|
|
127
|
+
group.children(test_session.suite_options).each do |child|
|
122
128
|
result = run(child, scratch)
|
123
129
|
results << result
|
124
130
|
break if results.last.waiting?
|
@@ -137,7 +143,7 @@ module Inferno
|
|
137
143
|
def update_parent_result(parent)
|
138
144
|
return if parent.nil?
|
139
145
|
|
140
|
-
children = parent.children
|
146
|
+
children = parent.children(test_session.suite_options)
|
141
147
|
child_results = results_repo.current_results_for_test_session_and_runnables(test_session.id, children)
|
142
148
|
required_children = children.select(&:required?)
|
143
149
|
required_results = child_results.select(&:required?)
|
data/lib/inferno/version.rb
CHANGED
data/spec/support/factory_bot.rb
CHANGED
@@ -16,6 +16,12 @@ class CreateStrategy
|
|
16
16
|
|
17
17
|
result
|
18
18
|
end
|
19
|
+
|
20
|
+
# breaking change in factory_bot 6.2.1
|
21
|
+
# https://github.com/thoughtbot/factory_bot/issues/1536
|
22
|
+
def to_sym
|
23
|
+
:repo_create
|
24
|
+
end
|
19
25
|
end
|
20
26
|
|
21
27
|
FactoryBot.register_strategy(:repo_create, CreateStrategy)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: inferno_core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stephen MacVicar
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2022-
|
13
|
+
date: 2022-06-30 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activesupport
|
@@ -526,6 +526,7 @@ files:
|
|
526
526
|
- lib/inferno/dsl/results.rb
|
527
527
|
- lib/inferno/dsl/resume_test_route.rb
|
528
528
|
- lib/inferno/dsl/runnable.rb
|
529
|
+
- lib/inferno/dsl/tcp_exception_handler.rb
|
529
530
|
- lib/inferno/entities.rb
|
530
531
|
- lib/inferno/entities/attributes.rb
|
531
532
|
- lib/inferno/entities/entity.rb
|