From f3a02f00cde1947205b5165039b53fe5911d0d99 Mon Sep 17 00:00:00 2001 From: Karl Naden Date: Wed, 7 Aug 2024 11:17:22 -0400 Subject: [PATCH 1/2] create unique identifier for pended test wait continuation --- .../notification/pas_subscription_notification_test.rb | 5 +++-- lib/davinci_pas_test_kit/generated/v2.0.1/server_suite.rb | 2 +- lib/davinci_pas_test_kit/generator/templates/suite.rb.erb | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/davinci_pas_test_kit/custom_groups/v2.0.1/notification/pas_subscription_notification_test.rb b/lib/davinci_pas_test_kit/custom_groups/v2.0.1/notification/pas_subscription_notification_test.rb index 45698d6..d5192c9 100644 --- a/lib/davinci_pas_test_kit/custom_groups/v2.0.1/notification/pas_subscription_notification_test.rb +++ b/lib/davinci_pas_test_kit/custom_groups/v2.0.1/notification/pas_subscription_notification_test.rb @@ -15,16 +15,17 @@ class PasUpdateNotificationTest < Inferno::Test ) run do + identifier = SecureRandom.hex(32) # rubocop:disable Layout/LineLength wait( - identifier: 'pended', + identifier:, 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=#{identifier})** 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 diff --git a/lib/davinci_pas_test_kit/generated/v2.0.1/server_suite.rb b/lib/davinci_pas_test_kit/generated/v2.0.1/server_suite.rb index 1a87b0f..8a90c1c 100644 --- a/lib/davinci_pas_test_kit/generated/v2.0.1/server_suite.rb +++ b/lib/davinci_pas_test_kit/generated/v2.0.1/server_suite.rb @@ -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 diff --git a/lib/davinci_pas_test_kit/generator/templates/suite.rb.erb b/lib/davinci_pas_test_kit/generator/templates/suite.rb.erb index 6128141..87fff25 100644 --- a/lib/davinci_pas_test_kit/generator/templates/suite.rb.erb +++ b/lib/davinci_pas_test_kit/generator/templates/suite.rb.erb @@ -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 From fd4009f2b762ae19a91ed733873044d9179daaa6 Mon Sep 17 00:00:00 2001 From: Karl Naden Date: Wed, 7 Aug 2024 12:03:43 -0400 Subject: [PATCH 2/2] consistent naming --- .../notification/pas_subscription_notification_test.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/davinci_pas_test_kit/custom_groups/v2.0.1/notification/pas_subscription_notification_test.rb b/lib/davinci_pas_test_kit/custom_groups/v2.0.1/notification/pas_subscription_notification_test.rb index d5192c9..17ac625 100644 --- a/lib/davinci_pas_test_kit/custom_groups/v2.0.1/notification/pas_subscription_notification_test.rb +++ b/lib/davinci_pas_test_kit/custom_groups/v2.0.1/notification/pas_subscription_notification_test.rb @@ -15,17 +15,17 @@ class PasUpdateNotificationTest < Inferno::Test ) run do - identifier = SecureRandom.hex(32) + token = SecureRandom.hex(32) # rubocop:disable Layout/LineLength wait( - identifier:, + 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?token=#{identifier})** + 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