diff options
author | Bill Morrisson <billmorrissonjr@gmail.com> | 2018-06-14 12:48:27 +0000 |
---|---|---|
committer | spiritus72 <billmorrissonjr@gmail.com> | 2018-06-15 11:19:40 +0100 |
commit | a199aaa6ab6b824262adec66ce5190832f7ce140 (patch) | |
tree | 1ad405c9300050ed054bfbd40ad63a2d733c3ad0 /sfc/tests/functest/sfc_two_chains_SSH_and_HTTP.py | |
parent | 8a3233fe8ecc6f3f6af2b32613c09938d74e6053 (diff) |
Fix "Remove the annoying WARNINGS when using XCI"
When executing the SFC tests in XCI, we constantly get a whole bunch of
annoying "InsecureRequestWarning" messages which does not allow to
follow what is going on in the test.
This patch filters all those errors leaving the output of the functest
results clean.
Change-Id: I3bd9519676222d00ee4a2c8d47084737cd9768aa
Signed-off-by: Bill Morrisson <billmorrissonjr@gmail.com>
Diffstat (limited to 'sfc/tests/functest/sfc_two_chains_SSH_and_HTTP.py')
-rw-r--r-- | sfc/tests/functest/sfc_two_chains_SSH_and_HTTP.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sfc/tests/functest/sfc_two_chains_SSH_and_HTTP.py b/sfc/tests/functest/sfc_two_chains_SSH_and_HTTP.py index 7a65f548..29441c63 100644 --- a/sfc/tests/functest/sfc_two_chains_SSH_and_HTTP.py +++ b/sfc/tests/functest/sfc_two_chains_SSH_and_HTTP.py @@ -10,6 +10,8 @@ import threading import logging +import urllib3 + import sfc.lib.odl_utils as odl_utils import sfc.lib.config as sfc_config from sfc.tests.functest import sfc_parent_function @@ -110,6 +112,9 @@ class SfcTwoChainsSSHandHTTP(sfc_parent_function.SfcCommonTestCase): if __name__ == '__main__': + # Disable InsecureRequestWarning errors when executing the SFC tests in XCI + urllib3.disable_warnings() + TESTCASE_CONFIG = sfc_config.TestcaseConfig('sfc_two_chains_SSH_and_HTTP') supported_installers = ['fuel', 'apex', 'osa', 'compass'] vnf_names = ['testVNF1', 'testVNF2'] |