carin_for_blue_button_test_kit 0.10.0 → 0.11.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5fe595e51ccbb2cb27d55c35f5190a21395358525fa11450701a4db3a81e0037
4
- data.tar.gz: 81992a5722f87b9247272dd8f9a117aaad0f0e273306f71403d0810f04170eac
3
+ metadata.gz: 19689f905aacf1d67e1072b26f3a42bb93e9336d1602c728fc2f780bfff1956b
4
+ data.tar.gz: b4104a2d2503995008b95c4a7c4b8d31159f7834d5eba604dded832798801e33
5
5
  SHA512:
6
- metadata.gz: 99b18cb1b32bccb0742313a344fef98e6a0057cbd797f021df98f50e5f1485697ffb7ef18336495ef4ea6943ab08b0a95527210e042fcd335ff1a3e1149d01d2
7
- data.tar.gz: 91565bde6de6e69efbd2d91db0e92eebf2370262556afcebfeb6b064a07fcb36e1b59397a5889e002d4f268a9594023c7cefa818dea648aea17387649f61be5e
6
+ metadata.gz: ec371969eee4d6525a47d257ede3245eebb19a856b3bb1414b375cc498d3f8cecfd8ad35f938f670527fb2cf5a85a2562a031849aa4435a1c4ddb9f0224aa79b
7
+ data.tar.gz: 0a4bc6755b5f6d9afc8163f8fa235273bd54fe73bd871cdc0f19cb1da8df643fcb7c07b7d23b1db1d992b49ffaa54655edc387423fb62782eef8186449e815db
@@ -38,12 +38,20 @@ module CarinForBlueButtonTestKit
38
38
  end
39
39
  end
40
40
 
41
- validator do
42
- url ENV.fetch('V110_VALIDATOR_URL', 'http://validator_service:4567')
43
- end
44
-
45
41
  id :c4bb_v110
46
42
 
43
+ VALIDATION_MESSAGE_FILTERS = [
44
+ /\A\S+: \S+: URL value '.*' does not resolve/
45
+ ].freeze
46
+
47
+ fhir_resource_validator do
48
+ igs 'igs/carin4bb-110.tgz'
49
+
50
+ exclude_message do |message|
51
+ VALIDATION_MESSAGE_FILTERS.any? { |filter| filter.match? message.message }
52
+ end
53
+ end
54
+
47
55
  input :url,
48
56
  title: 'FHIR Endpoint',
49
57
  description: 'URL of the FHIR endpoint'
@@ -39,12 +39,20 @@ module CarinForBlueButtonTestKit
39
39
  end
40
40
  end
41
41
 
42
- validator do
43
- url ENV.fetch('V200_VALIDATOR_URL', 'http://validator_service:4567')
44
- end
45
-
46
42
  id :c4bb_v200
47
43
 
44
+ VALIDATION_MESSAGE_FILTERS = [
45
+ /\A\S+: \S+: URL value '.*' does not resolve/
46
+ ].freeze
47
+
48
+ fhir_resource_validator do
49
+ igs 'igs/carin4bb-200.tgz'
50
+
51
+ exclude_message do |message|
52
+ VALIDATION_MESSAGE_FILTERS.any? { |filter| filter.match? message.message }
53
+ end
54
+ end
55
+
48
56
  input :url,
49
57
  title: 'FHIR Endpoint',
50
58
  description: 'URL of the FHIR endpoint'
@@ -41,12 +41,20 @@ module CarinForBlueButtonTestKit
41
41
  end
42
42
  end
43
43
 
44
- validator do
45
- url ENV.fetch('V200DEVNONFINANCIAL_VALIDATOR_URL', 'http://validator_service:4567')
46
- end
47
-
48
44
  id :c4bb_v200devnonfinancial
49
45
 
