From 1f19bbbcac501d7004bc3304bb65b80f2b760046 Mon Sep 17 00:00:00 2001 From: Michael Hoennig Date: Sat, 9 Nov 2024 14:28:20 +0100 Subject: [PATCH] amend ScenarioTests according to .uuid --- .../hs/office/scenarios/contact/ReplaceContactData.java | 2 +- .../debitor/CreateExternalDebitorForPartner.java | 8 ++++---- .../scenarios/debitor/CreateSelfDebitorForPartner.java | 8 ++++---- .../scenarios/debitor/CreateSepaMandateForDebitor.java | 4 ++-- .../hs/office/scenarios/membership/CreateMembership.java | 2 +- .../scenarios/partner/AddOperationsContactToPartner.java | 6 +++--- .../scenarios/partner/AddRepresentativeToPartner.java | 6 +++--- .../hs/office/scenarios/partner/CreatePartner.java | 6 +++--- .../scenarios/subscription/SubscribeToMailinglist.java | 6 +++--- 9 files changed, 24 insertions(+), 24 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 e60bbc8e..2638a4e5 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 @@ -47,7 +47,7 @@ public class ReplaceContactData extends UseCase { withTitle("Replace the Contact-Reference in the Partner-Relation", () -> httpPatch("/api/hs/office/relations/%{partnerRelationUuid}", usingJsonBody(""" { - "contactUuid": ${Contact: %{newContactCaption}} + "contact.uuid": ${Contact: %{newContactCaption}} } """)) .expecting(OK) diff --git a/src/test/java/net/hostsharing/hsadminng/hs/office/scenarios/debitor/CreateExternalDebitorForPartner.java b/src/test/java/net/hostsharing/hsadminng/hs/office/scenarios/debitor/CreateExternalDebitorForPartner.java index 194d4513..cf525c30 100644 --- a/src/test/java/net/hostsharing/hsadminng/hs/office/scenarios/debitor/CreateExternalDebitorForPartner.java +++ b/src/test/java/net/hostsharing/hsadminng/hs/office/scenarios/debitor/CreateExternalDebitorForPartner.java @@ -55,9 +55,9 @@ public class CreateExternalDebitorForPartner extends UseCase { protected HttpResponse run() { return httpPost("/api/hs/office/memberships", usingJsonBody(""" { - "partnerUuid": ${Partner: Test AG}, + "partner.uuid": ${Partner: Test AG}, "memberNumberSuffix": ${memberNumberSuffix}, "status": "ACTIVE", "validFrom": ${validFrom}, diff --git a/src/test/java/net/hostsharing/hsadminng/hs/office/scenarios/partner/AddOperationsContactToPartner.java b/src/test/java/net/hostsharing/hsadminng/hs/office/scenarios/partner/AddOperationsContactToPartner.java index 8cef6e10..f862c782 100644 --- a/src/test/java/net/hostsharing/hsadminng/hs/office/scenarios/partner/AddOperationsContactToPartner.java +++ b/src/test/java/net/hostsharing/hsadminng/hs/office/scenarios/partner/AddOperationsContactToPartner.java @@ -57,9 +57,9 @@ public class AddOperationsContactToPartner extends UseCase { { "partnerNumber": ${partnerNumber}, "partnerRel": { - "anchorUuid": ${Person: Hostsharing eG}, - "holderUuid": ${Person: %{%{tradeName???}???%{givenName???} %{familyName???}}}, - "contactUuid": ${Contact: %{contactCaption}} + "anchor.uuid": ${Person: Hostsharing eG}, + "holder.uuid": ${Person: %{%{tradeName???}???%{givenName???} %{familyName???}}}, + "contact.uuid": ${Contact: %{contactCaption}} }, "details": { "registrationOffice": "Registergericht Hamburg", diff --git a/src/test/java/net/hostsharing/hsadminng/hs/office/scenarios/subscription/SubscribeToMailinglist.java b/src/test/java/net/hostsharing/hsadminng/hs/office/scenarios/subscription/SubscribeToMailinglist.java index 3e4ae74b..7cca9ba4 100644 --- a/src/test/java/net/hostsharing/hsadminng/hs/office/scenarios/subscription/SubscribeToMailinglist.java +++ b/src/test/java/net/hostsharing/hsadminng/hs/office/scenarios/subscription/SubscribeToMailinglist.java @@ -52,9 +52,9 @@ public class SubscribeToMailinglist extends UseCase { { "type": "SUBSCRIBER", "mark": ${mailingList}, - "anchorUuid": ${Person: %{partnerPersonTradeName}}, - "holderUuid": ${Person: %{subscriberGivenName} %{subscriberFamilyName}}, - "contactUuid": ${Contact: %{subscriberGivenName} %{subscriberFamilyName}} + "anchor.uuid": ${Person: %{partnerPersonTradeName}}, + "holder.uuid": ${Person: %{subscriberGivenName} %{subscriberFamilyName}}, + "contact.uuid": ${Contact: %{subscriberGivenName} %{subscriberFamilyName}} } """)) .expecting(CREATED).expecting(JSON);