NSO - added validate_certs parameter to allow for ignoring of SSL certificates (#51981)

* added validate_certs paramter to allow for ignoring of SSL certificates

* formatting

* updated NSO unit tests with validate_certs variable

* fixed NSO tests
This commit is contained in:
Theron Savery
2019-02-25 09:17:56 -05:00
committed by John R Barker
parent 1563dc32e8
commit 1f7ffe2619
9 changed files with 46 additions and 26 deletions

View File

@@ -55,7 +55,7 @@ class MockResponse(object):
return self.body
def mock_call(calls, url, timeout, data=None, headers=None, method=None):
def mock_call(calls, url, timeout, validate_certs, data=None, headers=None, method=None):
if len(calls) == 0:
raise ValueError('no call mock for method {0}({1})'.format(
url, data))