46
+ VALIDATION_MESSAGE_FILTERS = [
47
+ /\A\S+: \S+: URL value '.*' does not resolve/
48
+ ].freeze
49
+
50
+ fhir_resource_validator do
51
+ igs 'igs/carin4bb-200-dev-nonfinancial-fixed.tgz'
52
+
53
+ exclude_message do |message|
54
+ VALIDATION_MESSAGE_FILTERS.any? { |filter| filter.match? message.message }
55
+ end
56
+ end
57
+
50
58
  input :url,
51
59
  title: 'FHIR Endpoint',
52
60
  description: 'URL of the FHIR endpoint'
@@ -4,16 +4,17 @@ module CarinForBlueButtonTestKit
4
4
  class Generator
5
5
  class SuiteGenerator
6
6
  class << self
7
- def generate(ig_metadata, base_output_dir)
8
- new(ig_metadata, base_output_dir).generate
7
+ def generate(ig_metadata, base_output_dir, ig_file_name)
8
+ new(ig_metadata, base_output_dir, ig_file_name).generate
9
9
  end
10
10
  end
11
11
 
12
- attr_accessor :ig_metadata, :base_output_dir
12
+ attr_accessor :ig_metadata, :base_output_dir, :ig_file_name
13
13
 
14
- def initialize(ig_metadata, base_output_dir)
14
+ def initialize(ig_metadata, base_output_dir, ig_file_name)
15
15
  self.ig_metadata = ig_metadata
16
16
  self.base_output_dir = base_output_dir
17
+ self.ig_file_name = ig_file_name
17
18
  end
18
19
 
19
20
  def template
@@ -48,8 +49,8 @@ module CarinForBlueButtonTestKit
48
49
  "CARIN IG for Blue Button® #{ig_metadata.ig_version}"
49
50
  end
50
51
 
51
- def validator_env_name
52
- "#{ig_metadata.reformatted_version.upcase}_VALIDATOR_URL"
52
+ def ig_relative_path
53
+ "igs/#{File.basename(ig_file_name)}"
53
54
  end
54
55
 
55
56
  def ig_link
@@ -73,7 +73,7 @@ module CarinForBlueButtonTestKit
73
73
  end
74
74
 
75
75
  def generate_suites
76
- SuiteGenerator.generate(ig_metadata, base_output_dir)
76
+ SuiteGenerator.generate(ig_metadata, base_output_dir, ig_file_name)
77
77
  end
78
78
 
79
79
  def generate_must_support_tests
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CarinForBlueButtonTestKit
4
- VERSION = '0.10.0'
4
+ VERSION = '0.11.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: carin_for_blue_button_test_kit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Morrison
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-02-08 00:00:00.000000000 Z
11
+ date: 2024-05-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: inferno_core
@@ -25,61 +25,61 @@ dependencies:
25
25
  - !ruby/object:Gem::Version
26
26
  version: 0.4.2
27
27
  - !ruby/object:Gem::Dependency
28
- name: database_cleaner-sequel
28
+ name: smart_app_launch_test_kit
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '1.8'
34
- type: :development
33
+ version: '0.4'
34
+ type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '1.8'
40
+ version: '0.4'
41
41
  - !ruby/object:Gem::Dependency
42
- name: factory_bot
42
+ name: database_cleaner-sequel
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '6.1'
47
+ version: '1.8'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '6.1'
54
+ version: '1.8'
55
55
  - !ruby/object:Gem::Dependency
56
- name: rspec
56
+ name: factory_bot
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '3.10'
61
+ version: '6.1'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '3.10'
68
+ version: '6.1'
69
69
  - !ruby/object:Gem::Dependency
70
- name: smart_app_launch_test_kit
70
+ name: rspec
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 0.2.2
75
+ version: '3.10'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: 0.2.2
82
+ version: '3.10'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: webmock
85
85
  requirement: !ruby/object:Gem::Requirement
@@ -684,7 +684,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
684
684
  - !ruby/object:Gem::Version
685
685
  version: '0'
686
686
  requirements: []
687
- rubygems_version: 3.3.7
687
+ rubygems_version: 3.5.9
688
688
  signing_key:
689
689
  specification_version: 4
690
690
  summary: CARIN IG for Blue Button® Test Kit