Closed anddreiu closed 4 years ago
I've just tried to use the deprecated version of this:
@PactBroker(consumers = "consumerName", tags = "prod"
In this case the right consumer is taken (see below), but the retrieved pact is not the correct one:
2020-11-11 09:08:24.084 DEBUG [PactBrokerLoader.kt] Loading pacts from pact broker for provider providerName and consumerName version selectors [ConsumerVersionSelector(tag=prod, latest=true, consumer=consumerName, fallbackTag=null)]
The retrieved pact is the latest one, even if this does not have 'prod' tag. Very weird
4.1.11 has been released
Thanks @uglyog. This looks to be fixed now, but I think there is another issue because I am still not able to select the correct Pact file using tags. I've raised another issue for that: https://github.com/pact-foundation/pact-jvm/issues/1249.
Thanks
I have an issue when using tags on my pact files. I am using pact jvm 4.1.10, Pact Broker 2.68.1 and I am using JUnit to run the Provider tests. I am trying to use tags to retrieve the correct pact file when running the Provider tests for a specific consumer. So I've applied the below consumerVersionSelectors:
Unfortunately, the pact file retrieved is the latest one published in Pact Broker and it looks like it does not see the consumer that I've indicated above. Also the retrieved pact file does not have prod tag.
As @uglyog mentioned on slack, it looks like a defect because the consumer is null:
Thank you