DeleteRelation
Tests
| Test |
Duration |
Result |
| contactAdminUser_canNotDeleteRelatedRelation() |
1.267s |
passed |
| globalAdmin_withoutAssumedRole_canDeleteArbitraryRelation() |
1.352s |
passed |
| normalUser_canNotDeleteUnrelatedRelation() |
1.325s |
passed |
Standard output
ContextBasedTestWithCleanup.retrieveInitialTestData
globalAdmin_withoutAssumedRole_canDeleteArbitraryRelation(): TOTAL OBJECT COUNT (initial): 210 -> 210
toCleanup(class net.hostsharing.hsadminng.hs.office.relation.HsOfficeRelationRealEntity, f07e6b44-3f91-4b90-97be-9c3bc9a8ed9e
ContextBasedTestWithCleanup.cleanupAndCheckCleanup
DELETING temporary HsOfficeRelationRealEntity#f07e6b44-3f91-4b90-97be-9c3bc9a8ed9e 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, 9f7ab89f-13fd-4597-a944-df49ed99a9c2
2026-08-10T15:05:51.133Z WARN 373 --- [o-auto-1-exec-9] o.h.engine.jdbc.spi.SqlExceptionHelper : SQL Error: 0, SQLState: P0001
2026-08-10T15:05:51.133Z ERROR 373 --- [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 9f7ab89f-13fd-4597-a944-df49ed99a9c2
Where: PL/pgSQL function hs_office.relation_instead_of_delete_tf() line 7 at RAISE
{
"timestamp": "2026-08-10 03:05:51",
"path": "",
"statusCode": 403,
"statusPhrase": "Forbidden",
"message": "ERROR: [403] Subject {bd3542d2-f0f8-57b3-84c2-0e79a8b165df} is not allowed to delete hs_office.relation uuid 9f7ab89f-13fd-4597-a944-df49ed99a9c2"
}
ContextBasedTestWithCleanup.cleanupAndCheckCleanup
DELETING temporary HsOfficeRelationRealEntity#9f7ab89f-13fd-4597-a944-df49ed99a9c2 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, 240a6020-5262-44c8-8a87-ef4e7e54afb3
ContextBasedTestWithCleanup.cleanupAndCheckCleanup
DELETING temporary HsOfficeRelationRealEntity#240a6020-5262-44c8-8a87-ef4e7e54afb3 deleted 1 rows
normalUser_canNotDeleteUnrelatedRelation(): TOTAL OBJECT COUNT (after): 210 -> 210