inferno_core 0.4.35 → 0.4.37.dev

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,9 @@
1
+ require_relative 'in_memory_repository'
2
+
3
+ module Inferno
4
+ module Repositories
5
+ # Repository that deals with persistence for the `TestKit` entity.
6
+ class TestKits < InMemoryRepository
7
+ end
8
+ end
9
+ end
@@ -3,6 +3,7 @@ require_relative 'repositories/validate_runnable_reference'
3
3
  require_relative 'repositories/test_groups'
4
4
  require_relative 'repositories/test_suites'
5
5
  require_relative 'repositories/tests'
6
+ require_relative 'repositories/test_kits'
6
7
 
7
8
  # Skip loading things which require the db when not necessary, such as CLI
8
9
  # commands which don't need the db
@@ -1,3 +1,5 @@
1
+ require 'puma/null_io'
2
+
1
3
  module Inferno
2
4
  module Utils
3
5
  # @private
@@ -28,6 +30,12 @@ module Inferno
28
30
  raise e
29
31
  end
30
32
 
33
+ env['inferno.response'] = response
34
+
35
+ # rack.after_reply is handled by puma, which doesn't process requests
36
+ # in unit tests, so we manually run them when in the test environment
37
+ env['rack.after_reply']&.each(&:call) if (ENV['APP_ENV'] = 'test')
38
+
31
39
  response
32
40
  end
33
41
 
@@ -1,4 +1,4 @@
1
1
  module Inferno
2
2
  # Standard patterns for gem versions: https://guides.rubygems.org/patterns/
3
- VERSION = '0.4.35'.freeze
3
+ VERSION = '0.4.37.dev'.freeze
4
4
  end
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.4.35
4
+ version: 0.4.37.dev
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: 2024-05-03 00:00:00.000000000 Z
13
+ date: 2024-05-18 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activesupport
@@ -74,70 +74,70 @@ dependencies:
74
74
  requirements:
75
75
  - - '='
76
76
  - !ruby/object:Gem::Version
77
- version: 0.13.0
77
+ version: 1.0.0
78
78
  type: :runtime
79
79
  prerelease: false
80
80
  version_requirements: !ruby/object:Gem::Requirement
81
81
  requirements:
82
82
  - - '='
83
83
  - !ruby/object:Gem::Version
84
- version: 0.13.0
84
+ version: 1.0.0
85
85
  - !ruby/object:Gem::Dependency
86
86
  name: dry-container
87
87
  requirement: !ruby/object:Gem::Requirement
88
88
  requirements:
89
89
  - - '='
90
90
  - !ruby/object:Gem::Version
91
- version: 0.9.0
91
+ version: 0.10.0
92
92
  type: :runtime
93
93
  prerelease: false
94
94
  version_requirements: !ruby/object:Gem::Requirement
95
95
  requirements:
96
96
  - - '='
97
97
  - !ruby/object:Gem::Version
98
- version: 0.9.0
98
+ version: 0.10.0
99
99
  - !ruby/object:Gem::Dependency
100
100
  name: dry-core
101
101
  requirement: !ruby/object:Gem::Requirement
102
102
  requirements:
103
103
  - - '='
104
104
  - !ruby/object:Gem::Version
105
- version: 0.8.1
105
+ version: 1.0.0
106
106
  type: :runtime
107
107
  prerelease: false
108
108
  version_requirements: !ruby/object:Gem::Requirement
109
109
  requirements:
110
110
  - - '='
111
111
  - !ruby/object:Gem::Version
112
- version: 0.8.1
112
+ version: 1.0.0
113
113
  - !ruby/object:Gem::Dependency
114
114
  name: dry-inflector
115
115
  requirement: !ruby/object:Gem::Requirement
116
116
  requirements:
117
117
  - - '='
118
118
  - !ruby/object:Gem::Version
119
- version: '0.3'
119
+ version: 1.0.0
120
120
  type: :runtime
121
121
  prerelease: false
