mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Fix tests on CS build when cloudstack-management service is running (#8009)
This commit is contained in:
parent
28c4be1cf2
commit
3c608290db
@ -58,7 +58,8 @@ public class ScaleIOGatewayClientImplTest {
|
||||
|
||||
@Rule
|
||||
public WireMockRule wireMockRule = new WireMockRule(wireMockConfig()
|
||||
.httpsPort(port)
|
||||
.dynamicHttpsPort()
|
||||
.dynamicPort()
|
||||
.needClientAuth(false)
|
||||
.basicAdminAuthenticator(username, password)
|
||||
.bindAddress("localhost"));
|
||||
@ -70,7 +71,7 @@ public class ScaleIOGatewayClientImplTest {
|
||||
.withHeader("content-type", "application/json;charset=UTF-8")
|
||||
.withBody(sessionKey)));
|
||||
|
||||
client = new ScaleIOGatewayClientImpl(String.format("https://localhost:%d/api", port), username, password, false, timeout, maxConnections);
|
||||
client = new ScaleIOGatewayClientImpl(String.format("https://localhost:%d/api", wireMockRule.httpsPort()), username, password, false, timeout, maxConnections);
|
||||
|
||||
wireMockRule.stubFor(post("/api/types/Volume/instances")
|
||||
.willReturn(aResponse()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user