Module: check_mk
Branch: master
Commit: cdcbb0f64dc7aa19401b030af597532492143374
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=cdcbb0f64dc7aa…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Jan 24 13:13:32 2019 +0100
Splitted up rulespec classes into several special classes
Depending on the type of base class the specific ruleet class needs to
override another subset of properties. This makes things a little more
explicit.
* HostRulespec / ServiceRulespec: Managing the specification of a host
or service ruleset that computes a value.
* BinaryHostRulespec / BinaryServiceRulespec: Managing the specification
of a host or service ruleset that computes a binary value for a host
or service
However, the single attributes all need to be checked and probably
cleaned up.
CMK-1572
Change-Id: I8f68a2f9e3f34d126efeb43c5c84497ef1483880
---
cmk/gui/plugins/wato/__init__.py | 4 +
cmk/gui/plugins/wato/check_mk_configuration.py | 156 +++++++++---------
cmk/gui/plugins/wato/utils/__init__.py | 5 +
cmk/gui/watolib/rulespecs.py | 212 ++++++++++++++++++++-----
tests/unit/cmk/gui/watolib/test_rulespecs.py | 39 +++--
5 files changed, 275 insertions(+), 141 deletions(-)
Diff:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=cdcbb0f64d…