From 284b8e125e2899ddbf4b901eccee7dafb705f040 Mon Sep 17 00:00:00 2001 From: Michael Hoennig Date: Wed, 6 Nov 2024 08:56:51 +0100 Subject: [PATCH] add comment about postalAddress sub-properties and compatibility --- .../scenarios/contact/ReplaceContactData.java | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/src/test/java/net/hostsharing/hsadminng/hs/office/scenarios/contact/ReplaceContactData.java b/src/test/java/net/hostsharing/hsadminng/hs/office/scenarios/contact/ReplaceContactData.java index ed992fca..f3e88269 100644 --- a/src/test/java/net/hostsharing/hsadminng/hs/office/scenarios/contact/ReplaceContactData.java +++ b/src/test/java/net/hostsharing/hsadminng/hs/office/scenarios/contact/ReplaceContactData.java @@ -39,16 +39,18 @@ public class ReplaceContactData extends UseCase { } """)) .expecting(CREATED).expecting(JSON), - "Please check first if that contact already exists, if so, use it's UUID below." - ); + "Please check first if that contact already exists, if so, use it's UUID below.", + "If any `postalAddress` sub-properties besides those specified in the API " + + "(currently `firm`, `name`, `co`, `street`, `zipcode`, `city`, `country`) " + + "its values might not appear in external systems."); withTitle("Replace the Contact-Reference in the Partner-Relation", () -> - httpPatch("/api/hs/office/relations/%{partnerRelationUuid}", usingJsonBody(""" - { - "contactUuid": ${Contact: %{newContactCaption}} - } - """)) - .expecting(OK) + httpPatch("/api/hs/office/relations/%{partnerRelationUuid}", usingJsonBody(""" + { + "contactUuid": ${Contact: %{newContactCaption}} + } + """)) + .expecting(OK) ); return null;