Skip to content

Commit

Permalink
disable test for unimplemented feature
Browse files Browse the repository at this point in the history
  • Loading branch information
timcoffman committed Oct 1, 2024
1 parent 8843b25 commit f38ee2b
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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() ;
Expand All @@ -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() ;
});
Expand Down

0 comments on commit f38ee2b

Please sign in to comment.