Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WireMock demo and workaround for Quarkus 3 and MockServer issue. #122

Closed
wants to merge 1 commit into from

Conversation

holomekc
Copy link

@holomekc holomekc commented Jul 6, 2023

This is not really a PR, but helps to see what I changed. It contains the discussed Wiremock approach
quarkiverse/quarkus-pact#60 and also a fix for quarkiverse/quarkus-pact#73

There might be different approaches how to init the proxy setup for WireMock. At the moment it is called in all test methods. I was struggling with the order of the extensions. I hope it helps.

@holomekc
Copy link
Author

holomekc commented Jul 6, 2023

Logs look like this:

2023-07-06 21:43:53,067 INFO  [org.she.kni.wir.WireMockQuarkusTestResource] (qtp1762722116-85) 🍄 [WireMock] Proxying: POST http://localhost:65023/wool/order
2023-07-06 21:43:53,451 INFO  [org.she.kni.wir.WireMockQuarkusTestResource] (qtp1762722116-85) 🍄 [WireMock] Request received:
127.0.0.1 - POST /wool/order

Content-Type: [application/json]
User-Agent: [Resteasy Reactive Client]
Content-Length: [34]
Host: [localhost:65021]
{"colour":"pink","orderNumber":16}


Matched response definition:
{
  "status" : 200,
  "proxyBaseUrl" : "http://localhost:65023"
}

Response:
HTTP/1.1 200
Date: [Thu, 06 Jul 2023 19:43:53 GMT]
Content-length: [17]
Content-Type: [application/json]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant