You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi all!
I have the broker up and running on non-root path on API-gateway (https://api.gw.url/path/to/broker). To set it up on the contract tests, I am using the @PactBroker annotation:
java.lang.IllegalArgumentException: Invalid pact broker host specified ('api.gw.url/path/to/broker'). Please provide a valid host or specify the system property 'pactbroker.host'.
This error does not occur when I change the URL to connect the broker directly (without the gateway, to the root path), but for some reasons I have to use the gateway endpoint.
Is there a way to provide the full URL of the broker?
Cheers!
The text was updated successfully, but these errors were encountered:
I am currently looking for a workaround, but it seems that the only thing I can do for now is to rewrite classes PactBrokerLoader and PactJUnit5VerificationProvider in my own project, since we cannot override methods of these classes...
Is there a workaround to get a "path" param in the pact-broker url, or does anybody know when it could be improved?
As of 4.1.19/4.2.2 you can use @PactBroker(url = "https://api.gw.url/path/to/broker", authentication = @PactBrokerAuth(username = "username", password = "password"))
Hi all!
I have the broker up and running on non-root path on API-gateway (
https://api.gw.url/path/to/broker
). To set it up on the contract tests, I am using the@PactBroker
annotation:But with this config, error occurs:
This error does not occur when I change the URL to connect the broker directly (without the gateway, to the root path), but for some reasons I have to use the gateway endpoint.
Is there a way to provide the full URL of the broker?
Cheers!
The text was updated successfully, but these errors were encountered: