ForeignContactReference

2

tests

0

failures

0

ignored

2.881s

duration

100%

successful

Tests

Test Duration Result
normalUser_canNotAddRelationReferencingInvisibleContact() 1.436s passed
normalUser_canNotPatchOwnRelationToInvisibleContact() 1.445s passed

Standard output

ContextBasedTestWithCleanup.retrieveInitialTestData
normalUser_canNotAddRelationReferencingInvisibleContact(): TOTAL OBJECT COUNT (initial): 210 -> 210
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-Type: application/json
Transfer-Encoding: chunked
Date: Mon, 10 Aug 2026 16:39:47 GMT
Keep-Alive: timeout=60
Connection: keep-alive

{
    "timestamp": "2026-08-10 04:39:47",
    "path": "",
    "statusCode": 404,
    "statusPhrase": "Not Found",
    "message": "ERROR: [404] cannot find Contact by contactUuid: a97abf81-8e91-4a3d-8de2-9575d73b5178"
}
ContextBasedTestWithCleanup.cleanupAndCheckCleanup
normalUser_canNotAddRelationReferencingInvisibleContact(): TOTAL OBJECT COUNT (after): 210 -> 210
ContextBasedTestWithCleanup.retrieveInitialTestData
normalUser_canNotPatchOwnRelationToInvisibleContact(): TOTAL OBJECT COUNT (initial): 210 -> 210
HTTP/1.1 201 
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Location: http://localhost:43997/api/hs/office/relations/9c9d6aec-fba4-4104-826d-d8b9b6bb8904
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:39:48 GMT
Keep-Alive: timeout=60
Connection: keep-alive

{
    "uuid": "9c9d6aec-fba4-4104-826d-d8b9b6bb8904",
    "anchor": {
        "uuid": "014d5767-72b6-4c6f-b3ed-66cf4c1670f7",
        "personType": "NATURAL_PERSON",
        "tradeName": null,
        "salutation": null,
        "title": null,
        "givenName": "Peter",
        "familyName": "Smith"
    },
    "holder": {
        "uuid": "4487a618-1119-43f3-baf7-58c6cb175449",
        "personType": "NATURAL_PERSON",
        "tradeName": null,
        "salutation": null,
        "title": null,
        "givenName": "Temp",
        "familyName": "Person"
    },
    "type": "REPRESENTATIVE",
    "mark": null,
    "contact": {
        "uuid": "fa8b2bd6-d752-4283-847b-767528fec67b",
        "caption": "Temp Own Contact",
        "postalAddress": {
            
        },
        "emailAddresses": {
            "main": "temp@example.org"
        },
        "phoneNumbers": {
            
        }
    }
}
toCleanup(HsOfficeRelationRealEntity, 9c9d6aec-fba4-4104-826d-d8b9b6bb8904)
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-Type: application/json
Transfer-Encoding: chunked
Date: Mon, 10 Aug 2026 16:39:48 GMT
Keep-Alive: timeout=60
Connection: keep-alive

{
    "timestamp": "2026-08-10 04:39:48",
    "path": "",
    "statusCode": 404,
    "statusPhrase": "Not Found",
    "message": "ERROR: [404] cannot find Contact by contact.uuid: a97abf81-8e91-4a3d-8de2-9575d73b5178"
}
ContextBasedTestWithCleanup.cleanupAndCheckCleanup
DELETING temporary HsOfficeRelationRealEntity#9c9d6aec-fba4-4104-826d-d8b9b6bb8904 deleted 1 rows
DELETING leaked hs_office.person#4487a618-1119-43f3-baf7-58c6cb175449 SUCCEEDED
DELETING leaked hs_office.contact#fa8b2bd6-d752-4283-847b-767528fec67b SUCCEEDED
normalUser_canNotPatchOwnRelationToInvisibleContact(): TOTAL OBJECT COUNT (after): 210 -> 210