Use wiremock standalone jar. Fixes #2142

This commit is contained in:
Ryan Baxter
2022-09-08 15:28:33 -04:00
parent f1bb2623f2
commit 3a3af768b5
3 changed files with 2 additions and 4 deletions

View File

@@ -119,7 +119,7 @@
</dependency>
<dependency>
<groupId>com.github.tomakehurst</groupId>
<artifactId>wiremock-jre8</artifactId>
<artifactId>wiremock-jre8-standalone</artifactId>
<version>${wiremock.version}</version>
</dependency>
</dependencies>

View File

@@ -170,7 +170,7 @@
</dependency>
<dependency>
<groupId>com.github.tomakehurst</groupId>
<artifactId>wiremock-jre8</artifactId>
<artifactId>wiremock-jre8-standalone</artifactId>
<scope>test</scope>
</dependency>
</dependencies>

View File

@@ -28,7 +28,6 @@ import org.apache.http.client.methods.CloseableHttpResponse;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.impl.client.CloseableHttpClient;
import org.assertj.core.api.Assertions;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.condition.EnabledOnJre;
import org.junit.jupiter.api.condition.JRE;
@@ -70,7 +69,6 @@ public class HttpClientSupportTest {
@Test
@EnabledOnJre(JRE.JAVA_8)
@Disabled // https://github.com/spring-cloud/spring-cloud-config/issues/2142
public void httpsProxy() throws GeneralSecurityException, IOException {
WireMockServer wireMockProxyServer = new WireMockServer(
options().httpDisabled(true).dynamicHttpsPort().enableBrowserProxying(true).trustAllProxyTargets(true));