DeleteRelation
Tests
| Test |
Duration |
Result |
| contactAdminUser_canNotDeleteRelatedRelation() |
1.301s |
passed |
| globalAdmin_withoutAssumedRole_canDeleteArbitraryRelation() |
1.364s |
passed |
| normalUser_canNotDeleteUnrelatedRelation() |
1.286s |
passed |
Standard output
ContextBasedTestWithCleanup.retrieveInitialTestData
globalAdmin_withoutAssumedRole_canDeleteArbitraryRelation(): TOTAL OBJECT COUNT (initial): 210 -> 210
toCleanup(class net.hostsharing.hsadminng.hs.office.relation.HsOfficeRelationRealEntity, 85f14b4d-ad04-4e50-9379-aada0ec3284a
ContextBasedTestWithCleanup.cleanupAndCheckCleanup
DELETING temporary HsOfficeRelationRealEntity#85f14b4d-ad04-4e50-9379-aada0ec3284a 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, a47dada5-325c-4532-9a5d-674572511e9f
2026-08-10T16:39:44.459Z WARN 371 --- [o-auto-1-exec-9] o.h.engine.jdbc.spi.SqlExceptionHelper : SQL Error: 0, SQLState: P0001
2026-08-10T16:39:44.459Z ERROR 371 --- [o-auto-1-exec-9] o.h.engine.jdbc.spi.SqlExceptionHelper : ERROR: [403] Subject {bd3542d2-f0f8-57b3-84c2-0e79a8b165df} is not allowed to delete hs_office.relation uuid a47dada5-325c-4532-9a5d-674572511e9f
Where: PL/pgSQL function hs_office.relation_instead_of_delete_tf() line 7 at RAISE
{
"timestamp": "2026-08-10 04:39:44",
"path": "",
"statusCode": 403,
"statusPhrase": "Forbidden",
"message": "ERROR: [403] Subject {bd3542d2-f0f8-57b3-84c2-0e79a8b165df} is not allowed to delete hs_office.relation uuid a47dada5-325c-4532-9a5d-674572511e9f"
}
ContextBasedTestWithCleanup.cleanupAndCheckCleanup
DELETING temporary HsOfficeRelationRealEntity#a47dada5-325c-4532-9a5d-674572511e9f 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, 445d3fb9-5d3e-49bc-a79e-5dde41ed1c96
ContextBasedTestWithCleanup.cleanupAndCheckCleanup
DELETING temporary HsOfficeRelationRealEntity#445d3fb9-5d3e-49bc-a79e-5dde41ed1c96 deleted 1 rows
normalUser_canNotDeleteUnrelatedRelation(): TOTAL OBJECT COUNT (after): 210 -> 210