122
122
  version_requirements: !ruby/object:Gem::Requirement
123
123
  requirements:
124
124
  - - '='
125
125
  - !ruby/object:Gem::Version
126
- version: '0.3'
126
+ version: 1.0.0
127
127
  - !ruby/object:Gem::Dependency
128
128
  name: dry-system
129
129
  requirement: !ruby/object:Gem::Requirement
130
130
  requirements:
131
131
  - - '='
132
132
  - !ruby/object:Gem::Version
133
- version: 0.20.0
133
+ version: 1.0.0
134
134
  type: :runtime
135
135
  prerelease: false
136
136
  version_requirements: !ruby/object:Gem::Requirement
137
137
  requirements:
138
138
  - - '='
139
139
  - !ruby/object:Gem::Version
140
- version: 0.20.0
140
+ version: 1.0.0
141
141
  - !ruby/object:Gem::Dependency
142
142
  name: faraday
143
143
  requirement: !ruby/object:Gem::Requirement
@@ -200,14 +200,14 @@ dependencies:
200
200
  requirements:
201
201
  - - '='
202
202
  - !ruby/object:Gem::Version
203
- version: 2.0.0.beta1
203
+ version: 2.0.0
204
204
  type: :runtime
205
205
  prerelease: false
206
206
  version_requirements: !ruby/object:Gem::Requirement
207
207
  requirements:
208
208
  - - '='
209
209
  - !ruby/object:Gem::Version
210
- version: 2.0.0.beta1
210
+ version: 2.0.0
211
211
  - !ruby/object:Gem::Dependency
212
212
  name: hanami-router
213
213
  requirement: !ruby/object:Gem::Requirement
@@ -655,6 +655,7 @@ files:
655
655
  - lib/inferno/dsl/results.rb
656
656
  - lib/inferno/dsl/resume_test_route.rb
657
657
  - lib/inferno/dsl/runnable.rb
658
+ - lib/inferno/dsl/suite_endpoint.rb
658
659
  - lib/inferno/dsl/suite_option.rb
659
660
  - lib/inferno/dsl/tcp_exception_handler.rb
660
661
  - lib/inferno/entities.rb
@@ -670,6 +671,7 @@ files:
670
671
  - lib/inferno/entities/session_data.rb
671
672
  - lib/inferno/entities/test.rb
672
673
  - lib/inferno/entities/test_group.rb
674
+ - lib/inferno/entities/test_kit.rb
673
675
  - lib/inferno/entities/test_run.rb
674
676
  - lib/inferno/entities/test_session.rb
675
677
  - lib/inferno/entities/test_suite.rb
@@ -677,6 +679,7 @@ files:
677
679
  - lib/inferno/exceptions.rb
678
680
  - lib/inferno/ext/fhir_client.rb
679
681
  - lib/inferno/ext/fhir_models.rb
682
+ - lib/inferno/ext/rack.rb
680
683
  - lib/inferno/jobs.rb
681
684
  - lib/inferno/jobs/execute_test_run.rb
682
685
  - lib/inferno/jobs/invoke_validator_session.rb
@@ -701,6 +704,7 @@ files:
701
704
  - lib/inferno/repositories/session_data.rb
702
705
  - lib/inferno/repositories/tags.rb
703
706
  - lib/inferno/repositories/test_groups.rb
707
+ - lib/inferno/repositories/test_kits.rb
704
708
  - lib/inferno/repositories/test_runs.rb
705
709
  - lib/inferno/repositories/test_sessions.rb
706
710
  - lib/inferno/repositories/test_suites.rb
@@ -751,7 +755,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
751
755
  - !ruby/object:Gem::Version
752
756
  version: '0'
753
757
  requirements: []
754
- rubygems_version: 3.3.7
758
+ rubygems_version: 3.5.9
755
759
  signing_key:
756
760
  specification_version: 4
757
761
  summary: Inferno Core is an open source tool for testing data exchanges enabled by