Closed sydseter closed 4 years ago
I am unable to replicate this. I've tested with our broker (version 2.68.1), and it works the same way regardless of the order of the tags. Can you confirm the version of the broker you are using?
I am using 2.66. I’ll upgrade to 2.68.1 and get back to you.
verified working when using the 2.68.1 version
dependencies:
Given that a provider is using a consumer tag "v2" that hasn't been published yet and given that the contract published under v1 still is identical with v2, then the following seems to happen depending on whether the non-existing consumer tag comes first or last.
mvn pact:publish -Dpactbroker.host=localhost -Dpactbroker.port=9292 -Dpact.consumer.tags="v1"
What I would have expected:
When -Dpactbroker.consumerversionselectors.tags="v2, v1" is specified then I would expect the pact provider to ignore the non-existing v2 tag and download v1 for verification.
What shouldn't happen:
the pact provider verification failing because one of the consumer tags hasn,t been published to the broker yet.