Anyone here could help in providing an example for writing test cases for SQS SendMessage?
f
Frank
04/10/2022, 10:26 PM
Hey @Uday Bhaskar Gajavalli, can you elaborate on what you are trying to test?
Frank
04/10/2022, 10:26 PM
Can u test and see if the consumer function is called with the expected payload?
u
Uday Bhaskar Gajavalli
04/11/2022, 5:39 AM
I have tested with consumer function it's working fine with the payload..
I have written a logic where we supposed to redirect the body according to type into their respective queues. So I'm stuck with unit testing this logic from lambda function which has redirection logic
Uday Bhaskar Gajavalli
04/12/2022, 3:37 AM
Also somehow, consumer function of every lambda function is invoking exactly twice.
Is there any solution for this?