chiara pascucci
04/19/2023, 9:11 AMJan Królikowski
04/19/2023, 10:30 AMWe cannot run the api locally, thus we are considering running the tests against a deployed version of the API (in a test env)As long as you trust this environment that should be doable. However, the tradeoff is isolation and control over the environment. Considering contract tests executed as a part of consumer build pipeline, it might get cumbersome when multiple consumer pipelines will act on the same test environment. The state of provider service might change during the test execution and the flakiness might happen, failing the consumer build.
The deployed API has an authentication layer, making it very hard to set up the request properly in a test fileread up on request filters - it should help
Matt (pactflow.io / pact-js / pact-go)
Darren Oc
04/21/2023, 12:17 PMWe cannot run the api locally
I think I would try to solve this challenge, before I went down any other paths. There are so many development velocity benefits to being able to spin up a reduced version of a service locally, even if you have to mock out the database or mock out the authentication provider to do so.