summaryrefslogtreecommitdiff
path: root/test/functional/test_swiftclient.py
diff options
context:
space:
mode:
authorZuul <zuul@review.opendev.org>2020-09-23 22:14:55 +0000
committerGerrit Code Review <review@openstack.org>2020-09-23 22:14:55 +0000
commit89994a7ad02cf11f723a9071a4c96dc757b30583 (patch)
treed771d3cf4d4fb5f2be64570dc13fa5fd304123d7 /test/functional/test_swiftclient.py
parentef7380048ef48bf64019482351a0ec5019d440a3 (diff)
parent2eba2dd42a7fa9663b59486f25707c16ef3731d7 (diff)
downloadpython-swiftclient-89994a7ad02cf11f723a9071a4c96dc757b30583.tar.gz
Merge "Add cacert test config option"
Diffstat (limited to 'test/functional/test_swiftclient.py')
-rw-r--r--test/functional/test_swiftclient.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/functional/test_swiftclient.py b/test/functional/test_swiftclient.py
index 54c514d..aaade87 100644
--- a/test/functional/test_swiftclient.py
+++ b/test/functional/test_swiftclient.py
@@ -42,6 +42,7 @@ class TestFunctional(unittest.TestCase):
def _get_config(self):
self.auth_url = TEST_CONFIG['auth_url']
+ self.cacert = TEST_CONFIG['cacert']
self.auth_version = TEST_CONFIG['auth_version']
self.account_username = TEST_CONFIG['account_username']
self.password = TEST_CONFIG['password']
@@ -52,7 +53,7 @@ class TestFunctional(unittest.TestCase):
"""
return swiftclient.Connection(
self.auth_url, self.account_username, self.password,
- auth_version=self.auth_version)
+ auth_version=self.auth_version, cacert=self.cacert)
def setUp(self):
super(TestFunctional, self).setUp()
@@ -486,7 +487,7 @@ class TestUsingKeystone(TestFunctional):
return swiftclient.Connection(
self.auth_url, username, self.password,
- auth_version=self.auth_version,
+ auth_version=self.auth_version, cacert=self.cacert,
os_options={'tenant_name': account})
@@ -515,4 +516,5 @@ class TestUsingKeystoneV3(TestFunctional):
'user_domain_name': user_domain}
return swiftclient.Connection(self.auth_url, username, password,
auth_version=self.auth_version,
+ cacert=self.cacert,
os_options=os_options)