Bruno Holanda
09/04/2023, 5:17 PMBruno Holanda
09/05/2023, 2:12 PMMatt (pactflow.io / pact-js / pact-go)
--provider-states-setup-url
you provide. This URL could be on the provider application or a separate one. Some strategies for managing state include:
• Having endpoints in your application that are not active in production that create and delete your datastore state
• A separate application that has access to the same datastore to create and delete, like a separate App Engine module or Docker container pointing to the same datastore
• A standalone application that can start and stop the other server with different datastore states
So, TL;DR - you need to register a new route e.g. /_pact/provider-states
that will receive requests from Pact during verification. In that route, you should do what is needed to setup the stateMatt (pactflow.io / pact-js / pact-go)
Bruno Holanda
09/09/2023, 2:57 PMMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
80
is where your API is running and the Pact test is able to communicate to port 80
and check that your endpoints match the contractMatt (pactflow.io / pact-js / pact-go)
Bruno Holanda
09/12/2023, 11:50 AMBruno Holanda
09/12/2023, 11:51 AM