notify-api-360 messages are hanging in pending forever

This commit is contained in:
Kenneth Kehl
2023-09-26 08:11:47 -07:00
parent 5e2d65a348
commit 309c49dc84
2 changed files with 38 additions and 23 deletions

View File

@@ -86,3 +86,21 @@ def test_check_sms_failure(notify_api, mocker):
assert "Failure" in mock_call
assert "fail" in mock_call
assert "notification.messageId" in mock_call
def test_extract_account_number_gov_cloud():
domain_arn = "arn:aws-us-gov:ses:us-gov-west-1:12345:identity/ses-abc.xxx.xxx.xxx"
actual_account_number = aws_cloudwatch_client._extract_account_number(
domain_arn, "us-gov-west-1"
)
expected_account_number = "12345"
assert actual_account_number == expected_account_number
def test_extract_account_number_gov_staging():
domain_arn = "arn:aws:ses:us-south-14:12345:identity/ses-abc.xxx.xxx.xxx"
actual_account_number = aws_cloudwatch_client._extract_account_number(
domain_arn, "us-south-14"
)
expected_account_number = "12345"
assert actual_account_number == expected_account_number