Skip to content

Commit

Permalink
Fix: Made Carin Wait Test ID Unique (#57)
Browse files Browse the repository at this point in the history
* made carin wait test id unique

Signed-off-by: Vanessa Fotso <vfotso@mitre.org>

* fix scpec

Signed-off-by: Vanessa Fotso <vfotso@mitre.org>

---------

Signed-off-by: Vanessa Fotso <vfotso@mitre.org>
  • Loading branch information
vanessuniq authored Dec 9, 2024
1 parent 8bb6515 commit 7cf6d17
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def self.test_resumes?(test)
[US Core Client CapabilityStatement](https://hl7.org/fhir/us/core/STU3.1.1/CapabilityStatement-us-core-client.html).
)

test from: :initial_wait_test
test from: :c4bb_v200_initial_wait_test
end

group do
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module CarinForBlueButtonTestKit
class C4BBClientInitialWaitTest < Inferno::Test
include URLs

id :initial_wait_test
id :c4bb_v200_initial_wait_test
title 'Client makes claims data and required search parameter requests'
description %(
This test will receive claims data requests and search requests until the user confirms they are done.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
include RequestHelpers

let(:suite) { Inferno::Repositories::TestSuites.new.find('c4bb_v200_client') }
let(:test) { Inferno::Repositories::Tests.new.find('initial_wait_test') }
let(:test) { Inferno::Repositories::Tests.new.find('c4bb_v200_initial_wait_test') }
let(:session_data_repo) { Inferno::Repositories::SessionData.new }
let(:results_repo) { Inferno::Repositories::Results.new }
let(:test_session) { repo_create(:test_session, test_suite_id: 'c4bb_v200_client') }
Expand Down Expand Up @@ -78,10 +78,10 @@ def run(runnable, inputs = {})
allow(test).to receive_messages(suite:, parent: suite)

patient_fhir_api_request = stub_request(:get, server_patient_api_request)
.with(
headers: { 'Authorization' => "Bearer #{access_token}" }
)
.to_return(status: 200, body: c4bb_patient_search_bundle.to_json)
.with(
headers: { 'Authorization' => "Bearer #{access_token}" }
)
.to_return(status: 200, body: c4bb_patient_search_bundle.to_json)

result = run(test, access_token:)

Expand All @@ -106,10 +106,10 @@ def run(runnable, inputs = {})
allow(test).to receive_messages(suite:, parent: suite)

eob_fhir_include_search = stub_request(:get, server_eob_include_search)
.with(
headers: { 'Authorization' => "Bearer #{access_token}" }
)
.to_return(status: 200, body: c4bb_eob_include_bundle.to_json)
.with(
headers: { 'Authorization' => "Bearer #{access_token}" }
)
.to_return(status: 200, body: c4bb_eob_include_bundle.to_json)

result = run(test, access_token:)

Expand Down Expand Up @@ -170,10 +170,10 @@ def run(runnable, inputs = {})
allow(test).to receive_messages(suite:, parent: suite)

patient_fhir_api_request = stub_request(:get, server_patient_api_request)
.with(
headers: { 'Authorization' => "Bearer #{access_token}" }
)
.to_return(status: 200, body: c4bb_patient_search_bundle.to_json)
.with(
headers: { 'Authorization' => "Bearer #{access_token}" }
)
.to_return(status: 200, body: c4bb_patient_search_bundle.to_json)

result = run(test, access_token:)

Expand All @@ -199,10 +199,10 @@ def run(runnable, inputs = {})
allow(test).to receive_messages(suite:, parent: suite)

patient_fhir_api_request = stub_request(:get, server_patient_api_request)
.with(
headers: { 'Authorization' => "Bearer #{access_token}" }
)
.to_return(status: 404, body: c4bb_patient_search_bundle.to_json)
.with(
headers: { 'Authorization' => "Bearer #{access_token}" }
)
.to_return(status: 404, body: c4bb_patient_search_bundle.to_json)

result = run(test, access_token:)

Expand Down

0 comments on commit 7cf6d17

Please sign in to comment.