ForeignContactReference

2

tests

0

failures

0

ignored

2.854s

duration

100%

successful

Tests

Test Duration Result
normalUser_canNotAddRelationReferencingInvisibleContact() 1.357s passed
normalUser_canNotPatchOwnRelationToInvisibleContact() 1.497s 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 13:35:19 GMT
Keep-Alive: timeout=60
Connection: keep-alive

{
    "timestamp": "2026-08-10 01:35:19",
    "path": "",
    "statusCode": 404,
    "statusPhrase": "Not Found",
    "message": "ERROR: [404] cannot find Contact by contactUuid: d9e72a79-7ac8-4857-ab9d-43f951ee9ca2"
}
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:43147/api/hs/office/relations/0fab929a-b8d5-425f-875d-f4c852e1e5af
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:35:20 GMT
Keep-Alive: timeout=60
Connection: keep-alive

{
    "uuid": "0fab929a-b8d5-425f-875d-f4c852e1e5af",
    "anchor": {
        "uuid": "24fa9159-1dad-45d3-9b99-c4069a33e812",
        "personType": "NATURAL_PERSON",
        "tradeName": null,
        "salutation": null,
        "title": null,
        "givenName": "Peter",
        "familyName": "Smith"
    },
    "holder": {
        "uuid": "9256fc70-4030-4393-b5a0-64ec21ceb036",
        "personType": "NATURAL_PERSON",
        "tradeName": null,
        "salutation": null,
        "title": null,
        "givenName": "Temp",
        "familyName": "Person"
    },
    "type": "REPRESENTATIVE",
    "mark": null,
    "contact": {
        "uuid": "ce8e3e70-c59a-41f9-9c40-957c69f62f7c",
        "caption": "Temp Own Contact",
        "postalAddress": {
            
        },
        "emailAddresses": {
            "main": "temp@example.org"
        },
        "phoneNumbers": {
            
        }
    }
}
toCleanup(HsOfficeRelationRealEntity, 0fab929a-b8d5-425f-875d-f4c852e1e5af)
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 13:35:20 GMT
Keep-Alive: timeout=60
Connection: keep-alive

{
    "timestamp": "2026-08-10 01:35:20",
    "path": "",
    "statusCode": 404,
    "statusPhrase": "Not Found",
    "message": "ERROR: [404] cannot find Contact by contact.uuid: d9e72a79-7ac8-4857-ab9d-43f951ee9ca2"
}
ContextBasedTestWithCleanup.cleanupAndCheckCleanup
DELETING temporary HsOfficeRelationRealEntity#0fab929a-b8d5-425f-875d-f4c852e1e5af deleted 1 rows
DELETING leaked hs_office.person#9256fc70-4030-4393-b5a0-64ec21ceb036 SUCCEEDED
DELETING leaked hs_office.contact#ce8e3e70-c59a-41f9-9c40-957c69f62f7c SUCCEEDED
normalUser_canNotPatchOwnRelationToInvisibleContact(): TOTAL OBJECT COUNT (after): 210 -> 210