diff --git a/tests/aws/models/cloud_watch/alarm_data_tests.rb b/tests/aws/models/cloud_watch/alarm_data_tests.rb index 44da0080f..d00dde8b6 100644 --- a/tests/aws/models/cloud_watch/alarm_data_tests.rb +++ b/tests/aws/models/cloud_watch/alarm_data_tests.rb @@ -1,22 +1,24 @@ Shindo.tests("AWS::CloudWatch | alarm_data", ['aws', 'cloudwatch']) do + pending if Fog.mocking? + tests('success') do tests("#all").succeeds do Fog::AWS[:cloud_watch].alarm_data.all end - + alarm_name_prefix = {'AlarmNamePrefix'=>'tmp'} - tests("#all_by_prefix").succeeds do + tests("#all_by_prefix").succeeds do Fog::AWS[:cloud_watch].alarm_data.all(alarm_name_prefix) end - + namespace = 'AWS/EC2' metric_name = 'CPUUtilization' tests("#get").succeeds do Fog::AWS[:cloud_watch].alarm_data.get(namespace, metric_name).to_json end - + new_attributes = { :alarm_name => 'tmp-alarm', :comparison_operator => 'GreaterThanOrEqualToThreshold', @@ -30,11 +32,11 @@ Shindo.tests("AWS::CloudWatch | alarm_data", ['aws', 'cloudwatch']) do tests('#new').returns(new_attributes) do Fog::AWS[:cloud_watch].alarm_data.new(new_attributes).attributes end - + tests('#create').returns(new_attributes) do Fog::AWS[:cloud_watch].alarm_data.create(new_attributes).attributes end - + end end diff --git a/tests/aws/models/cloud_watch/alarm_history_tests.rb b/tests/aws/models/cloud_watch/alarm_history_tests.rb index 068c6c169..07db10aeb 100644 --- a/tests/aws/models/cloud_watch/alarm_history_tests.rb +++ b/tests/aws/models/cloud_watch/alarm_history_tests.rb @@ -1,10 +1,12 @@ 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 => '',