Julian Michelmann
05/19/2023, 2:53 PM...
Caused by: org.testcontainers.containers.ContainerLaunchException: Could not create/start container
at org.testcontainers.containers.GenericContainer.tryStart(GenericContainer.java:553)
at org.testcontainers.containers.GenericContainer.lambda$doStart$0(GenericContainer.java:344)
at org.rnorth.ducttape.unreliables.Unreliables.retryUntilSuccess(Unreliables.java:81)
... 23 more
Caused by: java.lang.IllegalStateException: Wait strategy failed. Container exited with code 1
at org.testcontainers.containers.GenericContainer.tryStart(GenericContainer.java:523)
... 25 more
Caused by: org.testcontainers.containers.ContainerLaunchException: Timed out waiting for URL to be accessible (<http://localhost:49189/__admin/mappings> should return HTTP [200])
at org.testcontainers.containers.wait.strategy.HttpWaitStrategy.waitUntilReady(HttpWaitStrategy.java:320)
at org.testcontainers.containers.wait.strategy.AbstractWaitStrategy.waitUntilReady(AbstractWaitStrategy.java:52)
at org.testcontainers.containers.GenericContainer.waitUntilContainerStarted(GenericContainer.java:964)
at org.testcontainers.containers.GenericContainer.tryStart(GenericContainer.java:490)
... 25 more
...
It seems that the container is failing. The container logs look like this:
Exception in thread "main" java.lang.ClassNotFoundException: com.ninecookies.wiremock.extensions.JsonBodyTransformer
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(Unknown Source)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(Unknown Source)
at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Unknown Source)
at com.github.tomakehurst.wiremock.extension.ExtensionLoader$3.apply(ExtensionLoader.java:71)
at com.github.tomakehurst.wiremock.extension.ExtensionLoader$3.apply(ExtensionLoader.java:67)
at wiremock.com.google.common.collect.Iterators$6.transform(Iterators.java:829)
at wiremock.com.google.common.collect.TransformedIterator.next(TransformedIterator.java:52)
at wiremock.com.google.common.collect.TransformedIterator.next(TransformedIterator.java:52)
at wiremock.com.google.common.collect.Maps.uniqueIndex(Maps.java:1391)
at wiremock.com.google.common.collect.Maps.uniqueIndex(Maps.java:1353)
at com.github.tomakehurst.wiremock.extension.ExtensionLoader.asMap(ExtensionLoader.java:40)
at com.github.tomakehurst.wiremock.extension.ExtensionLoader.loadExtension(ExtensionLoader.java:32)
at com.github.tomakehurst.wiremock.extension.ExtensionLoader.load(ExtensionLoader.java:36)
at com.github.tomakehurst.wiremock.standalone.CommandLineOptions.buildExtensions(CommandLineOptions.java:378)
at com.github.tomakehurst.wiremock.standalone.CommandLineOptions.<init>(CommandLineOptions.java:369)
at com.github.tomakehurst.wiremock.standalone.WireMockServerRunner.run(WireMockServerRunner.java:49)
at com.github.tomakehurst.wiremock.standalone.WireMockServerRunner.main(WireMockServerRunner.java:133)
Maybe I’m doing something wrong? To be honest, I’m not sure how this is working and what is expected…Tanumoy Mitra
05/25/2023, 4:29 PMOleg Nenashev
05/27/2023, 9:40 AMKaustav Surai
06/10/2023, 9:39 AMTom
06/14/2023, 2:25 PMOleg Nenashev
06/26/2023, 3:45 PMorg.wiremock
at some point, or is it up for grabs? I think it would be nice to document the structure for the package group and allow other contributors like @Dirk Bolte to release thereBalog Tamás
07/05/2023, 9:35 AMtestImplementation 'org.wiremock.integrations.testcontainers:wiremock-testcontainers-module:1.0-alpha-5'
but I'm not sure if this is correct, if the module is available at all to use it like this, or I need more configuration.
I must be missing some crucial information about the Java module, so forgive me if I'm asking something very trivial. 🙂Oleg Nenashev
07/05/2023, 9:51 AMwiremock
GitHub orgTom
07/05/2023, 10:50 AMOleg Nenashev
07/05/2023, 12:25 PMOleg Nenashev
07/06/2023, 2:06 PMDirk Bolte
07/11/2023, 2:12 PM3.0.0-beta-11
in the state extension. A PR is available at: https://github.com/wiremock/wiremock-extension-state/pull/4 for you to give feedback and see it in use.
Some things I stumbled upon:
• I could only get response templating to work when both templatingEnabled
and globalTemplating
was set to true
.
• For one functionality I had in mind it would be great if a request gets a unique ID . What do you think?
• I'm currently at 4 classes I have to add for the whole set. It hardly makes sense to register them in isolation, so I wonder whether we can add a "collection" extension which can register multiple events + extensions in one shot (similar to what is already done with TemplateHelperProviderExtension
. I can provide an proposal + PR if this something you see as beneficialOleg Nenashev
07/14/2023, 1:23 PMTom
07/17/2023, 12:05 PMOleg Nenashev
07/24/2023, 8:12 AMTom
07/24/2023, 8:14 AMOleg Nenashev
07/24/2023, 8:15 AMOleg Nenashev
07/24/2023, 8:22 AMOleg Nenashev
07/28/2023, 8:13 AMDirk Bolte
07/28/2023, 8:25 AMafterComplete
are not processed timely. Can it happen that these events are processed after the response was sent and thus even after the next request is matched?Oleg Nenashev
07/29/2023, 11:21 AMOleg Nenashev
07/29/2023, 11:32 AMmain()
method. I will register it as a breaking changeOleg Nenashev
07/29/2023, 11:53 AMAnil Kumar Ns
07/31/2023, 2:21 PMRajesh Narayanappa
08/09/2023, 3:02 PMIvan Golovko
08/09/2023, 6:34 PMIvan Golovko
08/09/2023, 6:36 PMbodyFileName
feature for response. What about to implement the same for request?
Maybe I didn't read the docs well?Oleg Nenashev
08/20/2023, 1:50 PMOleg Nenashev
08/20/2023, 1:58 PMOleg Nenashev
08/29/2023, 9:35 AM