Alison Stuart
08/09/2022, 8:47 PMMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Slackbot
08/09/2022, 9:24 PMMatt (pactflow.io / pact-js / pact-go)
80 on 00.0.11.184. That looks to be a non-local IP address, and the verifier is unable to reach it. You might find that instead of pointing to localhost , pointing to 127.0.0.1 (or the correct local IP) might workAlison Stuart
08/10/2022, 1:45 PMstateHandlers: {
[null]: () => {
// This is the "default" state handler, when no state is given
console.log('hit null state, handling')
}
},
to my Verifier.Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Alison Stuart
08/10/2022, 1:47 PMAlison Stuart
08/10/2022, 1:48 PMFinished verifying writing
Reading json outputfile ...writing/api/app/tests/pact-tests/pact-verify-result.json
6 examples, 2 failures
Verification Failed...Alison Stuart
08/10/2022, 1:50 PMMatt (pactflow.io / pact-js / pact-go)
We are not mocking the server.do you mean, you’re hitting a live service or that you aren’t mocking dependencies? In case it’s not clear, you should definitely not mock the provider that you’re verifying
Alison Stuart
08/10/2022, 2:02 PMAlison Stuart
08/10/2022, 2:02 PMAlison Stuart
08/10/2022, 2:19 PM"Has no animals": () => {
animalRepository.clear()
return Promise.resolve(`Animals removed from the db`)
},
Is the Promise being referred to some hypothetical animalRepository.clear() function that wouldn't exist in my context? Or is this a default behavior inside the Pact stateHandler where I could put Promise.resolve('Completed Pact Verify')?Alison Stuart
08/10/2022, 3:02 PMMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Beth (pactflow.io/Pact Broker/pact-ruby)
Matt (pactflow.io / pact-js / pact-go)
Beth (pactflow.io/Pact Broker/pact-ruby)
Matt (pactflow.io / pact-js / pact-go)