diff --git a/sahara/tests/scenario/base.py b/sahara/tests/scenario/base.py index a916dac2..3591b0e1 100644 --- a/sahara/tests/scenario/base.py +++ b/sahara/tests/scenario/base.py @@ -124,7 +124,7 @@ class BaseTestCase(base.BaseTestCase): authurl=auth_url, user=username, key=password, - insecure=self.credentials['ssl_verify'], + insecure=not self.credentials['ssl_verify'], cacert=self.credentials['ssl_cert'], tenant_name=tenant_name) diff --git a/sahara/tests/scenario_unit/test_base.py b/sahara/tests/scenario_unit/test_base.py index 663bdb7f..806eeeea 100644 --- a/sahara/tests/scenario_unit/test_base.py +++ b/sahara/tests/scenario_unit/test_base.py @@ -172,7 +172,7 @@ class TestBase(testtools.TestCase): swift.assert_called_with(auth_version='2.0', user='admin', key='nova', - insecure=True, + insecure=False, cacert='/etc/tests/cert.crt', tenant_name='admin', authurl='http://localhost:5000/v2.0')