From ca0f2f2b0d917f430f71747bf407834bb21f0335 Mon Sep 17 00:00:00 2001 From: Evgeny Sikachev Date: Mon, 14 Sep 2015 21:29:31 +0300 Subject: [PATCH] Fix working scenario tests with swiftclient Value "insecure" in swiftclient should have inverse value of ssl_verify. Change-Id: Ieb6e46b8f5969bfc3b47ee293c346fb2977103c3 Closes-bug: #1484536 --- sahara/tests/scenario/base.py | 2 +- sahara/tests/scenario_unit/test_base.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sahara/tests/scenario/base.py b/sahara/tests/scenario/base.py index cb81e2c4..f056b4e0 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 9debd3b4..049b00b9 100644 --- a/sahara/tests/scenario_unit/test_base.py +++ b/sahara/tests/scenario_unit/test_base.py @@ -171,7 +171,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')