I have another question also, when verifying a pac...
# pact-jvm
j
I have another question also, when verifying a pact as a provider using the following attributes
Copy code
@PactBroker(url = "${pactbroker.url}", consumerVersionSelectors = {
        @VersionSelector(tag = "main")
})
I can see from the output that it is correctly targetting a main consumer
Copy code
Verifying a pact between saasConsumer and saasProvider for tag main
However whenever I look at the broker, it shows verifications against multiple previous versions of the contract both on the main branch and a couple of other feature branches, is there a reason for this?
m
The broker automatically versions the contract behind the scenes, separate to your consumer versions. If the hash of the contents is the same, and the provider verifies that pact, then any versions of the consumer associated with the same contract will also be validated
this is how a new consumer version can publish a new contract that hasn’t changed, and it’s still safe to deploy without re-testing the provider