Module: check_mk
Branch: master
Commit: f72040ead729d2ee3f0b0771dafd44951160ef35
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=f72040ead729d2…
Author: Moritz Kiemer <mo(a)mathias-kettner.de>
Date: Thu Mar 28 07:47:00 2019 +0100
check_http: stop testing invalid params
We had "allow_empty=False" for this parameter.
CMK-1873
Change-Id: Iee56ed6634daecb7834aca775afb49aa96b0d3b8
---
tests/unit/checks/test_check_http.py | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/tests/unit/checks/test_check_http.py b/tests/unit/checks/test_check_http.py
index 3bcffc7..1244117 100644
--- a/tests/unit/checks/test_check_http.py
+++ b/tests/unit/checks/test_check_http.py
@@ -69,29 +69,29 @@ pytestmark = pytest.mark.checks
),
(
(None, {
- 'virthost': (None, True),
+ 'virthost': ("virtual.host", True),
'proxy': "foo.bar",
}),
- ['-I', 'foo.bar'],
+ ['-I', 'foo.bar', '-H', 'virtual.host'],
),
(
(None, {
- 'virthost': (None, False),
+ 'virthost': ("virtual.host", False),
'proxy': "foo.bar",
}),
- ['-I', 'foo.bar'],
+ ['-I', 'foo.bar', '-H', 'virtual.host'],
),
(
(None, {
- 'virthost': (None, True),
+ 'virthost': ("virtual.host", True),
}),
- [],
+ ['-H', 'virtual.host'],
),
(
(None, {
- 'virthost': (None, False),
+ 'virthost': ("virtual.host", False),
}),
- ['-I', '$_HOSTADDRESS_4$'],
+ ['-I', '$_HOSTADDRESS_4$', '-H',
'virtual.host'],
),
])
def test_check_http_argument_parsing(check_manager, params, expected_args):