DeleteMembership

3

tests

0

failures

0

ignored

3.773s

duration

100%

successful

Tests

Test Duration Result
globalAdmin_canDeleteArbitraryMembership() 1.192s passed
normalUser_canNotDeleteUnrelatedMembership() 1.296s passed
partnerAgentUser_canNotDeleteRelatedMembership() 1.285s passed

Standard output

ContextBasedTestWithCleanup.retrieveInitialTestData
normalUser_canNotDeleteUnrelatedMembership(): TOTAL OBJECT COUNT (initial): 210 -> 210

ContextBasedTestWithCleanup.cleanupAndCheckCleanup
normalUser_canNotDeleteUnrelatedMembership(): TOTAL OBJECT COUNT (after): 210 -> 210
ContextBasedTestWithCleanup.retrieveInitialTestData
globalAdmin_canDeleteArbitraryMembership(): TOTAL OBJECT COUNT (initial): 210 -> 210

ContextBasedTestWithCleanup.cleanupAndCheckCleanup
globalAdmin_canDeleteArbitraryMembership(): TOTAL OBJECT COUNT (after): 210 -> 210
ContextBasedTestWithCleanup.retrieveInitialTestData
partnerAgentUser_canNotDeleteRelatedMembership(): TOTAL OBJECT COUNT (initial): 210 -> 210
2026-08-10T16:30:56.425Z  WARN 374 --- [o-auto-1-exec-3] o.h.engine.jdbc.spi.SqlExceptionHelper   : SQL Error: 0, SQLState: P0001
2026-08-10T16:30:56.426Z ERROR 374 --- [o-auto-1-exec-3] o.h.engine.jdbc.spi.SqlExceptionHelper   : ERROR: [403] Subject {6694849d-5b90-4049-8ed7-0867dc19adfa} is not allowed to delete hs_office.membership uuid b74f4368-6a15-4e2f-a973-8319909d3c5d
  Where: PL/pgSQL function hs_office.membership_instead_of_delete_tf() line 7 at RAISE
{
    "timestamp": "2026-08-10 04:30:56",
    "path": "",
    "statusCode": 403,
    "statusPhrase": "Forbidden",
    "message": "ERROR: [403] Subject {6694849d-5b90-4049-8ed7-0867dc19adfa} is not allowed to delete hs_office.membership uuid b74f4368-6a15-4e2f-a973-8319909d3c5d"
}
ContextBasedTestWithCleanup.cleanupAndCheckCleanup
partnerAgentUser_canNotDeleteRelatedMembership(): TOTAL OBJECT COUNT (after): 210 -> 210