Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

fix: Fix Implentation guide integration test #467

Merged
merged 2 commits into from
Oct 1, 2021

Conversation

nguyen102
Copy link
Contributor

Issue #, if available:

Description of changes:
In the IG test we're making a request to https://www.hl7.org/fhir/us/core/STU3.1.1/CapabilityStatement-us-core-server.json. We're comparing our Cap Statement with the official FHIR Cap statement. Unfortunately the SSL cert at that domain has expired. The fix in this PR allows us to make a request to that URL even though the SSL cert on that domain has expired.

Checklist:

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Copy link
Contributor

@ssvegaraju ssvegaraju left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can the security warning be dismissed?

`https://www.hl7.org/fhir/us/core/${usCoreVersion}/CapabilityStatement-us-core-server.json`,
{
httpsAgent: new https.Agent({
rejectUnauthorized: false,
Copy link
Contributor

@carvantes carvantes Sep 30, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's probably better to download the capability statement from https://www.hl7.org/fhir/us/core/STU3.1.1/CapabilityStatement-us-core-server.json and commit the file as part of the integ tests code. That gets rid of any other transient issue (i.e. www.hl7.org is down) and the json files are not that big.

Plus, disabling certificate validation is an odd choice that will be flagged by any security scan. (CodeQL already flagged it). We could dismiss it as "used in tests" but that's less than ideal

@github-actions github-actions bot added size/xl and removed size/s labels Oct 1, 2021
@nguyen102 nguyen102 merged commit 421f1db into develop Oct 1, 2021
@nguyen102 nguyen102 deleted the fix-ig-integration-test branch October 1, 2021 16:07
carvantes pushed a commit that referenced this pull request Oct 1, 2021
* Update to use downloaded JSON

Co-authored-by: Tim Nguyen <[email protected]>
carvantes added a commit that referenced this pull request Oct 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants