Hi All, We are using PACT maven plugin to run our ...
# pact-jvm
m
Hi All, We are using PACT maven plugin to run our pact verification, my pom.xml looks like below When I ran pact verify, verification results are getting skipped with below error, Could you please let me know how can i resolve this error? Error: Skipping publishing verification results for source UrlSource(url=https://pactbroker.platform.dev.com/pacts/provider/Testprovider/consumer/Testconsumer/latest, pact=null)
y
You need a url to an explicit versioned pact, not the
latest
pact
☝️ 1
m
our requirement is to run only the latest available pact from a specific consumer ...that's why we have chosen latest...is there any other option apart from giving the versioned pact ?
y
use consumer version selectors, see the docs
pact url is for a single url, when a consumer pact changes
you want the provider verification which can select multiple pacts, so a consumer version selector of latest, (which really isn’t recommended, as it’s non deterministic )
m
Thanks for the quick info...but there were no examples for version selector in case of pact maven plugin...(we are not using any code,we are just using a pom.xml with required dependencies and plugins, then running the mvn pact:verify command)
m
Sorry for troubling you much...Can you please help me on how to give consumer alone in the selectors?
i am using like above but it says no pact files found
y
not sure on the specifics but you can pass consumer versions selectors as raw json as per those docs. If the combination you provide doesn’t return results you can check the pacts for verfication endpoint via the hal browser and check if you have pacts to verify with your given selectors.
m
our requirement is to run only the latest available pact from a specific consumer
why?