DeleteMembership
Tests
| Test |
Duration |
Result |
| globalAdmin_canDeleteArbitraryMembership() |
1.372s |
passed |
| normalUser_canNotDeleteUnrelatedMembership() |
1.363s |
passed |
| partnerAgentUser_canNotDeleteRelatedMembership() |
1.351s |
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-10T13:34:37.783Z WARN 368 --- [o-auto-1-exec-2] o.h.engine.jdbc.spi.SqlExceptionHelper : SQL Error: 0, SQLState: P0001
2026-08-10T13:34:37.785Z ERROR 368 --- [o-auto-1-exec-2] o.h.engine.jdbc.spi.SqlExceptionHelper : ERROR: [403] Subject {07adf1d5-837c-4e96-9ea4-bba55201b86c} is not allowed to delete hs_office.membership uuid bd1b9612-f654-4a61-9acc-da94e2c6d67d
Where: PL/pgSQL function hs_office.membership_instead_of_delete_tf() line 7 at RAISE
{
"timestamp": "2026-08-10 01:34:37",
"path": "",
"statusCode": 403,
"statusPhrase": "Forbidden",
"message": "ERROR: [403] Subject {07adf1d5-837c-4e96-9ea4-bba55201b86c} is not allowed to delete hs_office.membership uuid bd1b9612-f654-4a61-9acc-da94e2c6d67d"
}
ContextBasedTestWithCleanup.cleanupAndCheckCleanup
partnerAgentUser_canNotDeleteRelatedMembership(): TOTAL OBJECT COUNT (after): 210 -> 210