smart_app_launch_test_kit 1.0.1 → 1.0.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.
Files changed (44) hide show
  1. checksums.yaml +4 -4
  2. data/execution_scripts/README.md +16 -0
  3. data/execution_scripts/client_vs_server/access_data_and_continue_client.rb +37 -0
  4. data/execution_scripts/client_vs_server/smart_v22_backend_services_with_commands.yaml +69 -0
  5. data/execution_scripts/client_vs_server/smart_v22_backend_services_with_commands_client_expected.json +1 -0
  6. data/execution_scripts/client_vs_server/smart_v22_backend_services_with_commands_server_expected.json +478 -0
  7. data/execution_scripts/client_vs_server/smart_v22_backend_services_with_commands_server_no_tls_expected.json +479 -0
  8. data/execution_scripts/client_vs_server/smart_v22_confidential_symmetric_with_commands.yaml +122 -0
  9. data/execution_scripts/client_vs_server/smart_v22_confidential_symmetric_with_commands_client_expected.json +1 -0
  10. data/execution_scripts/client_vs_server/smart_v22_confidential_symmetric_with_commands_client_no_tls_expected.json +1 -0
  11. data/execution_scripts/client_vs_server/smart_v22_confidential_symmetric_with_commands_server_expected.json +1 -0
  12. data/execution_scripts/client_vs_server/smart_v22_confidential_symmetric_with_commands_server_no_tls_expected.json +1 -0
  13. data/execution_scripts/client_vs_server/smart_v22_public_with_commands.yaml +123 -0
  14. data/execution_scripts/client_vs_server/smart_v22_public_with_commands_client_expected.json +1 -0
  15. data/execution_scripts/client_vs_server/smart_v22_public_with_commands_client_no_tls_expected.json +1 -0
  16. data/execution_scripts/client_vs_server/smart_v22_public_with_commands_server_expected.json +1 -0
  17. data/execution_scripts/client_vs_server/smart_v22_public_with_commands_server_no_tls_expected.json +1 -0
  18. data/execution_scripts/client_vs_server/visit_and_wait_to_return_to_inferno.rb +17 -0
  19. data/execution_scripts/reference_server/base_ref_server_authorize.rb +24 -0
  20. data/execution_scripts/reference_server/base_ref_server_ehr_launch.rb +24 -0
  21. data/execution_scripts/reference_server/ref_server_authorize_85_all_scopes.rb +3 -0
  22. data/execution_scripts/reference_server/ref_server_authorize_launched_all_scopes.rb +3 -0
  23. data/execution_scripts/reference_server/ref_server_ehr_launch_85.rb +3 -0
  24. data/execution_scripts/reference_server/smart_v1_vs_reference_server_with_commands.yaml +60 -0
  25. data/execution_scripts/reference_server/smart_v1_vs_reference_server_with_commands_expected.json +1 -0
  26. data/execution_scripts/reference_server/smart_v22_vs_reference_server_with_commands.yaml +93 -0
  27. data/execution_scripts/reference_server/smart_v22_vs_reference_server_with_commands_expected.json +1 -0
  28. data/execution_scripts/reference_server/smart_v22_vs_reference_server_with_commands_same_host_expected.json +4166 -0
  29. data/execution_scripts/reference_server/smart_v2_vs_reference_server_with_commands.yaml +81 -0
  30. data/execution_scripts/reference_server/smart_v2_vs_reference_server_with_commands_expected.json +1 -0
  31. data/lib/smart_app_launch/app_launch_test.rb +4 -0
  32. data/lib/smart_app_launch/app_redirect_test.rb +2 -1
  33. data/lib/smart_app_launch/client_suite/access_alca_interaction_test.rb +5 -1
  34. data/lib/smart_app_launch/client_suite/access_alcs_interaction_test.rb +5 -1
  35. data/lib/smart_app_launch/client_suite/access_alp_interaction_test.rb +6 -2
  36. data/lib/smart_app_launch/client_suite/access_bsca_interaction_test.rb +4 -1
  37. data/lib/smart_app_launch/client_suite/authentication_verification.rb +1 -1
  38. data/lib/smart_app_launch/client_suite/client_descriptions.rb +4 -3
  39. data/lib/smart_app_launch/cors_metadata_request_test.rb +11 -4
  40. data/lib/smart_app_launch/cors_openid_fhir_user_claim_test.rb +8 -4
  41. data/lib/smart_app_launch/cors_token_exchange_test.rb +8 -4
  42. data/lib/smart_app_launch/cors_well_known_endpoint_test.rb +8 -4
  43. data/lib/smart_app_launch/version.rb +2 -2
  44. metadata +34 -6
