1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/tests/aws/models/cloud_watch/alarm_history_tests.rb

22 lines
530 B
Ruby

Shindo.tests("AWS::CloudWatch | alarm_histories", ['aws', 'cloudwatch']) do
pending if Fog.mocking?
tests('success') do
tests("#all").succeeds do
Fog::AWS[:cloud_watch].alarm_histories.all
end
new_attributes = {
:alarm_name => 'tmp-alarm',
:end_date => '',
:history_item_type => 'StateUpdate',
:max_records => 1,
:start_date => ''
}
tests('#new').returns(new_attributes) do
Fog::AWS[:cloud_watch].alarm_histories.new(new_attributes).attributes
end
end
end