fix lastUnixUserId - 2nd try
This commit is contained in:
parent
81bfa4288f
commit
03b720251a
@ -157,6 +157,7 @@ class HsHostingAssetControllerAcceptanceTest extends ContextBasedTestWithCleanup
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
final var givenParentAsset = givenParentAsset(MANAGED_SERVER, "vm1011");
|
final var givenParentAsset = givenParentAsset(MANAGED_SERVER, "vm1011");
|
||||||
|
final var expectedUnixUserId = lastUnixUserId();
|
||||||
|
|
||||||
final var location = RestAssured // @formatter:off
|
final var location = RestAssured // @formatter:off
|
||||||
.given()
|
.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/[^/]*"))
|
.header("Location", matchesRegex("http://localhost:[1-9][0-9]*/api/hs/hosting/assets/[^/]*"))
|
||||||
.extract().header("Location"); // @formatter:on
|
.extract().header("Location"); // @formatter:on
|
||||||
|
Loading…
Reference in New Issue
Block a user