@@ -1652,15 +1652,15 @@ describe('#index', () => {
1652
1652
'FooSuccessRateDropAlarm'
1653
1653
] ,
1654
1654
alarmsActions : [
1655
- 'AwsAlertsPagingTopic '
1655
+ 'AwsAlertsAlarm '
1656
1656
]
1657
1657
} ,
1658
1658
} ,
1659
1659
alarms : [
1660
1660
'successRateDrop'
1661
1661
] ,
1662
1662
topics : {
1663
- paging : {
1663
+ alarm : {
1664
1664
topic : 'api-paging-alarm-topic-test' ,
1665
1665
notifications :[
1666
1666
{
@@ -1698,14 +1698,14 @@ describe('#index', () => {
1698
1698
Foo1SuccessRateDropAlarm : {
1699
1699
Type : 'AWS::CloudWatch::Alarm' ,
1700
1700
} ,
1701
- AwsAlertsPagingTopic : {
1701
+ AwsAlertsAlarm : {
1702
1702
Type : 'AWS::SNS::Topic' ,
1703
1703
} ,
1704
1704
AlertsCompositeCompositeSuccessAlarm : {
1705
1705
Type : 'AWS::CloudWatch::CompositeAlarm' ,
1706
1706
Properties : expect . objectContaining ( {
1707
1707
AlarmRule : 'ALARM(fooservice-dev-foo-successRateDrop)' ,
1708
- AlarmActions : [ { Ref : 'AwsAlertsPagingTopic ' } ] ,
1708
+ AlarmActions : [ { Ref : 'AwsAlertsAlarm ' } ] ,
1709
1709
} ) ,
1710
1710
} ,
1711
1711
} ) ;
@@ -1738,14 +1738,14 @@ describe('#index', () => {
1738
1738
Foo1SuccessRateDropAlarm : {
1739
1739
Type : 'AWS::CloudWatch::Alarm' ,
1740
1740
} ,
1741
- AwsAlertsPagingTopic : {
1741
+ AwsAlertsAlarm : {
1742
1742
Type : 'AWS::SNS::Topic' ,
1743
1743
} ,
1744
1744
AlertsCompositeCompositeSuccessAlarm : {
1745
1745
Type : 'AWS::CloudWatch::CompositeAlarm' ,
1746
1746
Properties : expect . objectContaining ( {
1747
1747
AlarmRule : 'ALARM(fooservice-dev-foo-successRateDrop) OR ALARM(fooservice-dev-foo1-successRateDrop)' ,
1748
- AlarmActions : [ { Ref : 'AwsAlertsPagingTopic ' } ] ,
1748
+ AlarmActions : [ { Ref : 'AwsAlertsAlarm ' } ] ,
1749
1749
} ) ,
1750
1750
} ,
1751
1751
} ) ;
@@ -1778,7 +1778,7 @@ describe('#index', () => {
1778
1778
Foo1SuccessRateDropAlarm : {
1779
1779
Type : 'AWS::CloudWatch::Alarm' ,
1780
1780
} ,
1781
- AwsAlertsPagingTopic : {
1781
+ AwsAlertsAlarm : {
1782
1782
Type : 'AWS::SNS::Topic' ,
1783
1783
} ,
1784
1784
} ) ;
@@ -1805,7 +1805,7 @@ describe('#index', () => {
1805
1805
plugin . serverless . service . provider . compiledCloudFormationTemplate
1806
1806
. Resources
1807
1807
) . toMatchObject ( {
1808
- AwsAlertsPagingTopic : {
1808
+ AwsAlertsAlarm : {
1809
1809
Type : 'AWS::SNS::Topic' ,
1810
1810
} ,
1811
1811
} ) ;
0 commit comments