Harris Lee
06/30/2022, 11:36 PMapi gateway / service mesh
When services to services interact through api gateway or service mesh, what is the boundary of the consumer test?
I think from consumer <-> api gateway/mesh MOCK
and generate pact then pact <-> api gateway/mesh + Provider
is that right approach? but for me, api gateway / mesh is just one layer to invoke function or other services. how to write contract for that?
for example, most of AWS lambda integrate with API gateway. I can see example of lambda to invoke the function to write contract test, but I am not really sure how to deal with api gateway / service mesh layer boundary. hope it makes a sense lolMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Harris Lee
07/01/2022, 3:11 AMHarris Lee
07/01/2022, 3:52 AMUse a test only controller that is aware of the different public-facing request paths
is that mean we can skip gateway part, but adding gateway like layer for testing purpose? and get request and response?Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Harris Lee
07/03/2022, 11:56 PMMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Harris Lee
07/04/2022, 12:03 AMHarris Lee
07/04/2022, 12:04 AMgraphql-mesh
is kind of same as api gateway
but I am not sure, CDCT should send REST(without mesh) or just include graphql mesh + provider and send graphql callHarris Lee
07/04/2022, 12:05 AMMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Harris Lee
07/04/2022, 12:09 AMMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Harris Lee
07/04/2022, 12:10 AMMatt (pactflow.io / pact-js / pact-go)
Harris Lee
07/04/2022, 12:14 AMHarris Lee
07/04/2022, 12:15 AMMatt (pactflow.io / pact-js / pact-go)