summaryrefslogtreecommitdiff
path: root/keystoneclient/tests/auth/utils.py
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2014-12-18 14:05:00 +0000
committerGerrit Code Review <review@openstack.org>2014-12-18 14:05:00 +0000
commit10860db5f155052ca0d353ce9058e1c16eec8437 (patch)
treec1ae5d02c5c77ddb7eecc248df264d8f38f1879d /keystoneclient/tests/auth/utils.py
parent6c1a9b49dc2ffcaa743ebf866c7281622ffad8ad (diff)
parentb78dc19d9b47f3347a99394ee839c02f5127a986 (diff)
downloadpython-keystoneclient-1.0.0.tar.gz
Merge "Take plugin params from ENV rather than default"1.0.0
Diffstat (limited to 'keystoneclient/tests/auth/utils.py')
-rw-r--r--keystoneclient/tests/auth/utils.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/keystoneclient/tests/auth/utils.py b/keystoneclient/tests/auth/utils.py
index c3dae8f..cfca379 100644
--- a/keystoneclient/tests/auth/utils.py
+++ b/keystoneclient/tests/auth/utils.py
@@ -30,6 +30,8 @@ class MockPlugin(base.BaseAuthPlugin):
INT_DESC = 'test int'
FLOAT_DESC = 'test float'
BOOL_DESC = 'test bool'
+ STR_DESC = 'test str'
+ STR_DEFAULT = uuid.uuid4().hex
def __init__(self, **kwargs):
self._data = kwargs
@@ -49,6 +51,7 @@ class MockPlugin(base.BaseAuthPlugin):
cfg.IntOpt('a-int', default='3', help=cls.INT_DESC),
cfg.BoolOpt('a-bool', help=cls.BOOL_DESC),
cfg.FloatOpt('a-float', help=cls.FLOAT_DESC),
+ cfg.StrOpt('a-str', help=cls.STR_DESC, default=cls.STR_DEFAULT),
]