us_core_test_kit 1.1.1 → 1.1.3

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.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. data/config/presets/inferno_reference_server_311_preset.json +1 -1
  3. data/config/presets/inferno_reference_server_400_preset.json +1 -1
  4. data/config/presets/inferno_reference_server_501_preset.json +1 -1
  5. data/config/presets/inferno_reference_server_610_preset.json +1 -1
  6. data/config/presets/inferno_reference_server_700_preset.json +1 -1
  7. data/config/presets/inferno_reference_server_800_preset.json +1 -1
  8. data/execution_scripts/reference_server/fhir_api_only/us_core_server_311.yaml +37 -0
  9. data/execution_scripts/reference_server/fhir_api_only/us_core_server_311_expected.json +25070 -0
  10. data/execution_scripts/reference_server/fhir_api_only/us_core_server_400.yaml +37 -0
  11. data/execution_scripts/reference_server/fhir_api_only/us_core_server_400_expected.json +1 -0
  12. data/execution_scripts/reference_server/fhir_api_only/us_core_server_501.yaml +37 -0
  13. data/execution_scripts/reference_server/fhir_api_only/us_core_server_501_expected.json +41390 -0
  14. data/execution_scripts/reference_server/fhir_api_only/us_core_server_610.yaml +37 -0
  15. data/execution_scripts/reference_server/fhir_api_only/us_core_server_610_expected.json +1 -0
  16. data/execution_scripts/reference_server/fhir_api_only/us_core_server_700.yaml +37 -0
  17. data/execution_scripts/reference_server/fhir_api_only/us_core_server_700_expected.json +1 -0
  18. data/execution_scripts/reference_server/fhir_api_only/us_core_server_800.yaml +37 -0
  19. data/execution_scripts/reference_server/fhir_api_only/us_core_server_800_expected.json +53183 -0
  20. data/execution_scripts/reference_server/ref_server_authorize_85_all_scopes.rb +4 -0
  21. data/execution_scripts/reference_server/ref_server_authorize_launched_all_scopes.rb +4 -0
  22. data/execution_scripts/reference_server/ref_server_ehr_launch_85.rb +4 -0
  23. data/execution_scripts/reference_server/us_core_server_610_smart_2_with_commands.yaml +150 -0
  24. data/execution_scripts/reference_server/us_core_server_610_smart_2_with_commands_expected.json +1 -0
  25. data/lib/us_core_test_kit/generated/v3.1.1/us_core_test_suite.rb +6 -2
  26. data/lib/us_core_test_kit/generated/v4.0.0/us_core_test_suite.rb +6 -2
  27. data/lib/us_core_test_kit/generated/v5.0.1/us_core_test_suite.rb +6 -2
  28. data/lib/us_core_test_kit/generated/v6.1.0/us_core_test_suite.rb +6 -2
  29. data/lib/us_core_test_kit/generated/v7.0.0/us_core_test_suite.rb +6 -2
  30. data/lib/us_core_test_kit/generated/v8.0.0/us_core_test_suite.rb +6 -2
  31. data/lib/us_core_test_kit/generator/must_support_metadata_extractor.rb +9 -5
  32. data/lib/us_core_test_kit/generator/must_support_metadata_extractor_us_core_6.rb +1 -1
  33. data/lib/us_core_test_kit/generator/templates/suite.rb.erb +6 -2
  34. data/lib/us_core_test_kit/reference_resolution_test.rb +1 -1
  35. data/lib/us_core_test_kit/version.rb +2 -2
  36. metadata +36 -7
