snowdrop-zen / quarkus

Quarkus: Supersonic Subatomic Java.
https://quarkus.io
Apache License 2.0
1 stars 0 forks source link

Allow QuarkusTest to override base URL of REST client #114

Closed snowdrop-bot closed 4 years ago

snowdrop-bot commented 4 years ago

As discussed on Zulip it could be useful if a test could override the base URL of a given REST client.

One use case (as discussed on Zulip) would be for a PACT consumer test, where the test invokes some method on a REST client (directly or indirectly through some service in the application under test), which in turn should direct its request to some PACT mock server, which records the request and returns a canned response.

As a workaround the test currently has to create a REST client manually using RestClientBuilder.


https://github.com/quarkusio/quarkus/issues/10126


$upstream:10126$