Anyone doing contract testing with any event system in aws e.g. SNS, SQS, and Eventbridge
f
Frank
12/21/2021, 10:27 PM
Hey @Simon Reilly, not sure if this is related, but I’ve seen ppl store a list of testing payload. And with an integration like test, they’d make AWS SDK calls to send the message to Topic/Queue/Bus, and check if the subscribers are called.
s
Simon Reilly
12/22/2021, 11:07 PM
Yeah, I like that idea. I am toying with the idea of passing around factories, that produce events. Putting TS typing in place for pub/sub handlers. The hard parts to test are the aws glue code, like filters etc. When the business logic is in the infrastructure testing seems hard