Module: check_mk
Branch: master
Commit: 4b858f056e90108153722bc03a87937471ae97c0
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=4b858f056e9010…
Author: Óscar Nájera <on(a)mathias-kettner.de>
Date: Thu Sep 20 14:58:09 2018 +0200
Make slack notification plugin a python module of Check_MK
- This change allows to import the pluging and test it.
- A utils module is created to collect commonly used functions for
notification plugins
- Wrapper script to call module
Change-Id: I637a47ffd73711359d6608dce040db7b080471b3
---
cmk/notification_plugins/__init__.py | 0
cmk/notification_plugins/slack.py | 106 ++++++++++++++++++++++
cmk/notification_plugins/utils.py | 55 ++++++++++++
notifications/slack | 139 +----------------------------
tests/unit/cmk/notifications/test_slack.py | 42 +++++++++
tests/unit/cmk/notifications/test_utils.py | 31 +++++++
6 files changed, 237 insertions(+), 136 deletions(-)
Diff:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=4b858f056e…