@@ -0,0 +1,4 @@
1
+ gem_dir = Gem::Specification.find_by_name('smart_app_launch_test_kit').gem_dir
2
+ load "#{gem_dir}/execution_scripts/reference_server/base_ref_server_authorize.rb"
3
+
4
+ ref_server_authorize(ARGV[0], target_patient_id: '85')
@@ -0,0 +1,4 @@
1
+ gem_dir = Gem::Specification.find_by_name('smart_app_launch_test_kit').gem_dir
2
+ load "#{gem_dir}/execution_scripts/reference_server/base_ref_server_authorize.rb"
3
+
4
+ ref_server_authorize(ARGV[0])
@@ -0,0 +1,4 @@
1
+ gem_dir = Gem::Specification.find_by_name('smart_app_launch_test_kit').gem_dir
2
+ load "#{gem_dir}/execution_scripts/reference_server/base_ref_server_ehr_launch.rb"
3
+
4
+ ref_server_ehr_launch(ARGV[0], ARGV[1], 85)
@@ -0,0 +1,150 @@
1
+ sessions:
2
+ - suite: us_core_v610
3
+ preset: Inferno Reference Server
4
+ suite_options:
5
+ smart_app_launch_version: smart_app_launch_2
6
+
7
+ comparison_config:
8
+ normalized_strings:
9
+ - replacement: <REFERENCE_SERVER_URL>
10
+ patterns:
11
+ - http://localhost:8080/reference-server # local reference server
12
+ - https://inferno.healthit.gov/reference-server # prod reference server
13
+ - https://inferno-qa.healthit.gov/reference-server # qa reference server
14
+ - replacement: <INFERNO_HOST>
15
+ patterns:
16
+ - http://localhost:4567/inferno # local inferno core ruby
17
+ - http://localhost:4567 # local ruby
18
+ - http://localhost # local docker
19
+ - https://inferno.healthit.gov/suites # prod
20
+ - https://inferno-qa.healthit.gov/suites # qa
21
+ - replacement: code_challenge=<CODE_CHALLENGE>
22
+ pattern: /code_challenge=[A-Za-z0-9+\/=_-]{43}/
23
+ - replacement: <UUID>
24
+ pattern: /[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/i
25
+
26
+ steps:
27
+ - state_description: US Core Server 6.1.0 session created
28
+ status: created
29
+ start_run:
30
+ runnable: 1.3
31
+ action_description: Run Group 1.3 Standalone Launch
32
+
33
+ - state_description: Wait at test 1.3.2.02 OAuth server redirects client browser to app redirect URI
34
+ status: waiting
35
+ last_completed: 1.3.2.02
36
+ command: bundle exec ruby execution_scripts/reference_server/ref_server_authorize_85_all_scopes.rb '{wait_outputs.authorization_url}'
37
+ action_description: Authorize patient 85
38
+
39
+ - state_description: Finished Group 1.3 Standalone Launch
40
+ status: done
41
+ last_completed: 1.3
42
+ start_run:
43
+ runnable: 1.4
44
+ action_description: Run Group 1.4 EHR Launch
45
+
46
+ - state_description: Wait at test 1.4.2.01 EHR server redirects client browser to Inferno app launch URI
47
+ status: waiting
48
+ last_completed: 1.4.2.01
49
+ command: bundle exec ruby execution_scripts/reference_server/ref_server_ehr_launch_85.rb '{wait_outputs.launch_uri}' '{wait_outputs.target_iss}'
50
+ action_description: Launch Inferno as a SMART app using patient 85 as the patient context
51
+
52
+ - state_description: Wait at test 1.4.2.04 OAuth server redirects client browser to app redirect URI
53
+ status: waiting
54
+ last_completed: 1.4.2.04
55
+ command: bundle exec ruby execution_scripts/reference_server/ref_server_authorize_launched_all_scopes.rb '{wait_outputs.authorization_url}'
56
+ action_description: Authorize all requested scopes for launched patient
57
+
58
+ - state_description: Finished Group 1.4 EHR Launch
59
+ status: done
60
+ last_completed: 1.4
61
+ start_run:
62
+ runnable: 2
63
+ timeout: 1200 # API tests are very long-running
64
+ action_description: Run Group 2 US Core FHIR API
65
+
66
+ - state_description: Finished Group 2 US Core FHIR API
67
+ status: done
68
+ last_completed: 2
69
+ start_run:
70
+ runnable: 3.1.1.1
71
+ action_description: Run Group 3.1.1.1 Granular Scopes 1 Standalone Launch
72
+
73
+ - state_description: Wait at test 3.1.1.1.2.02 OAuth server redirects client browser to app redirect URI
74
+ status: waiting
75
+ last_completed: 3.1.1.1.2.02
76
+ command: bundle exec ruby execution_scripts/reference_server/ref_server_authorize_85_all_scopes.rb '{wait_outputs.authorization_url}'
77
+ action_description: Authorize all requested scopes for patient 85
78
+
79
+ - state_description: Finished Group 3.1.1.1 Granular Scopes 1 Standalone Launch
80
+ status: done
81
+ last_completed: 3.1.1.1
82
+ start_run:
83
+ runnable: 3.1.1.3
84
+ action_description: Run Group 3.1.1.3 Granular Scopes 1 EHR Launch
85
+
86
+ - state_description: Wait at test 3.1.1.3.2.01 EHR server redirects client browser to Inferno app launch URI
87
+ status: waiting
88
+ last_completed: 3.1.1.3.2.01
89
+ command: bundle exec ruby execution_scripts/reference_server/ref_server_ehr_launch_85.rb '{wait_outputs.launch_uri}' '{wait_outputs.target_iss}'
90
+ action_description: Launch Inferno as a SMART app using patient 85 as the patient context
91
+
92
+ - state_description: Wait at test 3.1.1.3.2.04 OAuth server redirects client browser to app redirect URI
93
+ status: waiting
94
+ last_completed: 3.1.1.3.2.04
95
+ command: bundle exec ruby execution_scripts/reference_server/ref_server_authorize_launched_all_scopes.rb '{wait_outputs.authorization_url}'
96
+ action_description: Authorize all requested scopes for launched patient
97
+
98
+ - state_description: Finished Group 3.1.1.3 Granular Scopes 1 EHR Launch
99
+ status: done
100
+ last_completed: 3.1.1.3
101
+ start_run:
102
+ runnable: 3.1.2
103
+ timeout: 600 # granular scopes test take a while
104
+ action_description: Run Group 3.1.2 US Core FHIR API w/ Granular Scopes 1
105
+
106
+ - state_description: Finished Group 3.1.2 US Core FHIR API w/ Granular Scopes 1
107
+ status: done
108
+ last_completed: 3.1.2
109
+ start_run:
110
+ runnable: 3.2.1.1
111
+ action_description: Run Group 3.2.1.1 Granular Scopes 2 Standalone Launch
112
+
113
+ - state_description: Wait at test 3.2.1.1.2.02 OAuth server redirects client browser to app redirect URI
114
+ status: waiting
115
+ last_completed: 3.2.1.1.2.02
116
+ command: bundle exec ruby execution_scripts/reference_server/ref_server_authorize_85_all_scopes.rb '{wait_outputs.authorization_url}'
117
+ action_description: Authorize all requested scopes for patient 85
118
+
119
+ - state_description: Finished Group 3.2.1.1 Granular Scopes 2 Standalone Launch
120
+ status: done
121
+ last_completed: 3.2.1.1
122
+ start_run:
123
+ runnable: 3.2.1.3
124
+ action_description: Run Group 3.2.1.3 Granular Scopes 2 EHR Launch
125
+
126
+ - state_description: Wait at test 3.2.1.3.2.01 EHR server redirects client browser to Inferno app launch URI
127
+ status: waiting
128
+ last_completed: 3.2.1.3.2.01
129
+ command: bundle exec ruby execution_scripts/reference_server/ref_server_ehr_launch_85.rb '{wait_outputs.launch_uri}' '{wait_outputs.target_iss}'
130
+ action_description: Launch Inferno as a SMART app using patient 85 as the patient context
131
+
132
+ - state_description: Wait at test 3.2.1.3.2.04 OAuth server redirects client browser to app redirect URI
133
+ status: waiting
134
+ last_completed: 3.2.1.3.2.04
135
+ command: bundle exec ruby execution_scripts/reference_server/ref_server_authorize_launched_all_scopes.rb '{wait_outputs.authorization_url}'
136
+ action_description: Authorize all requested scopes for launched patient
137
+
138
+ - state_description: Finished Group 3.2.1.3 Granular Scopes 2 EHR Launch
139
+ status: done
140
+ last_completed: 3.2.1.3
141
+ start_run:
142
+ runnable: 3.2.2
143
+ timeout: 600 # granular scopes test take a while
144
+ action_description: Run Group 3.2.2 US Core FHIR API w/ Granular Scopes 2
145
+
146
+ - state_description: Finished Group 3.2.2 US Core FHIR API w/ Granular Scopes 2
147
+ status: done
148
+ last_completed: 3.2.2
149
+ command: "END_SCRIPT"
150
+ action_description: Script Completed