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.
@@ -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 = test.new(inputs: inputs, test_session_id: test_session.id, scratch: scratch)
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?)
@@ -1,4 +1,4 @@
1
1
  module Inferno
2
2
  # Standard patterns for gem versions: https://guides.rubygems.org/patterns/
3
- VERSION = '0.3.3'.freeze
3
+ VERSION = '0.3.4'.freeze
4
4
  end
@@ -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.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-05-25 00:00:00.000000000 Z
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