@@ -0,0 +1,93 @@
1
+ sessions:
2
+ - suite: smart_stu2_2
3
+ preset: smart_stu2_2_reference_server
4
+
5
+ comparison_config:
6
+ normalized_strings:
7
+ - replacement: <INFERNO_HOST>
8
+ patterns:
9
+ - http://localhost:4567/inferno # local inferno core ruby
10
+ - http://localhost:4567 # local ruby
11
+ - http://localhost # local docker
12
+ - https://inferno.healthit.gov/suites # prod
13
+ - https://inferno-qa.healthit.gov/suites # qa
14
+ - replacement: <REFERENCE_SERVER_URL>
15
+ patterns:
16
+ - https://inferno.healthit.gov/reference-server # prod reference server
17
+ - https://inferno-qa.healthit.gov/reference-server # qa reference server
18
+ - replacement: code_challenge=<CODE_CHALLENGE>
19
+ pattern: /code_challenge=[A-Za-z0-9+\/=_-]{43}/
20
+ - replacement: <UUID>
21
+ pattern: /[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/i
22
+ alternate_expected_files: # for CORS exception when requestor (inferno) and target (ref server) are on the same host
23
+ - file: smart_v22_vs_reference_server_with_commands_same_host_expected.json
24
+ when: # both prod
25
+ - field: inferno_base_url
26
+ matches: inferno\.healthit\.gov
27
+ - field: inputs.url
28
+ matches: inferno\.healthit\.gov
29
+ - file: smart_v22_vs_reference_server_with_commands_same_host_expected.json
30
+ when: # both qa
31
+ - field: inferno_base_url
32
+ matches: inferno-qa\.healthit\.gov
33
+ - field: inputs.url
34
+ matches: inferno-qa\.healthit\.gov
35
+
36
+ steps:
37
+ - state_description: Session Created
38
+ status: created
39
+ start_run:
40
+ runnable: 1
41
+ action_description: Run Group 1 Standalone Launch
42
+
43
+ - state_description: Wait at test 1.2.02 OAuth server redirects client browser to app redirect URI
44
+ status: waiting
45
+ last_completed: 1.2.02
46
+ command: bundle exec ruby execution_scripts/reference_server/ref_server_authorize_85_all_scopes.rb '{wait_outputs.authorization_url}'
47
+ action_description: Authorize patient 85
48
+
49
+ - state_description: Finished Group 1 Standalone Launch
50
+ status: done
51
+ last_completed: 1
52
+ start_run:
53
+ runnable: 2
54
+ action_description: Run Group 2 EHR Launch
55
+
56
+ - state_description: Wait at test 2.2.01 EHR server redirects client browser to Inferno app launch URI
57
+ status: waiting
58
+ last_completed: 2.2.01
59
+ command: bundle exec ruby execution_scripts/reference_server/ref_server_ehr_launch_85.rb '{wait_outputs.launch_uri}' '{wait_outputs.target_iss}'
60
+ action_description: Launch Inferno as a SMART app using patient 85 as the patient context
61
+
62
+ - state_description: Wait at test 2.2.04 OAuth server redirects client browser to app redirect URI
63
+ status: waiting
64
+ last_completed: 2.2.04
65
+ command: bundle exec ruby execution_scripts/reference_server/ref_server_authorize_launched_all_scopes.rb '{wait_outputs.authorization_url}'
66
+ action_description: Authorize all requested scopes for launched patient
67
+
68
+ - state_description: Finished Group 2 EHR Launch
69
+ status: done
70
+ last_completed: 2
71
+ start_run:
72
+ runnable: 3
73
+ action_description: Run Group 3 Backend Services
74
+
75
+ - state_description: Finished Group 3 Backend Services
76
+ status: done
77
+ last_completed: 3
78
+ start_run:
79
+ runnable: 4
80
+ action_description: Run Group 4 Token Introspection
81
+
82
+ - state_description: Wait at test 4.1.2.02 OAuth server redirects client browser to app redirect URI
83
+ status: waiting
84
+ last_completed: 4.1.2.02
85
+ command: bundle exec ruby execution_scripts/reference_server/ref_server_authorize_85_all_scopes.rb '{wait_outputs.authorization_url}'
86
+ action_description: Authorize patient 85
87
+
88
+ - state_description: Finished Group 4 Token Introspection
89
+ status: done
90
+ last_completed: 4
91
+ action: END_SCRIPT
92
+ action_description: Finished Script
93
+