X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=osm_mon%2Ftest%2FOpenStack%2Funit%2Ftest_alarming.py;fp=osm_mon%2Ftest%2FOpenStack%2Funit%2Ftest_alarming.py;h=7368f13e25109b2f9a40b5e9a04a02ad1d529ac8;hb=e01346dcc8e4e4986d7a475259b2e451a8fe45f6;hp=8c3841af759e401be4f7b845ccc8dc827ab4b9de;hpb=59c6f793318bb42f2b311b37ef9c6fc3ceebe36f;p=osm%2FMON.git diff --git a/osm_mon/test/OpenStack/unit/test_alarming.py b/osm_mon/test/OpenStack/unit/test_alarming.py index 8c3841a..7368f13 100644 --- a/osm_mon/test/OpenStack/unit/test_alarming.py +++ b/osm_mon/test/OpenStack/unit/test_alarming.py @@ -95,7 +95,7 @@ class TestAlarming(unittest.TestCase): "granularity": "300", "metric": "disk.write.requests", "aggregation_method": "mean", "threshold": 60, "resource_id": "my_r_id"}, - "alarm_actions": ["http://localhost:8662"], "state": "ok", "type": "gnocchi_resources_threshold", + "alarm_actions": ["http://localhost:8662"], "repeat_actions": True, "state": "ok", "type": "gnocchi_resources_threshold", "severity": "critical"} perf_req.assert_called_with( "alarm_endpoint/v2/alarms/", auth_token, @@ -235,7 +235,8 @@ class TestAlarming(unittest.TestCase): "severity": "low", "state": "ok", "type": "gnocchi_resources_threshold", - "alarm_actions": ["http://localhost:8662"]}) + "alarm_actions": ["http://localhost:8662"], + "repeat_actions": True}) @mock.patch.object(Config, "instance") @mock.patch.object(Common, "perform_request") @@ -264,7 +265,8 @@ class TestAlarming(unittest.TestCase): "severity": "low", "state": "alarm", "type": "gnocchi_resources_threshold", - "alarm_actions": ["http://localhost:8662"]}) + "alarm_actions": ["http://localhost:8662"], + "repeat_actions": True}) def test_check_invalid_payload(self): """Test the check payload function for an invalid payload."""