diff options
author | Zuul <zuul@review.opendev.org> | 2020-09-23 22:14:55 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2020-09-23 22:14:55 +0000 |
commit | 89994a7ad02cf11f723a9071a4c96dc757b30583 (patch) | |
tree | d771d3cf4d4fb5f2be64570dc13fa5fd304123d7 /test/functional/test_swiftclient.py | |
parent | ef7380048ef48bf64019482351a0ec5019d440a3 (diff) | |
parent | 2eba2dd42a7fa9663b59486f25707c16ef3731d7 (diff) | |
download | python-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.py | 6 |
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) |