Closed liammoat closed 3 months ago
PdsServiceTests has a method which deletes Patient resources from the Fhir Service. By default, this operation is a soft delete.
PdsServiceTests
Patient
The remaining "soft" copy of the resource prevents subsequent tests from running successfully - due to the 410 GONE Http result.
This PR updates the CleanFhirStore to "hard" delete the resource, using the hardDelete query parameters:
CleanFhirStore
hardDelete
Patient/9000000025?hardDelete=true
Subsequent requests for "9000000025" will now result in a 404:
NOTE: This only affects the Integration.Tests project.
Integration.Tests
@johncollinson2001, might be worth capturing a PBI to update the CleanFhirStore method to use the $bulk-delete operation. This PR is to get subsequent tests working, but the operation is still slow running.
$bulk-delete
PdsServiceTests
has a method which deletesPatient
resources from the Fhir Service. By default, this operation is a soft delete.The remaining "soft" copy of the resource prevents subsequent tests from running successfully - due to the 410 GONE Http result.
This PR updates the
CleanFhirStore
to "hard" delete the resource, using thehardDelete
query parameters:Patient/9000000025?hardDelete=true
Subsequent requests for "9000000025" will now result in a 404: