ForeignAccountAccess
Tests
| Test |
Duration |
Result |
| normalUser_canNotDeleteForeignAccount() |
1.523s |
passed |
| normalUser_canNotGetForeignAccountByUuid() |
1.775s |
passed |
| normalUser_canNotListAccountsOfForeignPerson() |
1.524s |
passed |
Standard output
2026-08-10T16:29:34.485Z INFO 374 --- [ 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-10T16:29:34.487Z INFO 374 --- [ 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, f7e7122f-a8ea-4635-98c9-96b9afe72aa0
toCleanup(class net.hostsharing.hsadminng.hs.accounts.HsAccountEntity, 399953f7-54e0-4091-8f7f-1e7610dfa60e
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 16:29:35 GMT
Keep-Alive: timeout=60
Connection: keep-alive
ContextBasedTestWithCleanup.cleanupAndCheckCleanup
DELETING temporary HsAccountEntity#399953f7-54e0-4091-8f7f-1e7610dfa60e deleted 1 rows
DELETING temporary HsOfficePersonRealEntity#f7e7122f-a8ea-4635-98c9-96b9afe72aa0 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, 2ca9cae1-d4a6-4737-a036-542338cce22c
toCleanup(class net.hostsharing.hsadminng.hs.accounts.HsAccountEntity, 4e8d1724-c653-4099-b834-ab10bf1fc0a3
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 16:29:37 GMT
Keep-Alive: timeout=60
Connection: keep-alive
{
"timestamp": "2026-08-10 04:29:37",
"path": "",
"statusCode": 403,
"statusPhrase": "Forbidden",
"message": "ERROR: [403] deleting account 4e8d1724-c653-4099-b834-ab10bf1fc0a3 requires the global admin role"
}
ContextBasedTestWithCleanup.cleanupAndCheckCleanup
DELETING temporary HsAccountEntity#4e8d1724-c653-4099-b834-ab10bf1fc0a3 deleted 1 rows
DELETING temporary HsOfficePersonRealEntity#2ca9cae1-d4a6-4737-a036-542338cce22c 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, 911766f5-db4c-4757-8e7e-6b7d4fa697cb
toCleanup(class net.hostsharing.hsadminng.hs.accounts.HsAccountEntity, c392cf90-1f18-44c3-bd27-cf2458b652e2
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 16:29:38 GMT
Keep-Alive: timeout=60
Connection: keep-alive
[
]
ContextBasedTestWithCleanup.cleanupAndCheckCleanup
DELETING temporary HsAccountEntity#c392cf90-1f18-44c3-bd27-cf2458b652e2 deleted 1 rows
DELETING temporary HsOfficePersonRealEntity#911766f5-db4c-4757-8e7e-6b7d4fa697cb deleted 1 rows
normalUser_canNotListAccountsOfForeignPerson(): TOTAL OBJECT COUNT (after): 210 -> 210