Run Amazon SNS messages

Tricentis Tosca API Scan enables you to run messages dynamically using an SNS connection.

Amazon SNS support allows you to perform the following action:

  • Push: pushes your message to the topic.

To use SNS, you need to create the following in advance:

  • An AWS account.
  • An access key created at Identity and Access Management (IAM) cloud.
  • An SNS topic.

For detailed information on how to work with SNS topics, see the Amazon AWS documentation.

To run SNS messages, choose one of the following connection types and follow the steps below:

Option 1: Run predefined Amazon SNS messages with the Push action

  1. In the Connection section, go to Manage in order to create an SNS connection.

  2. From the Connection drop-down menu, select your connection.

  3. In the Action drop-down menu, select Push. The Endpoint field displays the ARN.

  4. In the Payload field, enter your message.

  5. Click Run to send the message.

Amazon SNS message in API Scan

Option 2: Run non-predefined Amazon SNS messages with the <explicit> connection

  1. From the Connection drop-down menu, select <explicit>.

  2. In the Endpoint field, copy the ARN from your topic in the Topics page in Amazon SNS webpage.

  3. In the Action drop-down menu, select Push.

  4. In the Auth tab, choose AWS Signature from the Authentication drop-down list and enter Access Key and Secret Key credentials for your AWS account.

  5. Optionally, enter your Session Token in case you have temporary credentials.

  6. Optionally, in case your endpoint does not contain a Region entry, select it from the drop-down menu. The default value is US East (Ohio).

  7. In the Payload field, enter your message.

  8. Click Run to send the message.

Auth tab for Amazon SNS message in API Scan

After running your Amazon SNS messages in API Scan, you can export them to Tosca Commander. This allows you to use the message information to define Module Attributes and verify their values. Depending on what you want to test, you can export the messages as an API TestCase.