Tom
01/17/2023, 1:47 PMRuss Garratt
01/17/2023, 1:53 PMRuss Garratt
01/17/2023, 1:53 PMRuss Garratt
01/17/2023, 3:59 PMTom
01/17/2023, 4:00 PMRuss Garratt
01/17/2023, 4:00 PMRuss Garratt
01/17/2023, 4:00 PMRuss Garratt
01/17/2023, 4:04 PMTom
01/17/2023, 4:05 PMclient5
in its artifact name and packagesTom
01/17/2023, 4:06 PMRuss Garratt
01/17/2023, 4:07 PMTom
01/17/2023, 4:08 PMRuss Garratt
01/17/2023, 4:08 PMRuss Garratt
01/17/2023, 4:08 PMTom
01/17/2023, 4:09 PMRuss Garratt
01/17/2023, 4:10 PMTom
01/17/2023, 4:10 PMSinan Pehlivanoglu
01/17/2023, 5:43 PMNot listening on HTTP port. Either HTTP is not enabled or the WireMock server is stopped.
java.lang.IllegalStateException: Not listening on HTTP port. Either HTTP is not enabled or the WireMock server is stopped.
at wiremock.com.google.common.base.Preconditions.checkState(Preconditions.java:444)
at com.github.tomakehurst.wiremock.WireMockServer.port(WireMockServer.java:179)
Found this: https://github.com/bakdata/fluent-kafka-streams-tests/issues/22 and this: https://groups.google.com/g/wiremock-user/c/4kkOMn58CzM?pli=1
JUnit version 4.13.2
testImplementation "junit:junit:4.13.2"
Being going through the recently merged code to see what could have caused this in the past 24 hours but I can't quite tell.
private Environment newEnvironmentInstance(.....) {
.... some code here ....
final WireMockConfiguration config = wireMockConfig().dynamicPort();
final WireMockServer mockServer = new WireMockServer(config);
environment.setUrl(URI.create("<http://localhost>:" + mockServer.port()));
environment.setService(URI.create("<http://localhost>:" + mockServer.port()));
environment.setInitial(initial);
<http://logger.info|logger.info>("Environment started: {} on port {} ({})",
environment.getId(), mockServer.port(), environment.getName());
mockServer.start();
mockServer.stubFor(.....)
}
Any thoughts what might have caused this?Tom
01/17/2023, 5:54 PMmockServer.start()
before mockServer.port()
since when you use dynamically assigned ports they’re only assigned at startup.Sinan Pehlivanoglu
01/17/2023, 6:10 PMSlackbot
01/18/2023, 3:22 PMines rattab
01/19/2023, 7:51 AMclient_cacerts.jks is not a valid keystore
, although it is valid , here is the code
WireMockServer wireMock = new WireMockServer(wireMockConfig()
//.port(8080)
.httpsPort(8443)
.needClientAuth(true)
.keystoreType("jks")
.keystorePath("client_keystore.jks") // Either a path to a file or a resource on the classpath
.keystorePassword("secret")
.keyManagerPassword("secret")
.trustStorePath("client_cacerts.jks")// The password used to access the keystore. Defaults to "password" if omitted
.trustStorePassword("secret")
);
@Test
void test() {
wireMock.start();
wireMock.stubFor(
WireMock.get("/hello")
.willReturn(WireMock.ok("world"))
);
Any thoughts what might be causing this error ?Slackbot
01/19/2023, 4:24 PMSofia Pacifico
01/19/2023, 5:59 PMSlackbot
01/19/2023, 7:34 PMSlackbot
01/20/2023, 8:46 AMSlackbot
01/20/2023, 9:54 AMSlackbot
01/20/2023, 5:15 PMJoaquin Penalver
01/24/2023, 9:12 AMJoaquin Penalver
01/24/2023, 9:14 AMwiremock | Exception in thread "main" joptsimple.UnrecognizedOptionException: https-port is not a recognized option