-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated Supported Payer Endpoint to properly perform requests
-Added test for supported payer
- Loading branch information
1 parent
6a7a850
commit 31cec0c
Showing
6 changed files
with
109 additions
and
26 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
lib/davinci_dtr_test_kit/client_groups/light_ehr/dtr_light_ehr_supported_endpoints_group.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
require_relative 'dtr_light_ehr_supported_payer_endpoint_test' | ||
|
||
module DaVinciDTRTestKit | ||
class DtrLightEhrSupportedEndpointsGroup < Inferno::TestGroup | ||
id :dtr_light_ehr_supported_endpoints | ||
title 'Supported Endpoints' | ||
description %( | ||
Demonstrate the ability to access supported endpoints | ||
) | ||
run_as_group | ||
|
||
test from: :dtr_light_ehr_supported_payer_endpoint | ||
end | ||
end |
42 changes: 42 additions & 0 deletions
42
...vinci_dtr_test_kit/client_groups/light_ehr/dtr_light_ehr_supported_payer_endpoint_test.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
require_relative '../../urls' | ||
|
||
module DaVinciDTRTestKit | ||
class DtrLightEhrSupportedPayerEndpointTest < Inferno::Test | ||
include URLs | ||
id :dtr_light_ehr_supported_payer_endpoint | ||
title 'Client can retrieve payers from supported payer endpoint' | ||
description %( | ||
Inferno, will wait for a request to return the payer details from the supported endpoint. | ||
) | ||
input :access_token, | ||
description: %( | ||
`Bearer` token that the client under test will send in the | ||
`Authorization` header of each HTTP request to Inferno. Inferno | ||
will look for this value to associate requests with this session. | ||
) | ||
|
||
run do | ||
wait( | ||
identifier: access_token, | ||
message: %( | ||
### Supported Payer Endpoint | ||
Inferno will wait for the Light EHR to to make a GET request to | ||
`#{supported_payer_url}` | ||
Inferno will return the static payers json details | ||
### Request Identification | ||
In order to identify requests for this session, Inferno will look for | ||
an `Authorization` header with value: | ||
``` | ||
Bearer #{access_token} | ||
``` | ||
) | ||
) | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
57 changes: 32 additions & 25 deletions
57
lib/davinci_dtr_test_kit/endpoints/mock_payer/light_ehr_supported_payer_endpoint.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters