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

[rackspace|monitoring] Adding alarm examples tests

This commit is contained in:
Daniel Reichert 2013-07-29 13:15:36 -07:00
parent a6634b05c1
commit 992170a6d9

View file

@ -0,0 +1,19 @@
Shindo.tests('Fog::Rackspace::Monitoring | alarm_examples', ['rackspace','rackspace_monitoring']) do
pending if Fog.mocking? && !mocks_implemented
service = Fog::Rackspace::Monitoring.new
alarm_example_id = 'remote.http_body_match_1'
tests('success') do
tests('all').succeeds do
service.alarm_examples.all
end
tests('get').succeeds do
service.alarm_examples.get(alarm_example_id)
end
tests('evaluate').succeeds do
values = {'string'=> '12345'}
service.alarm_examples.evaluate(alarm_example_id,values)
end
end
end