DeleteRelation
Tests
| Test |
Duration |
Result |
| contactAdminUser_canNotDeleteRelatedRelation() |
1.203s |
passed |
| globalAdmin_withoutAssumedRole_canDeleteArbitraryRelation() |
1.462s |
passed |
| normalUser_canNotDeleteUnrelatedRelation() |
1.183s |
passed |
Standard output
ContextBasedTestWithCleanup.retrieveInitialTestData
globalAdmin_withoutAssumedRole_canDeleteArbitraryRelation(): TOTAL OBJECT COUNT (initial): 210 -> 210
toCleanup(class net.hostsharing.hsadminng.hs.office.relation.HsOfficeRelationRealEntity, b7c60bbc-eb16-44b4-b317-a579437cda76
ContextBasedTestWithCleanup.cleanupAndCheckCleanup
DELETING temporary HsOfficeRelationRealEntity#b7c60bbc-eb16-44b4-b317-a579437cda76 deleted 0 rows
globalAdmin_withoutAssumedRole_canDeleteArbitraryRelation(): TOTAL OBJECT COUNT (after): 210 -> 210
ContextBasedTestWithCleanup.retrieveInitialTestData
contactAdminUser_canNotDeleteRelatedRelation(): TOTAL OBJECT COUNT (initial): 210 -> 210
toCleanup(class net.hostsharing.hsadminng.hs.office.relation.HsOfficeRelationRealEntity, c5522d78-d36e-4efe-8804-573e71a070cd
2026-08-10T16:31:34.463Z WARN 374 --- [o-auto-1-exec-7] o.h.engine.jdbc.spi.SqlExceptionHelper : SQL Error: 0, SQLState: P0001
2026-08-10T16:31:34.463Z ERROR 374 --- [o-auto-1-exec-7] o.h.engine.jdbc.spi.SqlExceptionHelper : ERROR: [403] Subject {bd3542d2-f0f8-57b3-84c2-0e79a8b165df} is not allowed to delete hs_office.relation uuid c5522d78-d36e-4efe-8804-573e71a070cd
Where: PL/pgSQL function hs_office.relation_instead_of_delete_tf() line 7 at RAISE
{
"timestamp": "2026-08-10 04:31:34",
"path": "",
"statusCode": 403,
"statusPhrase": "Forbidden",
"message": "ERROR: [403] Subject {bd3542d2-f0f8-57b3-84c2-0e79a8b165df} is not allowed to delete hs_office.relation uuid c5522d78-d36e-4efe-8804-573e71a070cd"
}
ContextBasedTestWithCleanup.cleanupAndCheckCleanup
DELETING temporary HsOfficeRelationRealEntity#c5522d78-d36e-4efe-8804-573e71a070cd deleted 1 rows
contactAdminUser_canNotDeleteRelatedRelation(): TOTAL OBJECT COUNT (after): 210 -> 210
ContextBasedTestWithCleanup.retrieveInitialTestData
normalUser_canNotDeleteUnrelatedRelation(): TOTAL OBJECT COUNT (initial): 210 -> 210
toCleanup(class net.hostsharing.hsadminng.hs.office.relation.HsOfficeRelationRealEntity, 870351c8-5005-4f29-8c53-48a0225d14b5
ContextBasedTestWithCleanup.cleanupAndCheckCleanup
DELETING temporary HsOfficeRelationRealEntity#870351c8-5005-4f29-8c53-48a0225d14b5 deleted 1 rows
normalUser_canNotDeleteUnrelatedRelation(): TOTAL OBJECT COUNT (after): 210 -> 210