Skip to content

Instantly share code, notes, and snippets.

@brianfoody
Created July 9, 2021 03:42
Show Gist options
  • Save brianfoody/9600ed84bc381e3d12331ea08d6ef729 to your computer and use it in GitHub Desktop.
Save brianfoody/9600ed84bc381e3d12331ea08d6ef729 to your computer and use it in GitHub Desktop.
BDD Test for broadcasting of SNS
Feature: Broadcast that a item has been added so that downstream listeners can action.
Scenario: When a new item is added to the table it should be published to the mySNSTopicName topic.
Given I have a listener subscribed to the "mySNSTopicName" SNS topic
And I have an "MyDynamoTable" table
When an item is added
Then I will receive a message notifying me of it
And I will be able to read it from the table.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment