Too Long; Didn't Read
Event-driven is a key characteristic of serverless architecture. Often Lambda functions publish events to SNS topics or Kinesis streams instead of calling downstream APIs directly. This is a great way for building systems in a loosely-coupled way. But it’s not without its drawbacks: they’re harder to test end-to-end. In this post, we’ll discuss two ways you can include SNS and Kineis outputs in your tests. Both approaches follow the same pattern of deploying resources only for the e2e-test stage.