Merge "[MON] Fixes notifier bug during alarm triggering" v4.0 BUILD_v4.0.1_1 BUILD_v4.0.1_2
authorlavado <glavado@whitestack.com>
Fri, 6 Jul 2018 19:14:23 +0000 (21:14 +0200)
committerGerrit Code Review <root@osm.etsi.org>
Fri, 6 Jul 2018 19:14:23 +0000 (21:14 +0200)
1  2 
osm_mon/plugins/OpenStack/Aodh/notifier.py
osm_mon/test/OpenStack/unit/test_notifier.py

@@@ -98,9 -98,9 +98,9 @@@ class TestNotifier(unittest.TestCase)
          self.handler.do_POST()
  
          set_head.assert_called_once()
-         notify.assert_called_with(json.dumps(post_data))
+         notify.assert_called_with(post_data)
  
 -    @mock.patch.object(KafkaProducer, "notify_alarm")
 +    @mock.patch.object(KafkaProducer, "publish_alarm_response")
      @mock.patch.object(DatabaseManager, "get_alarm")
      def test_notify_alarm_valid_alarm(
              self, get_alarm, notify):