X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=osm_mon%2Ftest%2FOpenStack%2Ftest_alarming.py;h=65705709699a6840fc7cebe41cbeb5868f8fe47b;hb=94f93f717ead448f13dc272ed765e008a0e64c81;hp=557a93dd7d0abb0eacb14c0d8db16f656da86f72;hpb=025aab041b561b8cd9f9a5f8ef209cdf6ba3b4ee;p=osm%2FMON.git diff --git a/osm_mon/test/OpenStack/test_alarming.py b/osm_mon/test/OpenStack/test_alarming.py index 557a93d..6570570 100644 --- a/osm_mon/test/OpenStack/test_alarming.py +++ b/osm_mon/test/OpenStack/test_alarming.py @@ -52,6 +52,8 @@ class Response(object): class TestAlarming(unittest.TestCase): """Tests for alarming class functions.""" + maxDiff = None + def setUp(self): """Setup for tests.""" super(TestAlarming, self).setUp() @@ -219,7 +221,8 @@ class TestAlarming(unittest.TestCase): "resource_type": "generic"}, "severity": "low", "state": "ok", - "type": "gnocchi_resources_threshold"}) + "type": "gnocchi_resources_threshold", + "alarm_actions": ["http://localhost:8662"]}) def test_check_valid_state_payload(self): """Test the check payload function for a valid payload with state.""" @@ -241,7 +244,8 @@ class TestAlarming(unittest.TestCase): "resource_type": "generic"}, "severity": "low", "state": "alarm", - "type": "gnocchi_resources_threshold"}) + "type": "gnocchi_resources_threshold", + "alarm_actions": ["http://localhost:8662"]}) def test_check_invalid_payload(self): """Test the check payload function for an invalid payload."""