-
-
Notifications
You must be signed in to change notification settings - Fork 481
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
fallbackTag doesn't work and code throws NoPactsFoundException #1264
Comments
The fallback tag is passed on to the Pact broker. Can you provide debug level logs? It should show the request made to the Pact broker, as well as the response. Can you also confirm the version of your broker. |
Pact broker version is 2.59.2. Following are the debug level logs of provider:
|
Your broker does not support the new "pacts for verification" endpoint, that is why the fallback tag is not being used. |
This was referenced Mar 15, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am using 4.1.11 version of junit5 provider.
As per the documentation, I am specifying both tag and fallbackTag in my provider test class.
Now its supposed to use master tag contract if branch123 tag contract doesn't exist. However it doesn't work me and throws following error:
I can confirm that master tag does exist from pact broker as well as using that in tag field and running the test successfully.
Looking at code of VersionSelector, it seems that does have fallbackTag() method, however when I go into PactBroker, consumerVersionSelectors() method doesn't seem to have any reference of fallbackTag:
https://github.com/pact-foundation/pact-jvm/blob/4_1_11/provider/src/main/java/au/com/dius/pact/provider/junitsupport/loader/VersionSelector.java
https://github.com/pact-foundation/pact-jvm/blob/4_1_11/provider/src/main/java/au/com/dius/pact/provider/junitsupport/loader/PactBroker.java
Thanks.
The text was updated successfully, but these errors were encountered: