summaryrefslogtreecommitdiff
path: root/functional
diff options
context:
space:
mode:
authorSteve Martinelli <stevemar@ca.ibm.com>2014-10-10 14:17:11 -0400
committerSteve Martinelli <stevemar@ca.ibm.com>2014-10-11 20:34:09 -0400
commit1b3c7ec122504a41dc35aaf3f0693c9e20015df8 (patch)
treeb4c2b6b74caf4ccae256491ca73920f9be1da54b /functional
parent0c77a9fe8baa4df9ea2d0055db9c700af3cae310 (diff)
downloadpython-openstackclient-1b3c7ec122504a41dc35aaf3f0693c9e20015df8.tar.gz
Fix issue token for v3
Currently the code is broken as it references a part of keystoneclient that does not exist. Change-Id: I7fbc754537fbb4acffb166b5854840acfaef1fb8 Closes-Bug: #1379871
Diffstat (limited to 'functional')
-rw-r--r--functional/tests/test_identity.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/functional/tests/test_identity.py b/functional/tests/test_identity.py
index cdb0ed34..c5779a20 100644
--- a/functional/tests/test_identity.py
+++ b/functional/tests/test_identity.py
@@ -76,6 +76,7 @@ class IdentityV3Tests(test.TestCase):
DOMAIN_FIELDS = ['description', 'enabled', 'id', 'name', 'links']
GROUP_FIELDS = ['description', 'domain_id', 'id', 'name', 'links']
+ TOKEN_FIELDS = ['expires', 'id', 'project_id', 'user_id']
def _create_dummy_group(self):
name = uuid.uuid4().hex
@@ -139,3 +140,8 @@ class IdentityV3Tests(test.TestCase):
raw_output = self.openstack('domain show ' + name)
items = self.parse_show(raw_output)
self.assert_show_fields(items, self.DOMAIN_FIELDS)
+
+ def test_token_issue(self):
+ raw_output = self.openstack('token issue')
+ items = self.parse_show(raw_output)
+ self.assert_show_fields(items, self.TOKEN_FIELDS)