Fix: Adding alarm arn to describe alarms response (#3409)
* Fix: adding alarm arn to describe alarms response * Fix:Delete subscriptions on delete topic * modified tests Co-authored-by: usmankb <usman@krazybee.com>
This commit is contained in:
parent
68e3d394ab
commit
9970be2309
5 changed files with 20 additions and 3 deletions
|
|
@ -10,6 +10,8 @@ import pytz
|
|||
import sure # noqa
|
||||
|
||||
from moto import mock_cloudwatch
|
||||
from moto.cloudwatch.utils import make_arn_for_alarm
|
||||
from moto.core import ACCOUNT_ID
|
||||
|
||||
|
||||
@mock_cloudwatch
|
||||
|
|
@ -140,6 +142,8 @@ def test_describe_alarms_for_metric():
|
|||
alarms = conn.describe_alarms_for_metric(MetricName="cpu", Namespace="blah")
|
||||
alarms.get("MetricAlarms").should.have.length_of(1)
|
||||
|
||||
assert "testalarm1" in alarms.get("MetricAlarms")[0].get("AlarmArn")
|
||||
|
||||
|
||||
@mock_cloudwatch
|
||||
def test_describe_alarms():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue