fhir-crucible / crucible

🔥 Crucible web application for testing FHIR servers
77 stars 25 forks source link

Suite "Argonaut Sprint4 Test" in group "Argonaut Phase 1" does no setup #221

Open jorge-delagarza opened 7 years ago

jorge-delagarza commented 7 years ago

This is one of the suites that requires Crucible to authenticate to the FHIR server using the SMART on FHIR authorization workflow. So I entered the client ID and client secret that I have for the Crucible app on my authentication server and clicked “Authorize App”. Then my auth server’s authentication page comes up, I enter some credentials, then my auth server asks me to approve the permissions the app is requesting and it asks me for a patient ID. I enter the ID of a patient resource on my FHIR server, and all the tests in this suite use that patient.

I was getting some errors in this suite because, for example, Crucible will first query for MedicationOrders linked to that patient: GET https://argonaut.intersystems.com/fhir/MedicationOrder?patient=f001

Then it will look at those results and query for one of the MedicationOrders again by code: GET https://argonaut.intersystems.com/fhir/MedicationOrder?code=http://snomed.info/sct%7C320442002

But if there are no MedicationOrders linked to that patient, or if there are but they don’t have a code, the test fails. I was able to pass this test and others in the suite by creating the resources that Crucible is looking for, but it seems like Crucible should be doing its own setup.

jorge-delagarza commented 7 years ago

Same thing for suite "Argonaut Resprint2 Test" in group "Argonaut"

jorge-delagarza commented 7 years ago

And for "Argonaut Resprint3 Test"