Fine-grained scopes (9.14) tests fail if OperationOutcomes are present #552
Labels
bug
This is a bug in Inferno
g10-test-kit
This issue affects onc-certification-g10-test-kit
smart-app-launch-test-kit
This issue affects smart-app-launch-test-kit
v6.0.2
Release v6.0.2
Hello,
The 9.14 tests that check whether data is filtered correctly appear to not handle OperationOutcomes.
From a private Inferno deployment (running g10 test kit v6.0.0):
This FHIR ID comes from an OperationOutcome:
If I follow the code correctly, that's because the test calls
fetch_all_bundled_resources
, which returns all resource types present in the Bundle:https://github.com/inferno-framework/us-core-test-kit/blob/14dd3bf3035dc95d893b44d081ef1368e26549dd/lib/us_core_test_kit/granular_scope_search_test.rb#L31
However,
mismatched_resource_ids
only throws out resources that don't match a granular scope for the resource under test. So, OperationOutcomes (or any other resource beyond the one under test) will never be thrown out.https://github.com/inferno-framework/us-core-test-kit/blob/14dd3bf3035dc95d893b44d081ef1368e26549dd/lib/us_core_test_kit/granular_scope_search_test.rb#L89C5-L97C8
(if I follow right, this is technically an issue in
us-core-test-kit
code, but I assume it's preferred to post these here)The text was updated successfully, but these errors were encountered: