Markus Opolka
4fbb0c828a
Add flag to override URL unreachable state
...
- I refactored the Nagios helper a bit to integrate this functionality a bit simpler.
Before we had distinct methods on the helper that added warn,crit,unko message, now
there's a general method that takes an int as parameter.
This way we avoid if-else structures for the new functionality.
2024-04-09 14:07:45 +02:00
Markus Opolka
e96bba0eb8
Refactor for a leaner main function
...
- Also added tests for TLS options
2024-04-09 14:07:36 +02:00
Markus Opolka
27c710b2ea
Extend tests for array syntax
2024-03-22 15:45:25 +01:00
Markus Opolka
25fb340bbb
Add handling of empty JSON return values
...
- Will now throw a CRITICAL
2020-06-26 10:39:37 +02:00
Markus Opolka
866a12ea07
Add JSON parsing on HTTPError
...
- Only if response contains JSON
2020-06-19 14:26:59 +02:00
Markus Opolka
941afeed89
Move main entrypoint to own function for simpler testing
2020-06-19 13:12:51 +02:00
Markus Opolka
b9a583f281
Add Makefile and requirements.txt for easier testing
2020-06-19 13:12:48 +02:00
Markus Opolka
c90b0323f5
Show returned JSON in OK Status when performance data is requested
2020-03-18 07:41:23 +01:00
Markus Opolka
1ac160e8c2
Add boilerplate for CLI tests
2020-03-18 07:41:23 +01:00
Markus Opolka
6fc41612c4
Add unittest for debugprint
2020-03-18 07:41:23 +01:00
Markus Opolka
f567c1ca0c
Add unittest for metric key alias
2020-03-18 07:41:23 +01:00
Markus Opolka
2c98e840e8
Extend unittest coverage
2020-03-18 07:41:18 +01:00
Markus Opolka
1a9e1e9048
Add unittest for NagiosHelper
2020-03-15 09:45:18 +01:00
Markus Opolka
71cbd98e79
Add value_separator option to specify how JSON values are being split
...
- Fixes issue 43
2020-03-08 11:28:27 +01:00
Markus Opolka
e4801227bf
Add boundary check for SubArrayElement function
...
- Fixes Issue 34
2020-03-05 10:05:32 +01:00
Markus Opolka
b7c0b0595e
Add unittest for argsparse
2020-03-03 12:12:52 +01:00
Markus Opolka
375da5d605
Add test case for key_value_list_unknown
2020-03-03 11:59:36 +01:00
Markus Opolka
174686a980
Move test to separat file
2020-03-03 09:48:10 +01:00