# Functions
DiffJSON - function to prettify json diffs.
No description provided by the author
GetSlackMessageChannel allows hooking into the SendSlackMessage callback (to inspect messages).
SendSlackMessage is for sending a test slack message (should have started a test server that listens to /chat.PostMessage - see slack_test.go).
SetS3ReceiveChannel sets up a channel so we can tap into s3 object puts to just make sure we're writing what we think we are.
# Constants
SlackTokenSSMKey is a test SSM parameter store key.
# Variables
ExpectedAlarmDetails is the parsed struct of the above JSON.
GetMetricDataResponses provides some test GetMetricData api responses map key is the MetricDataQuery.Id.
InsufficientDataToOKAlarmDetails is for testing insufficient data -> ok alarm.
SuppressPagerDutyTrue is for testing events with disabled PD alerts.
TestEventJSON provides a test cw alarm eventbridge event.
TestEventJSONFromSQS - a test event as seen from eventbridge -> SQS -> lambda.
TestNoDataToOKAlarm is for testing with an alarm that just transitioned to OK from INSUFFICIENT_DATA.
TestOKAlarm is just a test cloudwatch alarm used for various tests (in the OK state).
TestGetParameterResponse defines some test reponses for get parameter.
TestGetParametersByPathResponse defines some test responses for get parameters by path.
No description provided by the author
TestTriggeredAlarm is just a test cloudwatch alarm used for various tests (in the OK state).
TriggeredAlarmDetails is a sample CW alarm in ALARM state.
# Structs
MockCWClient is a mock Cloudwatch client for testing.
MockPDClient is a mock PagerDuty (our own) client.
MockRetryer is the request.Retryer to use in our fake requests.
MockS3Client is a mock S3 client for testing.
MockSSMClient is a mock SSM client for testing.