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,81 @@
1
+ sessions:
2
+ - suite: smart_stu2
3
+ preset: smart_stu2_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
+
23
+
24
+ steps:
25
+ - state_description: Session Created
26
+ status: created
27
+ start_run:
28
+ runnable: 1
29
+ action_description: Run Group 1 Standalone Launch
30
+
31
+ - state_description: Wait at test 1.2.02 OAuth server redirects client browser to app redirect URI
32
+ status: waiting
33
+ last_completed: 1.2.02
34
+ command: bundle exec ruby execution_scripts/reference_server/ref_server_authorize_85_all_scopes.rb '{wait_outputs.authorization_url}'
35
+ action_description: Authorize patient 85
36
+
37
+ - state_description: Finished Group 1 Standalone Launch
38
+ status: done
39
+ last_completed: 1
40
+ start_run:
41
+ runnable: 2
42
+ action_description: Run Group 2 EHR Launch
43
+
44
+ - state_description: Wait at test 2.2.01 EHR server redirects client browser to Inferno app launch URI
45
+ status: waiting
46
+ last_completed: 2.2.01
47
+ command: bundle exec ruby execution_scripts/reference_server/ref_server_ehr_launch_85.rb '{wait_outputs.launch_uri}' '{wait_outputs.target_iss}'
48
+ action_description: Launch Inferno as a SMART app using patient 85 as the patient context
49
+
50
+ - state_description: Wait at test 2.2.04 OAuth server redirects client browser to app redirect URI
51
+ status: waiting
52
+ last_completed: 2.2.04
53
+ command: bundle exec ruby execution_scripts/reference_server/ref_server_authorize_launched_all_scopes.rb '{wait_outputs.authorization_url}'
54
+ action_description: Authorize all requested scopes for launched patient
55
+
56
+ - state_description: Finished Group 2 EHR Launch
57
+ status: done
58
+ last_completed: 2
59
+ start_run:
60
+ runnable: 3
61
+ action_description: Run Group 3 Backend Services
62
+
63
+ - state_description: Finished Group 3 Backend Services
64
+ status: done
65
+ last_completed: 3
66
+ start_run:
67
+ runnable: 4
68
+ action_description: Run Group 4 Token Introspection
69
+
70
+ - state_description: Wait at test 4.1.2.02 OAuth server redirects client browser to app redirect URI
71
+ status: waiting
72
+ last_completed: 4.1.2.02
73
+ command: bundle exec ruby execution_scripts/reference_server/ref_server_authorize_85_all_scopes.rb '{wait_outputs.authorization_url}'
74
+ action_description: Authorize patient 85
75
+
76
+ - state_description: Finished Group 4 Token Introspection
77
+ status: done
78
+ last_completed: 4
79
+ action: END_SCRIPT
80
+ action_description: Finished Script
81
+