ForeignContactReference

2

tests

0

failures

0

ignored

2.748s

duration

100%

successful

Tests

Test Duration Result
normalUser_canNotAddRelationReferencingInvisibleContact() 1.396s passed
normalUser_canNotPatchOwnRelationToInvisibleContact() 1.352s 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 15:05:53 GMT
Keep-Alive: timeout=60
Connection: keep-alive

{
    "timestamp": "2026-08-10 03:05:53",
    "path": "",
    "statusCode": 404,
    "statusPhrase": "Not Found",
    "message": "ERROR: [404] cannot find Contact by contactUuid: b5a02c46-485c-4cf7-8ecc-b2ff3a00aa93"
}
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:39795/api/hs/office/relations/46dd8976-0572-49b5-af9b-86dab727d28f
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 15:05:55 GMT
Keep-Alive: timeout=60
Connection: keep-alive

{
    "uuid": "46dd8976-0572-49b5-af9b-86dab727d28f",
    "anchor": {
        "uuid": "e4ae3514-98b9-4168-b703-4346ac290ba7",
        "personType": "NATURAL_PERSON",
        "tradeName": null,
        "salutation": null,
        "title": null,
        "givenName": "Peter",
        "familyName": "Smith"
    },
    "holder": {
        "uuid": "9626262f-ab07-42a3-b961-e1a34adfca49",
        "personType": "NATURAL_PERSON",
        "tradeName": null,
        "salutation": null,
        "title": null,
        "givenName": "Temp",
        "familyName": "Person"
    },
    "type": "REPRESENTATIVE",
    "mark": null,
    "contact": {
        "uuid": "46691d4f-108b-4280-8bb2-da8a5faaa4d0",
        "caption": "Temp Own Contact",
        "postalAddress": {
            
        },
        "emailAddresses": {
            "main": "temp@example.org"
        },
        "phoneNumbers": {
            
        }
    }
}
toCleanup(HsOfficeRelationRealEntity, 46dd8976-0572-49b5-af9b-86dab727d28f)
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 15:05:55 GMT
Keep-Alive: timeout=60
Connection: keep-alive

{
    "timestamp": "2026-08-10 03:05:55",
    "path": "",
    "statusCode": 404,
    "statusPhrase": "Not Found",
    "message": "ERROR: [404] cannot find Contact by contact.uuid: b5a02c46-485c-4cf7-8ecc-b2ff3a00aa93"
}
ContextBasedTestWithCleanup.cleanupAndCheckCleanup
DELETING temporary HsOfficeRelationRealEntity#46dd8976-0572-49b5-af9b-86dab727d28f deleted 1 rows
DELETING leaked hs_office.person#9626262f-ab07-42a3-b961-e1a34adfca49 SUCCEEDED
DELETING leaked hs_office.contact#46691d4f-108b-4280-8bb2-da8a5faaa4d0 SUCCEEDED
normalUser_canNotPatchOwnRelationToInvisibleContact(): TOTAL OBJECT COUNT (after): 210 -> 210