ForeignAccountAccess

3

tests

0

failures

0

ignored

5.388s

duration

100%

successful

Tests

Test Duration Result
normalUser_canNotDeleteForeignAccount() 1.638s passed
normalUser_canNotGetForeignAccountByUuid() 2.137s passed
normalUser_canNotListAccountsOfForeignPerson() 1.613s passed

Standard output

2026-08-10T15:03:45.571Z  INFO 373 --- [    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-10T15:03:45.573Z  INFO 373 --- [    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, 018b7a0f-ea16-4d4b-a3b0-3296c80be0b3
toCleanup(class net.hostsharing.hsadminng.hs.accounts.HsAccountEntity, 9d5f7cf2-3b06-49a0-ad53-cfe413df8862
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 15:03:47 GMT
Keep-Alive: timeout=60
Connection: keep-alive
ContextBasedTestWithCleanup.cleanupAndCheckCleanup
DELETING temporary HsAccountEntity#9d5f7cf2-3b06-49a0-ad53-cfe413df8862 deleted 1 rows
DELETING temporary HsOfficePersonRealEntity#018b7a0f-ea16-4d4b-a3b0-3296c80be0b3 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, 19e75608-45ca-4739-a94b-0143c43e6fe7
toCleanup(class net.hostsharing.hsadminng.hs.accounts.HsAccountEntity, 59bc2aeb-f5a6-4e5e-9ba7-8cb1c4833b72
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 15:03:48 GMT
Keep-Alive: timeout=60
Connection: keep-alive

{
    "timestamp": "2026-08-10 03:03:48",
    "path": "",
    "statusCode": 403,
    "statusPhrase": "Forbidden",
    "message": "ERROR: [403] deleting account 59bc2aeb-f5a6-4e5e-9ba7-8cb1c4833b72 requires the global admin role"
}
ContextBasedTestWithCleanup.cleanupAndCheckCleanup
DELETING temporary HsAccountEntity#59bc2aeb-f5a6-4e5e-9ba7-8cb1c4833b72 deleted 1 rows
DELETING temporary HsOfficePersonRealEntity#19e75608-45ca-4739-a94b-0143c43e6fe7 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, 0f5b8bea-b727-4e31-9fc5-aeedb2a4d969
toCleanup(class net.hostsharing.hsadminng.hs.accounts.HsAccountEntity, 031ba547-d2c9-4dc0-bc28-56acd2e39177
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 15:03:50 GMT
Keep-Alive: timeout=60
Connection: keep-alive

[
    
]
ContextBasedTestWithCleanup.cleanupAndCheckCleanup
DELETING temporary HsAccountEntity#031ba547-d2c9-4dc0-bc28-56acd2e39177 deleted 1 rows
DELETING temporary HsOfficePersonRealEntity#0f5b8bea-b727-4e31-9fc5-aeedb2a4d969 deleted 1 rows
normalUser_canNotListAccountsOfForeignPerson(): TOTAL OBJECT COUNT (after): 210 -> 210