inferno_core 0.6.1 → 0.6.2

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.
@@ -1,4 +1,4 @@
1
1
  module Inferno
2
2
  # Standard patterns for gem versions: https://guides.rubygems.org/patterns/
3
- VERSION = '0.6.1'.freeze
3
+ VERSION = '0.6.2'.freeze
4
4
  end
@@ -16,6 +16,13 @@ RSpec.shared_examples 'platform_deployable_test_kit' do
16
16
  let(:suites) do
17
17
  test_kit.suite_ids.map { |id| Inferno::Repositories::TestSuites.new.find(id) }
18
18
  end
19
+ let(:tests) do
20
+ Inferno::Repositories::Tests.new.all.select do |test|
21
+ test_kit.suite_ids.include?(test.suite.id)
22
+ rescue NoMethodError
23
+ false
24
+ end
25
+ end
19
26
 
20
27
  describe 'TestKit' do
21
28
  it 'defines test kit in the Metadata class' do
@@ -89,7 +96,7 @@ RSpec.shared_examples 'platform_deployable_test_kit' do
89
96
  error_message =
90
97
  "Include the standard 'Report Issue', 'Open Source', and 'Download links in " \
91
98
  'each suite.\n'
92
- expect(link_labels).to match_array(expected_labels), error_message
99
+ expect(link_labels).to include(*expected_labels), error_message
93
100
  end
94
101
  end
95
102
  end
@@ -130,4 +137,19 @@ RSpec.shared_examples 'platform_deployable_test_kit' do
130
137
  expect(test_kit_gem.metadata['inferno_test_kit']).to eq('true'), error_message
131
138
  end
132
139
  end
140
+
141
+ describe 'test methods integrity' do
142
+ it 'ensures `fetch_all_bundled_resources` is not overriden in a Test' do
143
+ tests.each do |test|
144
+ error_msg = 'Integrity Error: `fetch_all_bundled_resources` is now implemented in Inferno Core. ' \
145
+ "It should no longer be defined in Test `#{test.id}`. Please remove the " \
146
+ '`fetch_all_bundled_resources` definition from that test to avoid conflicts.'
147
+
148
+ method_path = test.instance_method(:fetch_all_bundled_resources).source_location
149
+ expected_path = Inferno::Test.instance_method(:fetch_all_bundled_resources).source_location
150
+
151
+ expect(method_path).to eq(expected_path), error_msg
152
+ end
153
+ end
154
+ end
133
155
  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.6.1
4
+ version: 0.6.2
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: 2025-01-22 00:00:00.000000000 Z
13
+ date: 2025-02-06 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activesupport
@@ -525,7 +525,13 @@ files:
525
525
  - lib/inferno/dsl/fhir_evaluation/evaluation_context.rb
526
526
  - lib/inferno/dsl/fhir_evaluation/evaluation_result.rb
527
527
  - lib/inferno/dsl/fhir_evaluation/evaluator.rb
528
+ - lib/inferno/dsl/fhir_evaluation/profile_conformance_helper.rb
529
+ - lib/inferno/dsl/fhir_evaluation/reference_extractor.rb
528
530
  - lib/inferno/dsl/fhir_evaluation/rule.rb
531
+ - lib/inferno/dsl/fhir_evaluation/rules/all_must_supports_present.rb
532
+ - lib/inferno/dsl/fhir_evaluation/rules/all_references_resolve.rb
533
+ - lib/inferno/dsl/fhir_evaluation/rules/all_resources_reachable.rb
534
+ - lib/inferno/dsl/fhir_resource_navigation.rb
529
535
  - lib/inferno/dsl/fhir_resource_validation.rb
530
536
  - lib/inferno/dsl/fhir_validation.rb
531
537
  - lib/inferno/dsl/fhirpath_evaluation.rb
@@ -536,7 +542,9 @@ files:
536
542
  - lib/inferno/dsl/jwks.rb
537
543
  - lib/inferno/dsl/links.rb
538
544
  - lib/inferno/dsl/messages.rb
545
+ - lib/inferno/dsl/must_support_metadata_extractor.rb
539
546
  - lib/inferno/dsl/oauth_credentials.rb
547
+ - lib/inferno/dsl/primitive_type.rb
540
548
  - lib/inferno/dsl/request_storage.rb
541
549
  - lib/inferno/dsl/results.rb
542
550
  - lib/inferno/dsl/resume_test_route.rb
@@ -544,6 +552,7 @@ files:
544
552
  - lib/inferno/dsl/suite_endpoint.rb
545
553
  - lib/inferno/dsl/suite_option.rb
546
554
  - lib/inferno/dsl/tcp_exception_handler.rb
555
+ - lib/inferno/dsl/value_extractor.rb
547
556
  - lib/inferno/entities.rb
548
557
  - lib/inferno/entities/attributes.rb
549
558
  - lib/inferno/entities/entity.rb