summaryrefslogtreecommitdiff
path: root/glanceclient/tests/functional
diff options
context:
space:
mode:
authorFlavio Percoco <flaper87@gmail.com>2015-09-02 14:58:59 +0200
committerFlavio Percoco <flaper87@gmail.com>2015-09-04 13:31:55 +0200
commit1322fbc5d8323ff605c8b399fe0e1cb904b44f4e (patch)
tree573086673e60fad34f2dc52137fc93e80569bc3a /glanceclient/tests/functional
parent47423ebbb2dfcb0d63aefcb87a9bec85420a7a99 (diff)
downloadpython-glanceclient-1322fbc5d8323ff605c8b399fe0e1cb904b44f4e.tar.gz
Consider `--os-token` when using v2
The `_cache_schemas` call currently forces authentication even when the `auth_token` and `os_image_url` are passed. Instead of handling forced authentications, let the client use the passed arguments and authenticate only once if needed. This was not caught by the existing tests because the call to `_cache_schemas` was mocked. Change-Id: I93cec9a68cafc0992d14dab38114d03e25f1e5da Closes-bug: #1490462
Diffstat (limited to 'glanceclient/tests/functional')
-rw-r--r--glanceclient/tests/functional/test_readonly_glance.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/glanceclient/tests/functional/test_readonly_glance.py b/glanceclient/tests/functional/test_readonly_glance.py
index 4e5b577..9302927 100644
--- a/glanceclient/tests/functional/test_readonly_glance.py
+++ b/glanceclient/tests/functional/test_readonly_glance.py
@@ -103,7 +103,7 @@ class SimpleReadOnlyGlanceClientTest(base.ClientTestBase):
self.glance('', flags='--version')
def test_debug_list(self):
- self.glance('image-list', flags='--debug')
+ self.glance('--os-image-api-version 2 image-list', flags='--debug')
def test_no_ssl_compression(self):
# Test deprecating this hasn't broken anything