From 03b720251a6c5b4839981759f79eafbb506803a1 Mon Sep 17 00:00:00 2001 From: Michael Hoennig Date: Mon, 7 Oct 2024 17:07:26 +0200 Subject: [PATCH] fix lastUnixUserId - 2nd try --- .../hosting/asset/HsHostingAssetControllerAcceptanceTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/test/java/net/hostsharing/hsadminng/hs/hosting/asset/HsHostingAssetControllerAcceptanceTest.java b/src/test/java/net/hostsharing/hsadminng/hs/hosting/asset/HsHostingAssetControllerAcceptanceTest.java index a782e45d..43cb0daf 100644 --- a/src/test/java/net/hostsharing/hsadminng/hs/hosting/asset/HsHostingAssetControllerAcceptanceTest.java +++ b/src/test/java/net/hostsharing/hsadminng/hs/hosting/asset/HsHostingAssetControllerAcceptanceTest.java @@ -157,6 +157,7 @@ class HsHostingAssetControllerAcceptanceTest extends ContextBasedTestWithCleanup ) ); final var givenParentAsset = givenParentAsset(MANAGED_SERVER, "vm1011"); + final var expectedUnixUserId = lastUnixUserId(); final var location = RestAssured // @formatter:off .given() @@ -188,7 +189,7 @@ class HsHostingAssetControllerAcceptanceTest extends ContextBasedTestWithCleanup } } """ - .replace("{lastUnixUserId}", lastUnixUserId().toString()) + .replace("{lastUnixUserId}", expectedUnixUserId.toString()) )) .header("Location", matchesRegex("http://localhost:[1-9][0-9]*/api/hs/hosting/assets/[^/]*")) .extract().header("Location"); // @formatter:on