ForeignAccountAccess

3

tests

0

failures

0

ignored

4.748s

duration

100%

successful

Tests

Test Duration Result
normalUser_canNotDeleteForeignAccount() 1.484s passed
normalUser_canNotGetForeignAccountByUuid() 1.749s passed
normalUser_canNotListAccountsOfForeignPerson() 1.515s passed

Standard output

2026-08-10T13:33:10.859Z  INFO 368 --- [    Test worker] t.c.s.AnnotationConfigContextLoaderUtils : Could not detect default configuration classes for test class [net.hostsharing.hsadminng.hs.accounts.HsAccountControllerAcceptanceTest$ForeignAccountAccess]: ForeignAccountAccess does not declare any static, non-private, non-final, nested classes annotated with @Configuration.
2026-08-10T13:33:10.862Z  INFO 368 --- [    Test worker] .b.t.c.SpringBootTestContextBootstrapper : Found @SpringBootConfiguration net.hostsharing.hsadminng.HsadminNgApplication for test class net.hostsharing.hsadminng.hs.accounts.HsAccountControllerAcceptanceTest$ForeignAccountAccess
ContextBasedTestWithCleanup.retrieveInitialTestData
normalUser_canNotGetForeignAccountByUuid(): TOTAL OBJECT COUNT (initial): null -> 210
toCleanup(class net.hostsharing.hsadminng.hs.office.person.HsOfficePersonRealEntity, 5fd8bfbd-9dc3-4aa0-b330-bfb22d748356
toCleanup(class net.hostsharing.hsadminng.hs.accounts.HsAccountEntity, 0da5a2ec-73e9-476f-88c5-71da7101e463
HTTP/1.1 404 
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
X-Content-Type-Options: nosniff
X-XSS-Protection: 0
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 0
Date: Mon, 10 Aug 2026 13:33:12 GMT
Keep-Alive: timeout=60
Connection: keep-alive
ContextBasedTestWithCleanup.cleanupAndCheckCleanup
DELETING temporary HsAccountEntity#0da5a2ec-73e9-476f-88c5-71da7101e463 deleted 1 rows
DELETING temporary HsOfficePersonRealEntity#5fd8bfbd-9dc3-4aa0-b330-bfb22d748356 deleted 1 rows
normalUser_canNotGetForeignAccountByUuid(): TOTAL OBJECT COUNT (after): null -> 210
ContextBasedTestWithCleanup.retrieveInitialTestData
normalUser_canNotDeleteForeignAccount(): TOTAL OBJECT COUNT (initial): 210 -> 210
toCleanup(class net.hostsharing.hsadminng.hs.office.person.HsOfficePersonRealEntity, 1dcc50a4-51eb-440c-8e87-c7fa3723185f
toCleanup(class net.hostsharing.hsadminng.hs.accounts.HsAccountEntity, f2ec5f87-2826-44c4-bf51-e2499020bcc3
HTTP/1.1 403 
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
X-Content-Type-Options: nosniff
X-XSS-Protection: 0
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Type: application/json
Transfer-Encoding: chunked
Date: Mon, 10 Aug 2026 13:33:13 GMT
Keep-Alive: timeout=60
Connection: keep-alive

{
    "timestamp": "2026-08-10 01:33:13",
    "path": "",
    "statusCode": 403,
    "statusPhrase": "Forbidden",
    "message": "ERROR: [403] deleting account f2ec5f87-2826-44c4-bf51-e2499020bcc3 requires the global admin role"
}
ContextBasedTestWithCleanup.cleanupAndCheckCleanup
DELETING temporary HsAccountEntity#f2ec5f87-2826-44c4-bf51-e2499020bcc3 deleted 1 rows
DELETING temporary HsOfficePersonRealEntity#1dcc50a4-51eb-440c-8e87-c7fa3723185f deleted 1 rows
normalUser_canNotDeleteForeignAccount(): TOTAL OBJECT COUNT (after): 210 -> 210
ContextBasedTestWithCleanup.retrieveInitialTestData
normalUser_canNotListAccountsOfForeignPerson(): TOTAL OBJECT COUNT (initial): 210 -> 210
toCleanup(class net.hostsharing.hsadminng.hs.office.person.HsOfficePersonRealEntity, 9fafeba7-bcfc-48ef-8b07-ca39eabba1f3
toCleanup(class net.hostsharing.hsadminng.hs.accounts.HsAccountEntity, 7032c978-9fc5-4957-99a2-b6a1fa85dca9
HTTP/1.1 200 
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
X-Content-Type-Options: nosniff
X-XSS-Protection: 0
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Type: application/json
Transfer-Encoding: chunked
Date: Mon, 10 Aug 2026 13:33:15 GMT
Keep-Alive: timeout=60
Connection: keep-alive

[
    
]
ContextBasedTestWithCleanup.cleanupAndCheckCleanup
DELETING temporary HsAccountEntity#7032c978-9fc5-4957-99a2-b6a1fa85dca9 deleted 1 rows
DELETING temporary HsOfficePersonRealEntity#9fafeba7-bcfc-48ef-8b07-ca39eabba1f3 deleted 1 rows
normalUser_canNotListAccountsOfForeignPerson(): TOTAL OBJECT COUNT (after): 210 -> 210