Anyone doing contract testing with any event syste...
# help
s
Anyone doing contract testing with any event system in aws e.g. SNS, SQS, and Eventbridge
f
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
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