Merge pull request #1422 from godfried/fix-cloudwatch-value

Change name of 'state' attribute of 'FakeAlarm' CloudWatch model to '…
This commit is contained in:
Steve Pulec 2018-03-06 22:36:50 -05:00 committed by GitHub
commit de6ded5aab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 4 deletions

View file

@ -127,12 +127,14 @@ def test_alarm_state():
)
len(resp['MetricAlarms']).should.equal(1)
resp['MetricAlarms'][0]['AlarmName'].should.equal('testalarm1')
resp['MetricAlarms'][0]['StateValue'].should.equal('ALARM')
resp = client.describe_alarms(
StateValue='OK'
)
len(resp['MetricAlarms']).should.equal(1)
resp['MetricAlarms'][0]['AlarmName'].should.equal('testalarm2')
resp['MetricAlarms'][0]['StateValue'].should.equal('OK')
# Just for sanity
resp = client.describe_alarms()