From 992170a6d92592a43337faa15ed29971dccb705f Mon Sep 17 00:00:00 2001 From: Daniel Reichert Date: Mon, 29 Jul 2013 13:15:36 -0700 Subject: [PATCH] [rackspace|monitoring] Adding alarm examples tests --- .../models/monitoring/alarm_examples_tests.rb | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 tests/rackspace/models/monitoring/alarm_examples_tests.rb diff --git a/tests/rackspace/models/monitoring/alarm_examples_tests.rb b/tests/rackspace/models/monitoring/alarm_examples_tests.rb new file mode 100644 index 000000000..ec2291e80 --- /dev/null +++ b/tests/rackspace/models/monitoring/alarm_examples_tests.rb @@ -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