Module: check_mk
Branch: master
Commit: 9ceaa3ccd47a40ded125ea9d0eeabe9bc1c9450a
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=9ceaa3ccd47a40…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Aug 29 10:29:56 2016 +0200
Web tests: Disable warning message when making "insecure" SSL tests
---
tests/testlib/__init__.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/tests/testlib/__init__.py b/tests/testlib/__init__.py
index d8fc4ba..ce2bdee 100644
--- a/tests/testlib/__init__.py
+++ b/tests/testlib/__init__.py
@@ -15,6 +15,10 @@ import subprocess
from urlparse import urlparse
from BeautifulSoup import BeautifulSoup
+# Disable insecure requests warning message during SSL testing
+from requests.packages.urllib3.exceptions import InsecureRequestWarning
+requests.packages.urllib3.disable_warnings(InsecureRequestWarning)
+
try:
import simplejson as json
except ImportError: