-
Notifications
You must be signed in to change notification settings - Fork 0
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
FI-3166: Step 1 solution upgrade #3
Conversation
ed2ae26
to
d98ac7a
Compare
input :credentials, | ||
title: 'OAuth Credentials', | ||
type: :oauth_credentials, | ||
optional: true | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we want to remove this credentials input and just have the access_token input instead, since the tutorial is explaining how to add the access token input. Another option is to update the tutorial to add a oauth input rather than the bearer token input, but that probably is not necessary
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Decided to leave for now and create separate task!
# All FHIR requests in this suite will use this FHIR client | ||
fhir_client do | ||
url :url | ||
oauth_credentials :credentials |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You would need to remove this if we got rid of the oauth_credentials input
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh wait just noticed the spec tests are failing, they are all skipping. They need to pass in the access token input
@@ -79,13 +98,13 @@ def run(runnable, inputs = {}) | |||
response_body: resource.to_json | |||
) | |||
|
|||
result = run(test) | |||
result = run(test, url: url) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since the access token input is required, you have to pass in that input as well in all the spec tests so that the test does not skip
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
Summary
This PR updates the Inferno template version in step-1-solution branch. It includes the solution to step-1 of the tutorial.
Testing
Run locally with Docker:
./run.sh
in this repositoryhttp://localhost
https://inferno.healthit.gov/reference-server/r4
SAMPLE_TOKEN
85
Also run with Ruby.