generated from inferno-framework/inferno-template
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Integrate SMART v2.2 into US Core Test Kit
- Loading branch information
1 parent
4d20c62
commit 30e72dd
Showing
10 changed files
with
150 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
lib/us_core_test_kit/custom_groups/smart_ehr_launch_stu2_2.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
module USCoreTestKit | ||
class SmartEHRLaunchSTU22 < Inferno::TestGroup | ||
id :us_core_smart_ehr_launch_stu2_2 | ||
title 'EHR Launch' | ||
|
||
run_as_group | ||
|
||
group from: :smart_discovery_stu2_2, | ||
run_as_group: true | ||
group from: :smart_ehr_launch_stu2_2, | ||
run_as_group: true | ||
|
||
group from: :smart_openid_connect_stu2_2 do | ||
run_as_group | ||
optional | ||
config( | ||
inputs: { | ||
id_token: { name: :ehr_id_token }, | ||
client_id: { name: :ehr_client_id }, | ||
requested_scopes: { name: :ehr_requested_scopes }, | ||
access_token: { name: :ehr_access_token }, | ||
smart_credentials: { name: :ehr_smart_credentials } | ||
} | ||
) | ||
end | ||
|
||
group from: :smart_token_refresh_stu2 do | ||
run_as_group | ||
optional | ||
config( | ||
inputs: { | ||
refresh_token: { name: :ehr_refresh_token }, | ||
client_id: { name: :ehr_client_id }, | ||
client_secret: { name: :ehr_client_secret }, | ||
received_scopes: { name: :ehr_received_scopes } | ||
} | ||
) | ||
end | ||
end | ||
end |
40 changes: 40 additions & 0 deletions
40
lib/us_core_test_kit/custom_groups/smart_standalone_launch_stu2_2_group.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
module USCoreTestKit | ||
class SmartStandaloneLaunchSTU22 < Inferno::TestGroup | ||
id :us_core_smart_standalone_launch_stu2_2 | ||
title 'Standalone Launch' | ||
|
||
run_as_group | ||
|
||
group from: :smart_discovery_stu2_2, | ||
run_as_group: true | ||
group from: :smart_standalone_launch_stu2_2, | ||
run_as_group: true | ||
|
||
group from: :smart_openid_connect_stu2_2 do | ||
run_as_group | ||
optional | ||
config( | ||
inputs: { | ||
id_token: { name: :standalone_id_token }, | ||
client_id: { name: :standalone_client_id }, | ||
requested_scopes: { name: :standalone_requested_scopes }, | ||
access_token: { name: :standalone_access_token }, | ||
smart_credentials: { name: :standalone_smart_credentials } | ||
} | ||
) | ||
end | ||
|
||
group from: :smart_token_refresh_stu2 do | ||
run_as_group | ||
optional | ||
config( | ||
inputs: { | ||
refresh_token: { name: :standalone_refresh_token }, | ||
client_id: { name: :standalone_client_id }, | ||
client_secret: { name: :standalone_client_secret }, | ||
received_scopes: { name: :standalone_received_scopes } | ||
} | ||
) | ||
end | ||
end | ||
end |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
module USCoreTestKit | ||
module USCoreOptions | ||
SMART_1 = 'smart_app_launch_1'.freeze | ||
SMART_2 = 'smart_app_launch_2'.freeze | ||
|
||
SMART_1_REQUIREMENT = { smart_app_launch_version: SMART_1 }.freeze | ||
SMART_2_REQUIREMENT = { smart_app_launch_version: SMART_2 }.freeze | ||
end | ||
module USCoreOptions | ||
SMART_1 = 'smart_app_launch_1'.freeze | ||
SMART_2 = 'smart_app_launch_2'.freeze | ||
SMART_2_2 = 'smart_app_launch_2_2'.freeze | ||
|
||
SMART_1_REQUIREMENT = { smart_app_launch_version: SMART_1 }.freeze | ||
SMART_2_REQUIREMENT = { smart_app_launch_version: SMART_2 }.freeze | ||
SMART_2_2_REQUIREMENT = { smart_app_launch_version: SMART_2_2 }.freeze | ||
end | ||
end |