From 8789adf03ed08bc1cccc1c4c9cf59e1cb89408fb Mon Sep 17 00:00:00 2001 From: Michael Hoennig Date: Sat, 28 Dec 2024 17:34:54 +0100 Subject: [PATCH] fix failing tests --- .../HsOfficeDebitorControllerAcceptanceTest.java | 13 +++++++++++++ .../hsadminng/rbac/context/ContextUnitTest.java | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/src/test/java/net/hostsharing/hsadminng/hs/office/debitor/HsOfficeDebitorControllerAcceptanceTest.java b/src/test/java/net/hostsharing/hsadminng/hs/office/debitor/HsOfficeDebitorControllerAcceptanceTest.java index fd46f721..81d40a0d 100644 --- a/src/test/java/net/hostsharing/hsadminng/hs/office/debitor/HsOfficeDebitorControllerAcceptanceTest.java +++ b/src/test/java/net/hostsharing/hsadminng/hs/office/debitor/HsOfficeDebitorControllerAcceptanceTest.java @@ -228,6 +228,19 @@ class HsOfficeDebitorControllerAcceptanceTest extends ContextBasedTestWithCleanu { "debitorRel": { "anchor": {"tradeName": "Peter Smith - The Second Hand and Thrift Stores-n-Shipping e.K."}, + "holder": {"tradeName": "Peter Smith - The Second Hand and Thrift Stores-n-Shipping e.K."}, + "type": "DEBITOR", + "contact": { + "emailAddresses": { "main": "contact-admin@secondcontact.example.com" } + } + }, + "debitorNumber": "D-1000212", + "debitorNumberSuffix": "12", + "partner": { + "partnerNumber": "P-10002", + "partnerRel": { + "anchor": {"tradeName": "Hostsharing eG"}, + "holder": {"tradeName": "Peter Smith - The Second Hand and Thrift Stores-n-Shipping e.K."}, "type": "PARTNER", "contact": { "emailAddresses": { "main": "contact-admin@secondcontact.example.com" } diff --git a/src/test/java/net/hostsharing/hsadminng/rbac/context/ContextUnitTest.java b/src/test/java/net/hostsharing/hsadminng/rbac/context/ContextUnitTest.java index 6a6d690f..9546c434 100644 --- a/src/test/java/net/hostsharing/hsadminng/rbac/context/ContextUnitTest.java +++ b/src/test/java/net/hostsharing/hsadminng/rbac/context/ContextUnitTest.java @@ -32,7 +32,7 @@ class ContextUnitTest { cast(:currentTask as varchar(127)), cast(:currentRequest as text), cast(:currentSubject as varchar(63)), - cast(:assumedRoles as varchar(1023))); + cast(:assumedRoles as text)); """; @Nested