Hello. Im having trouble getting my pact verified by the Provider using pactflow. The configuration is junit5+spring jvm. I can get the consumer pact uploaded to the pactflow fine, but when i run the verification test on the Provider i get Connection refused. Im using the token for @PactBrokerAuth. Is there any troubleshooting tips anyone can recommend?
✅ 1
m
Matt (pactflow.io / pact-js / pact-go)
05/09/2022, 11:59 AM
Connection refused indicates a request is being sent to a server that is probably not running. Is your provider running when you run the tests?
Perhaps if you can share your provider code we can take a look
g
Gustavs
05/09/2022, 12:28 PM
@Matt (pactflow.io / pact-js / pact-go) Thanks for quick response. I shared the repo on github. The provider is customer. https://github.com/Gustavs920/pactflowtest. I used the read/write personal token as token, which is not committed here.
Gustavs
05/09/2022, 2:02 PM
Nevermind. Figured it out with the test project from pactflow. Thanks anyway
m
Matt (pactflow.io / pact-js / pact-go)
05/09/2022, 9:12 PM
Thanks, what was it in the end?
g
Gustavs
05/10/2022, 6:56 AM
I moved the authentication and host to the application.yml and it started working.