1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

Merge pull request #2075 from irdan/irdan/Alarm-Update

[rackspace|monitoring] Add alarm update test
This commit is contained in:
Kyle Rames 2013-08-15 13:44:30 -07:00
commit 73c5497a16

View file

@ -36,11 +36,10 @@ Shindo.tests('Fog::Rackspace::Monitoring | alarm_tests', ['rackspace','rackspace
tests('#fail to create new alarm(-1)').raises(Fog::Rackspace::Monitoring::BadRequest) do
account.create_alarm(entity_id, {:type => ""})
end
# Commenting out update because incorrect update throws a 502
#tests('#fail to update invalid alarm(-1)').raises(Fog::Rackspace::Monitoring::NotFound) do
#options = { :testing => "Bar" }
#response = account.update_alarm(-1,-1,options)
#end
tests('#fail to update invalid alarm(-1)').raises(Fog::Rackspace::Monitoring::NotFound) do
options = { :testing => "Bar" }
response = account.update_alarm(-1,-1,options)
end
tests('#fail to list alarms').raises(Fog::Rackspace::Monitoring::NotFound) do
account.list_alarms(-1)
end