From f23b619ff36041a62e9e1d9123c136090a7f82b5 Mon Sep 17 00:00:00 2001 From: Michael Hoennig Date: Wed, 30 Oct 2024 15:12:06 +0100 Subject: [PATCH] use placeholder resolve for uriPaths in existing HTTP-calls --- .../hsadminng/hs/office/scenarios/debitor/DeleteDebitor.java | 2 +- .../office/scenarios/debitor/DeleteSepaMandateForDebitor.java | 2 +- .../hs/office/scenarios/debitor/DontDeleteDefaultDebitor.java | 2 +- .../hsadminng/hs/office/scenarios/partner/DeletePartner.java | 2 +- .../subscription/RemoveOperationsContactFromPartner.java | 2 +- .../scenarios/subscription/UnsubscribeFromMailinglist.java | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/test/java/net/hostsharing/hsadminng/hs/office/scenarios/debitor/DeleteDebitor.java b/src/test/java/net/hostsharing/hsadminng/hs/office/scenarios/debitor/DeleteDebitor.java index 016f1a75..5813fe30 100644 --- a/src/test/java/net/hostsharing/hsadminng/hs/office/scenarios/debitor/DeleteDebitor.java +++ b/src/test/java/net/hostsharing/hsadminng/hs/office/scenarios/debitor/DeleteDebitor.java @@ -24,7 +24,7 @@ public class DeleteDebitor extends UseCase { @Override protected HttpResponse run() { - httpDelete("/api/hs/office/debitors/" + uuid("Debitor: Test AG - delete debitor")) + httpDelete("/api/hs/office/debitors/&{Debitor: Test AG - delete debitor}") .expecting(HttpStatus.NO_CONTENT); return null; } diff --git a/src/test/java/net/hostsharing/hsadminng/hs/office/scenarios/debitor/DeleteSepaMandateForDebitor.java b/src/test/java/net/hostsharing/hsadminng/hs/office/scenarios/debitor/DeleteSepaMandateForDebitor.java index e5c9b94a..e9470a4e 100644 --- a/src/test/java/net/hostsharing/hsadminng/hs/office/scenarios/debitor/DeleteSepaMandateForDebitor.java +++ b/src/test/java/net/hostsharing/hsadminng/hs/office/scenarios/debitor/DeleteSepaMandateForDebitor.java @@ -13,7 +13,7 @@ public class DeleteSepaMandateForDebitor extends UseCase @Override protected HttpResponse run() { - httpDelete("/api/hs/office/debitors/" + uuid("Debitor: Test AG - main debitor")) + httpDelete("/api/hs/office/debitors/&{Debitor: Test AG - main debitor}") // TODO.spec: should be CONFLICT or CLIENT_ERROR for Debitor "00" - but how to delete Partners? .expecting(HttpStatus.NO_CONTENT); return null; diff --git a/src/test/java/net/hostsharing/hsadminng/hs/office/scenarios/partner/DeletePartner.java b/src/test/java/net/hostsharing/hsadminng/hs/office/scenarios/partner/DeletePartner.java index ae24dfd1..cd52d6ea 100644 --- a/src/test/java/net/hostsharing/hsadminng/hs/office/scenarios/partner/DeletePartner.java +++ b/src/test/java/net/hostsharing/hsadminng/hs/office/scenarios/partner/DeletePartner.java @@ -18,7 +18,7 @@ public class DeletePartner extends UseCase { @Override protected HttpResponse run() { - httpDelete("/api/hs/office/partners/" + uuid("Partner: Delete AG")) + httpDelete("/api/hs/office/partners/&{Partner: Delete AG}") .expecting(HttpStatus.NO_CONTENT); return null; } diff --git a/src/test/java/net/hostsharing/hsadminng/hs/office/scenarios/subscription/RemoveOperationsContactFromPartner.java b/src/test/java/net/hostsharing/hsadminng/hs/office/scenarios/subscription/RemoveOperationsContactFromPartner.java index 64584075..6b12f2e6 100644 --- a/src/test/java/net/hostsharing/hsadminng/hs/office/scenarios/subscription/RemoveOperationsContactFromPartner.java +++ b/src/test/java/net/hostsharing/hsadminng/hs/office/scenarios/subscription/RemoveOperationsContactFromPartner.java @@ -23,7 +23,7 @@ public class RemoveOperationsContactFromPartner extends UseCase