ForeignAccountAccess
Tests
| Test |
Duration |
Result |
| normalUser_canNotDeleteForeignAccount() |
1.585s |
passed |
| normalUser_canNotGetForeignAccountByUuid() |
1.807s |
passed |
| normalUser_canNotListAccountsOfForeignPerson() |
1.538s |
passed |
Standard output
2026-08-10T16:37:39.787Z INFO 371 --- [ 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:37:39.788Z INFO 371 --- [ 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, d3f48dbe-7250-49b2-b2e3-f56b578fb467
toCleanup(class net.hostsharing.hsadminng.hs.accounts.HsAccountEntity, 962ac561-3a54-4e52-812f-d56702a3236e
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:37:41 GMT
Keep-Alive: timeout=60
Connection: keep-alive
ContextBasedTestWithCleanup.cleanupAndCheckCleanup
DELETING temporary HsAccountEntity#962ac561-3a54-4e52-812f-d56702a3236e deleted 1 rows
DELETING temporary HsOfficePersonRealEntity#d3f48dbe-7250-49b2-b2e3-f56b578fb467 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, 676ae84b-0dd0-49e3-b73d-44df714b7005
toCleanup(class net.hostsharing.hsadminng.hs.accounts.HsAccountEntity, 72d7c5a4-e500-44b3-a842-396c0270ec53
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:37:42 GMT
Keep-Alive: timeout=60
Connection: keep-alive
{
"timestamp": "2026-08-10 04:37:42",
"path": "",
"statusCode": 403,
"statusPhrase": "Forbidden",
"message": "ERROR: [403] deleting account 72d7c5a4-e500-44b3-a842-396c0270ec53 requires the global admin role"
}
ContextBasedTestWithCleanup.cleanupAndCheckCleanup
DELETING temporary HsAccountEntity#72d7c5a4-e500-44b3-a842-396c0270ec53 deleted 1 rows
DELETING temporary HsOfficePersonRealEntity#676ae84b-0dd0-49e3-b73d-44df714b7005 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, dd3d84e3-1040-4975-968f-c89bb52c96bd
toCleanup(class net.hostsharing.hsadminng.hs.accounts.HsAccountEntity, d9a2aecc-0d44-4891-b57d-e6f81cbb4a1e
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:37:44 GMT
Keep-Alive: timeout=60
Connection: keep-alive
[
]
ContextBasedTestWithCleanup.cleanupAndCheckCleanup
DELETING temporary HsAccountEntity#d9a2aecc-0d44-4891-b57d-e6f81cbb4a1e deleted 1 rows
DELETING temporary HsOfficePersonRealEntity#dd3d84e3-1040-4975-968f-c89bb52c96bd deleted 1 rows
normalUser_canNotListAccountsOfForeignPerson(): TOTAL OBJECT COUNT (after): 210 -> 210