diff options
author | Jenkins <jenkins@review.openstack.org> | 2014-12-18 14:05:00 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2014-12-18 14:05:00 +0000 |
commit | 10860db5f155052ca0d353ce9058e1c16eec8437 (patch) | |
tree | c1ae5d02c5c77ddb7eecc248df264d8f38f1879d /keystoneclient/tests/auth/utils.py | |
parent | 6c1a9b49dc2ffcaa743ebf866c7281622ffad8ad (diff) | |
parent | b78dc19d9b47f3347a99394ee839c02f5127a986 (diff) | |
download | python-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.py | 3 |
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), ] |