Satish Autade
10/19/2023, 6:10 AMpact-js
like MessageConsumerPact
or asynchronousBodyHandler
, etc.
I am referring to following links:
https://dius.com.au/2017/08/22/contract-testing-serverless-and-asynchronous-applications/
https://dius.com.au/2018/10/01/contract-testing-serverless-and-asynchronous-applications-part-2/
I found one example in Javascript that uses SAM and SNS but its not clear to me what part of the pact test in this repo generates the pact json file. May be I am missing something obvious here.
Would really appreciate if someone can explain how it generates json contract.
Are there any Docs that show how to use MessageConsumerPact with a detailed example?Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
receiveProductUpdate
<- thing that processes (consumers) the eventMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Satish Autade
10/19/2023, 6:32 AMverifyProvider
verifies a contract json on provider service, as opposed to generating it on the consumer side. Could be just me though. 😛
Also the event handler I want to test needs 6 parameters. Do I just pass those in the asynchronousBodyHandler
? Is there a doc on how to use this method?Satish Autade
10/19/2023, 6:51 AMMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Satish Autade
10/19/2023, 11:33 AM