Refactors codebase 92/6692/3
authorBenjamin Diaz <bdiaz@whitestack.com>
Fri, 12 Oct 2018 20:37:30 +0000 (17:37 -0300)
committerBenjamin Diaz <bdiaz@whitestack.com>
Tue, 16 Oct 2018 19:52:26 +0000 (16:52 -0300)
commit93699898c51364cde193d8d441f4aed45670e7bf
tree103ed22a76d2d610f2639fd274986dcc3b0942e4
parente80db311a29dc8562dc84ae3336af167bac2ec5b
Refactors codebase

Refactors duplicated code. Renames and reorganizes classes and methods.
Refactors tests.
Kafka message handling is removed from plugins. They now return response msg
dict and top level code handles publishing.

Signed-off-by: Benjamin Diaz <bdiaz@whitestack.com>
Change-Id: I9826db9c4586d961f40af6cb194fc388fe855ae1
38 files changed:
osm_mon/core/message_bus/common_consumer.py
osm_mon/core/message_bus/consumer.py [changed mode: 0755->0644]
osm_mon/core/message_bus/producer.py [changed mode: 0755->0644]
osm_mon/core/models/acknowledge_alarm.json [deleted file]
osm_mon/core/models/acknowledge_alarm_req.json [new file with mode: 0644]
osm_mon/plugins/CloudWatch/access_credentials.py
osm_mon/plugins/CloudWatch/connection.py
osm_mon/plugins/CloudWatch/metric_alarms.py
osm_mon/plugins/CloudWatch/metrics.py
osm_mon/plugins/CloudWatch/plugin_alarm.py
osm_mon/plugins/CloudWatch/plugin_metric.py
osm_mon/plugins/OpenStack/Aodh/alarm_handler.py [new file with mode: 0644]
osm_mon/plugins/OpenStack/Aodh/alarming.py [deleted file]
osm_mon/plugins/OpenStack/Aodh/notifier.py
osm_mon/plugins/OpenStack/Gnocchi/metric_handler.py [new file with mode: 0644]
osm_mon/plugins/OpenStack/Gnocchi/metrics.py [deleted file]
osm_mon/plugins/OpenStack/response.py
osm_mon/plugins/vRealiseOps/kafka_consumer_vrops.py [deleted file]
osm_mon/plugins/vRealiseOps/mon_plugin_vrops.py
osm_mon/plugins/vRealiseOps/plugin_receiver.py
osm_mon/plugins/vRealiseOps/vROPs_Webservice/vrops_webservice
osm_mon/test/OpenStack/integration/__init__.py
osm_mon/test/OpenStack/integration/test_alarm_integration.py
osm_mon/test/OpenStack/integration/test_metric_integration.py
osm_mon/test/OpenStack/integration/test_notify_alarm.py
osm_mon/test/OpenStack/unit/__init__.py
osm_mon/test/OpenStack/unit/test_alarm_req.py
osm_mon/test/OpenStack/unit/test_alarming.py
osm_mon/test/OpenStack/unit/test_metric_calls.py
osm_mon/test/OpenStack/unit/test_metric_req.py
osm_mon/test/OpenStack/unit/test_notifier.py
osm_mon/test/OpenStack/unit/test_responses.py
osm_mon/test/VMware/__init__.py
osm_mon/test/VMware/test_mon_plugin_vrops.py
osm_mon/test/VMware/test_plugin_receiver.py
osm_mon/test/core/kafka_test.py [deleted file]
osm_mon/test/core/test_common_consumer.py
osm_mon/test/core/test_producer.py [deleted file]