ForeignContactReference

2

tests

0

failures

0

ignored

2.701s

duration

100%

successful

Tests

Test Duration Result
normalUser_canNotAddRelationReferencingInvisibleContact() 1.299s passed
normalUser_canNotPatchOwnRelationToInvisibleContact() 1.402s 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:31:36 GMT
Keep-Alive: timeout=60
Connection: keep-alive

{
    "timestamp": "2026-08-10 04:31:36",
    "path": "",
    "statusCode": 404,
    "statusPhrase": "Not Found",
    "message": "ERROR: [404] cannot find Contact by contactUuid: eafb9bdb-bf05-463b-bd03-dd3cae11aa69"
}
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:42409/api/hs/office/relations/eff16c8e-0739-417a-a38f-d37972aff675
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:31:38 GMT
Keep-Alive: timeout=60
Connection: keep-alive

{
    "uuid": "eff16c8e-0739-417a-a38f-d37972aff675",
    "anchor": {
        "uuid": "8e6591af-4a90-4817-bad4-15a96c110257",
        "personType": "NATURAL_PERSON",
        "tradeName": null,
        "salutation": null,
        "title": null,
        "givenName": "Peter",
        "familyName": "Smith"
    },
    "holder": {
        "uuid": "649d1306-4f4b-4d3e-9c2e-e2f0aa5ffff8",
        "personType": "NATURAL_PERSON",
        "tradeName": null,
        "salutation": null,
        "title": null,
        "givenName": "Temp",
        "familyName": "Person"
    },
    "type": "REPRESENTATIVE",
    "mark": null,
    "contact": {
        "uuid": "63326598-6b52-4c3f-bb2c-df75557b1b37",
        "caption": "Temp Own Contact",
        "postalAddress": {
            
        },
        "emailAddresses": {
            "main": "temp@example.org"
        },
        "phoneNumbers": {
            
        }
    }
}
toCleanup(HsOfficeRelationRealEntity, eff16c8e-0739-417a-a38f-d37972aff675)
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:31:38 GMT
Keep-Alive: timeout=60
Connection: keep-alive

{
    "timestamp": "2026-08-10 04:31:38",
    "path": "",
    "statusCode": 404,
    "statusPhrase": "Not Found",
    "message": "ERROR: [404] cannot find Contact by contact.uuid: eafb9bdb-bf05-463b-bd03-dd3cae11aa69"
}
ContextBasedTestWithCleanup.cleanupAndCheckCleanup
DELETING temporary HsOfficeRelationRealEntity#eff16c8e-0739-417a-a38f-d37972aff675 deleted 1 rows
DELETING leaked hs_office.person#649d1306-4f4b-4d3e-9c2e-e2f0aa5ffff8 SUCCEEDED
DELETING leaked hs_office.contact#63326598-6b52-4c3f-bb2c-df75557b1b37 SUCCEEDED
normalUser_canNotPatchOwnRelationToInvisibleContact(): TOTAL OBJECT COUNT (after): 210 -> 210