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:
commit
73c5497a16
1 changed files with 4 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue