Stream: dotnet
Topic: Failing tests
Michele Mottini (Mar 12 2019 at 17:33):
I am working on a fork of the of the core library, and a number of unit tests are failing - seems to be due to problems on the remote server, but not 100% sure ... should they work? E.g. InvokeTestPatientGetEverythingAsync() failing with 'Operation was unsuccessful because of a client error (NotAcceptable).'
Michele Mottini (Mar 12 2019 at 17:40):
Also: FhirClientTest.Search() fails with Encountered unknown element 'fhir_comments' while parsing
- is that correct? Or did I break something in fhir_comments handling?
Kenneth Myhra (Mar 13 2019 at 08:51):
See this issue https://github.com/FirelyTeam/fhir-net-api/issues/901 for the fhir_comments part.
If you for example are running against this endpoint it seems that https://api.hspconsortium.org/rpineda/open requires authentication at the moment. Getting this error if I try to browse to https://api.hspconsortium.org/rpineda/open/Patient/SMART-1288992: "Full authentication is required to access this resourceunauthorized".
I usually add this filter '-Trait:IntegrationTest' to my Test Explorer to leave those tests out
Michele Mottini (Mar 13 2019 at 13:43):
Thanks Kenneth. I am getting a different error when there is a fhir_comments element - so probably I broke something (but not super-important considering that is no longer in the specs)
Kenneth Myhra (Mar 13 2019 at 14:17):
Setting ParserSettings.AcceptUnknownMembers to true will circumvent that error
client.ParserSettings = new Hl7.Fhir.Serialization.ParserSettings() { AcceptUnknownMembers = true };
Brian Postlethwaite (Mar 13 2019 at 19:50):
For those tests would be good to skip the specific test files rather than disable that (unless there are a huge number of them)
Brian Postlethwaite (Mar 13 2019 at 19:50):
(But I guess if that's an external server, a little harder to do ;) )
Kenneth Myhra (Mar 14 2019 at 09:42):
Yep, that was an external server http://sqlonfhir-dstu2.azurewebsites.net/fhir to be precise ;)
Brian Postlethwaite (Mar 14 2019 at 22:34):
So it's probably examples from the spec loaded in my test server.
Last updated: Apr 12 2022 at 19:14 UTC