diff options
author | Jenkins <jenkins@review.openstack.org> | 2012-09-21 23:31:07 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2012-09-21 23:31:07 +0000 |
commit | 57dfd21e1bea1b53709e0836a7e521c2c6e48309 (patch) | |
tree | b7d704a46087216bb2207193acd1c21ba8e82ffc /tests/test_swiftclient.py | |
parent | 3265ad52414a56edb56d278a890e239d2fe03155 (diff) | |
parent | fe7c535db33f3ebdac2523507d8e11843ee73583 (diff) | |
download | python-swiftclient-57dfd21e1bea1b53709e0836a7e521c2c6e48309.tar.gz |
Merge "Resolves issue with empty os_options for swift-bench & swift-dispersion-report"
Diffstat (limited to 'tests/test_swiftclient.py')
-rw-r--r-- | tests/test_swiftclient.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/test_swiftclient.py b/tests/test_swiftclient.py index d8d385a..80e7a22 100644 --- a/tests/test_swiftclient.py +++ b/tests/test_swiftclient.py @@ -220,6 +220,14 @@ class TestGetAuth(MockHttpTest): self.assertTrue(url.startswith("http")) self.assertTrue(token) + def test_auth_v2_with_tenant_user_in_user_no_os_options(self): + tenant_option = {'tenant_name': 'foo'} + c.get_keystoneclient_2_0 = fake_get_keystoneclient_2_0(tenant_option) + url, token = c.get_auth('http://www.test.com', 'foo:bar', 'asdf', + auth_version="2.0") + self.assertTrue(url.startswith("http")) + self.assertTrue(token) + def test_auth_v2_with_os_region_name(self): os_options={'region_name': 'good-region', 'tenant_name': 'asdf'} |