summaryrefslogtreecommitdiff
path: root/openstackclient/tests/identity/v3/fakes.py
diff options
context:
space:
mode:
authorSteve Martinelli <s.martinelli@gmail.com>2016-09-05 10:15:57 -0700
committerSteve Martinelli <s.martinelli@gmail.com>2016-09-05 17:23:42 +0000
commit24c8b94baf4c95cd3a76159009badbc53573be09 (patch)
tree48624db47624ab993b7cd7a270d8f39b2ef43640 /openstackclient/tests/identity/v3/fakes.py
parent3b75c9aae55356e8f7b2c04e0101ede99d860c1a (diff)
downloadpython-openstackclient-24c8b94baf4c95cd3a76159009badbc53573be09.tar.gz
format token expires time to prevent json loading datetime data
When output to shell, the token issue time is fine; however when selecting the json formatter (via the --format json) option, an exception is raised when formatting the dataetime data. Rather than pass in the datetime data, we should format the data with the ISO 8601 formatting. Closes-Bug: 1619937 Change-Id: Iffebb2d5413fabfd283dfa94fc560fc37270f9dd
Diffstat (limited to 'openstackclient/tests/identity/v3/fakes.py')
-rw-r--r--openstackclient/tests/identity/v3/fakes.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/openstackclient/tests/identity/v3/fakes.py b/openstackclient/tests/identity/v3/fakes.py
index c4d24d46..38f6724e 100644
--- a/openstackclient/tests/identity/v3/fakes.py
+++ b/openstackclient/tests/identity/v3/fakes.py
@@ -252,7 +252,7 @@ TRUST = {
'trustor_user_id': user_id,
}
-token_expires = '2014-01-01T00:00:00Z'
+token_expires = '2016-09-05T18:04:52+0000'
token_id = 'tttttttt-tttt-tttt-tttt-tttttttttttt'
UNSCOPED_TOKEN = {