I have a AWS pipeline connecting multiple resources to do 1 task which looks like as follows:
The data is listened from a SNS topic and then moved to Lambda where it is processed. From lambda, step function gets triggered. And then again one more lambda which will push to SNS topic.
So, Should the integration test cases for such kind of flow should cover all the resources at one time or one resource at one time?
If we take all the resources in one integration test, the way I am thinking to write the test case is by sending the message to first SNS and by reading from last SNS.
But I am not sure, that should we do this way or not? because then every test case might take long time and we might have to put a poller on last SNS topic.
What do you recommend on writing integration test cases for such flow?