Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create unique identifier for pended test wait continuation #15

Merged
merged 2 commits into from
Aug 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,17 @@ class PasUpdateNotificationTest < Inferno::Test
)

run do
token = SecureRandom.hex(32)
# rubocop:disable Layout/LineLength
wait(
identifier: 'pended',
identifier: token,
message: %(
Inferno has received a 'Pended' claim response indicating that a final decision
has not yet been made on the prior authorization request.

Please
**[click
here](#{Inferno::Application['base_url']}/custom/davinci_pas_server_suite_v201/resume_after_notification?use_case=pended)**
here](#{Inferno::Application['base_url']}/custom/davinci_pas_server_suite_v201/resume_after_notification?token=#{token})**
when the status of this claim has been finalized to inform Inferno to resume testing.

Future versions of this test will validate subscription-based notifications as
Expand Down
2 changes: 1 addition & 1 deletion lib/davinci_pas_test_kit/generated/v2.0.1/server_suite.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class ServerSuite < Inferno::TestSuite
]

resume_test_route :get, '/resume_after_notification' do |request|
request.query_parameters['use_case']
request.query_parameters['token']
end

fhir_resource_validator do
Expand Down
2 changes: 1 addition & 1 deletion lib/davinci_pas_test_kit/generator/templates/suite.rb.erb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ module DaVinciPASTestKit
]

resume_test_route :get, '/resume_after_notification' do |request|
request.query_parameters['use_case']
request.query_parameters['token']
end

fhir_resource_validator do
Expand Down
Loading