Ulises Cervino
12/20/2023, 3:52 PMMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Lewis Cowles
12/21/2023, 7:31 AMaws-wsgi
to convert to and from Lambda event payload from API Gateway and from Flask responses. Locally it just runs regular Flask in Connexion.
There are ASGI examples (for starlette, expressJS, golang etc) as well; it's usually googling your framework + lambda + adapter + apigateway
For PACT specifically; I'd likely use a separate entrypoint (command to launch code), so that PACT can test locally and in pipelines.
Just like other applications, you likely need to configure your app into a PACT compatible state (maybe some stubbed repositories or data access layer)
Ironically I still find PACT the most complex part of this setup. Currently we're using more OpenAPI contract validation than PACT for this reason. Our OpenAPI is manually authored as a result so that we are not going to have accidental changes or breakages between releases.Ulises Cervino
12/21/2023, 8:02 AMOur OpenAPI is manually authored as a result so that we are not going to have accidental changes or breakages between releases. (edited)❤️
Ulises Cervino
12/21/2023, 8:02 AMUlises Cervino
12/21/2023, 8:02 AMUlises Cervino
12/21/2023, 8:04 AMoneOf
with mappings).Ulises Cervino
12/21/2023, 8:04 AMUlises Cervino
12/21/2023, 8:05 AMoneOf
because it’s problematic anyway, but that’s a non-starterUlises Cervino
12/21/2023, 8:05 AMLewis Cowles
12/21/2023, 8:08 AMLewis Cowles
12/21/2023, 8:09 AMLewis Cowles
12/21/2023, 8:09 AMUlises Cervino
12/21/2023, 8:57 AMUlises Cervino
12/21/2023, 8:58 AMUlises Cervino
12/21/2023, 8:58 AM