diff options
author | Azul <azul@leap.se> | 2014-04-15 17:17:36 +0200 |
---|---|---|
committer | Azul <azul@leap.se> | 2014-04-17 10:39:59 +0200 |
commit | be2971c2e615cc8a808822317d049e99f5183bdc (patch) | |
tree | ee2e77b91f661f5fa6c69f5d851eb848f38eb3b6 /Rakefile | |
parent | 44d2d031555c889b94e9738cb45740b16a4071ce (diff) |
refactor: move nagios specifs to nagios_test
nagios_test.run takes a function and executes it.
If it returns nothing or 0 and OK nagios message is printed.
If it returns sth. else this will be printed a a warning
If it raises an exception that will result in a CRITICAL report.
This way we can keep the nagios things outside the test cases and just write simple functions that either return 0, a warnign or raise a meaningful exception
Diffstat (limited to 'Rakefile')
0 files changed, 0 insertions, 0 deletions