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
Fetching pacts from broker for an unknown provider should fail gracefully #356
Comments
This is reproducible with I'm looking at the master branch of pact-jvm, obviously the code is different there. I'm not sure why |
I think a flag to ignore missing pacts would be best, because in other cases a missing pact would be a problem and we would not want to have the build pass. I'll look into the differences between 2.4.x branch and master, they should be similar. |
Version 2.4.18 has been released with your changes. |
Amazing, thanks! |
I'm adding a verification step for a new provider service, which still doesn't have any consumer pacts written for, and so no pacts exist for it on our pact broker (it's not a participant in the broker yet). This means that
http://pact-broker/pacts/provider/new_provider/latest
returns a404 Not Found
.This should be considered OK by pact-jvm, because I don't think it makes sense to manually push some provider info to pact-broker just so that it doesn't fail, until a real pact is pushed by some consumer.
At the moment,
HalClient
fails with:The text was updated successfully, but these errors were encountered: