summaryrefslogtreecommitdiff
path: root/openstackclient/tests/fakes.py
diff options
context:
space:
mode:
Diffstat (limited to 'openstackclient/tests/fakes.py')
-rw-r--r--openstackclient/tests/fakes.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/openstackclient/tests/fakes.py b/openstackclient/tests/fakes.py
index ff69c190..979f9481 100644
--- a/openstackclient/tests/fakes.py
+++ b/openstackclient/tests/fakes.py
@@ -28,6 +28,7 @@ PASSWORD = "scratchy"
PROJECT_NAME = "poochie"
REGION_NAME = "richie"
INTERFACE = "catchy"
+VERSION = "3"
TEST_RESPONSE_DICT = fixture.V2Token(token_id=AUTH_TOKEN,
user_name=USERNAME)
@@ -102,6 +103,17 @@ class FakeClientManager(object):
self.auth_ref = None
self.auth_plugin_name = None
+ def get_configuration(self):
+ return {
+ 'auth': {
+ 'username': USERNAME,
+ 'password': PASSWORD,
+ 'token': AUTH_TOKEN,
+ },
+ 'region': REGION_NAME,
+ 'identity_api_version': VERSION,
+ }
+
class FakeModule(object):
def __init__(self, name, version):