mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +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
|
@Rule
|
||||||
public WireMockRule wireMockRule = new WireMockRule(wireMockConfig()
|
public WireMockRule wireMockRule = new WireMockRule(wireMockConfig()
|
||||||
.httpsPort(port)
|
.dynamicHttpsPort()
|
||||||
|
.dynamicPort()
|
||||||
.needClientAuth(false)
|
.needClientAuth(false)
|
||||||
.basicAdminAuthenticator(username, password)
|
.basicAdminAuthenticator(username, password)
|
||||||
.bindAddress("localhost"));
|
.bindAddress("localhost"));
|
||||||
@ -70,7 +71,7 @@ public class ScaleIOGatewayClientImplTest {
|
|||||||
.withHeader("content-type", "application/json;charset=UTF-8")
|
.withHeader("content-type", "application/json;charset=UTF-8")
|
||||||
.withBody(sessionKey)));
|
.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")
|
wireMockRule.stubFor(post("/api/types/Volume/instances")
|
||||||
.willReturn(aResponse()
|
.willReturn(aResponse()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user