Hi Folks, hope you're doing well. Please let me kn...
# pact-jvm
d
Hi Folks, hope you're doing well. Please let me know if someone has encountered it. In pact, I have written a consumer contract and published it to pact broker, and that contract has 3 endpoints in it. Now in provider application I have 3 profiles and each profile is configured to one endpoint. I will be running my provider tests against only one profile at a time, and other 2 profile endpoints shouldn't get validated. How I can handle that in provider application. (In Spring boot)
m
Is that just during testing or how you plan to run the verifier? I don’t think you can run the verification process n times and publish to a broker, because the results are not merged (as far as I know). Why would you want to run them in different profiles? I think it’s probably more typical to run the entire pact suite in one profile. I’m not a Java/JVM ecosystem expert.
d
That was specific use case I was dealing with where for few endpoints response differs based on the environment. Also I was able to solve in using @pactFilter and enabling the specific spring profile and the run time.