DeleteRelation
Tests
| Test |
Duration |
Result |
| contactAdminUser_canNotDeleteRelatedRelation() |
1.365s |
passed |
| globalAdmin_withoutAssumedRole_canDeleteArbitraryRelation() |
1.352s |
passed |
| normalUser_canNotDeleteUnrelatedRelation() |
1.321s |
passed |
Standard output
ContextBasedTestWithCleanup.retrieveInitialTestData
globalAdmin_withoutAssumedRole_canDeleteArbitraryRelation(): TOTAL OBJECT COUNT (initial): 210 -> 210
toCleanup(class net.hostsharing.hsadminng.hs.office.relation.HsOfficeRelationRealEntity, a3d0adf2-74b8-484b-9a30-9fd6f8fc4ef8
ContextBasedTestWithCleanup.cleanupAndCheckCleanup
DELETING temporary HsOfficeRelationRealEntity#a3d0adf2-74b8-484b-9a30-9fd6f8fc4ef8 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, e2c418cc-3ea4-45e0-87a6-46fc7351ada1
2026-08-10T13:35:16.742Z WARN 368 --- [o-auto-1-exec-9] o.h.engine.jdbc.spi.SqlExceptionHelper : SQL Error: 0, SQLState: P0001
2026-08-10T13:35:16.743Z ERROR 368 --- [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 e2c418cc-3ea4-45e0-87a6-46fc7351ada1
Where: PL/pgSQL function hs_office.relation_instead_of_delete_tf() line 7 at RAISE
{
"timestamp": "2026-08-10 01:35:16",
"path": "",
"statusCode": 403,
"statusPhrase": "Forbidden",
"message": "ERROR: [403] Subject {bd3542d2-f0f8-57b3-84c2-0e79a8b165df} is not allowed to delete hs_office.relation uuid e2c418cc-3ea4-45e0-87a6-46fc7351ada1"
}
ContextBasedTestWithCleanup.cleanupAndCheckCleanup
DELETING temporary HsOfficeRelationRealEntity#e2c418cc-3ea4-45e0-87a6-46fc7351ada1 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, a149da49-5fcc-49e6-805b-73a326eccd7b
ContextBasedTestWithCleanup.cleanupAndCheckCleanup
DELETING temporary HsOfficeRelationRealEntity#a149da49-5fcc-49e6-805b-73a326eccd7b deleted 1 rows
normalUser_canNotDeleteUnrelatedRelation(): TOTAL OBJECT COUNT (after): 210 -> 210