Skip to content
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

Feature/hakh11 nrl 1002 consumer integration tests #710

Open
wants to merge 10 commits into
base: develop
Choose a base branch
from

Conversation

hamzakhan24-nhs
Copy link
Contributor

-Refactored and added scenarios to two feature files:
SearchPostDocumentReference-success
SearchDocumentReference-success
-Added "custom tag" MakeFile command to enable selective scenario runs

Copy link

🚀 PR environment successfully deployed.
Commit Hash: 4aa4ab326d2520d7df8d4ee18717c860d5e931d3
URL: https://nrl1002-de726f.api.record-locator.dev.national.nhs.uk/

When consumer 'RX898' searches for DocumentReferences with parameters:
| parameter | value |
| subject | 9278693472 |
| custodian | 02V |
Copy link
Contributor

Choose a reason for hiding this comment

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

As far as I can tell, tests a search using both NHS# + custodian filters. If there is only one pointer and it has a matching NHS# + custodian, in theory the scenario would pass even if either the subject filter or the custodian filter were not working. It might be good to additionally set up a few that we would expect to be filtered out: one with matching custodian but wrong NHS number, and vice versa.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

have added two new scenarios which isolate each filter:

Search for a DocumentReference by NHS Number and Custodian where NHS number filter matches one pointer from result set

Search for a DocumentReference by NHS Number and Custodian where Custodian filter matches one pointer from result set

| http://snomed.info/sct | 861421000000109 |
And a DocumentReference resource exists with values:
| property | value |
| id | DK94-111-DeleteDocRefTest1 |
Copy link
Contributor

Choose a reason for hiding this comment

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

is this a deletion test, if so does it belong in the delete feature? I see that it searches after the deletion so it's more of a combined scenario, this could be reflected in the scenario title if it lives here (it's slightly more complex than simply searching by NHS number where there never were any pointers for that patient)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Perhaps the deletion is not required, but the main goal of this test is to setup an NHS number which has 0 pointers, so I figured one way to do that is to create a pointer for an NHS number and then delete that pointer. May not be necessary.

--define="env=$(TF_WORKSPACE_NAME)" \
--define="account_name=$(ENV)" \
--define="use_shared_resources=${USE_SHARED_RESOURCES}" \
$(FEATURE_TEST_ARGS)
Copy link
Contributor

Choose a reason for hiding this comment

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

! this seems very handy, could you add a line to the readme specifying this option alongside where it mentions the full integration test run?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Readme now updated 👍

Copy link

🚀 PR environment successfully deployed.
Commit Hash: b6b69b7860d3cf6370c714ab00da7ad98c85049f
URL: https://nrl1002-de726f.api.record-locator.dev.national.nhs.uk/

Copy link

sonarcloud bot commented Sep 25, 2024

Copy link

🚀 PR environment successfully deployed.
Commit Hash: 2393799f4a3047040af6ad7ef49c7c57e096993d
URL: https://nrl1002-de726f.api.record-locator.dev.national.nhs.uk/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants