From f38ee2bb5f3db17f3e585864afdb898705ae8168 Mon Sep 17 00:00:00 2001 From: Tim Coffman <234244+timcoffman@users.noreply.github.com> Date: Tue, 1 Oct 2024 18:59:42 -0500 Subject: [PATCH] disable test for unimplemented feature --- .../edu/ohsu/cmp/ecp/sds/PatientAppClientExpungeTest.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/test/java/edu/ohsu/cmp/ecp/sds/PatientAppClientExpungeTest.java b/src/test/java/edu/ohsu/cmp/ecp/sds/PatientAppClientExpungeTest.java index 52b6c38..7f346c4 100644 --- a/src/test/java/edu/ohsu/cmp/ecp/sds/PatientAppClientExpungeTest.java +++ b/src/test/java/edu/ohsu/cmp/ecp/sds/PatientAppClientExpungeTest.java @@ -120,6 +120,7 @@ void canSoftDeleteAndPurgeNonLocalResourcesFromAuthorizedPartitionWhenLocalParti } @Test + @Disabled("not yet implemented: prevent Linkage deletion that would create orphan resources") void cannotSoftDeleteNonLocalResourcesFromAuthorizedPartitionWhenLocalPartitionIsPopulated() { foreignPartition1.operations().patient().create() ; localPartition.operations().patient().create() ; @@ -128,6 +129,12 @@ void cannotSoftDeleteNonLocalResourcesFromAuthorizedPartitionWhenLocalPartitionI localPartition.assertClaimed() ; localPartition.linkages().assertPresentAndLinkedTo( authorizedPatientId ) ; + /* + * Deleting the Linkage between authorized partition and foreign partition + * would leave behind a resource that the current user + * will no longer be able to read/write + * The application does not yet have a way to prevent this. + */ assertThrows( Throwable.class, () -> { foreignPartition1.operations().patient().deleteCascade() ; });