fix lastUnixUserId - 2nd try

This commit is contained in:
Michael Hoennig 2024-10-07 17:07:26 +02:00
parent 81bfa4288f
commit 03b720251a

View File

@ -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