diff options
author | Mark McLoughlin <markmc@redhat.com> | 2014-04-29 12:28:32 +0100 |
---|---|---|
committer | Mark McLoughlin <markmc@redhat.com> | 2014-04-29 14:51:27 +0100 |
commit | 71b78c71babaa300a688a638e491537e65a2e77e (patch) | |
tree | 52a2a33fb5ffbefb97e8a3cd07368839ad8b8a9e /nova/tests/integrated/v3/api_samples/all_extensions/servers-details-resp.json.tpl | |
parent | 2c3d2814cad49c70b207f2e4aaffb6b8bcb510f6 (diff) | |
download | nova-71b78c71babaa300a688a638e491537e65a2e77e.tar.gz |
Verify created/updated timestamps are isotime
We format these timestamps using timeutils.isotime() in the server
view builder, so we should check that in the API sample tests rather
than using the generic timestamp regexp.
Full context here:
http://lists.openstack.org/pipermail/openstack-dev/2014-April/033971.html
Change-Id: Id55f13d8163249275220151dd88c67b47e6176c9
Diffstat (limited to 'nova/tests/integrated/v3/api_samples/all_extensions/servers-details-resp.json.tpl')
-rw-r--r-- | nova/tests/integrated/v3/api_samples/all_extensions/servers-details-resp.json.tpl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nova/tests/integrated/v3/api_samples/all_extensions/servers-details-resp.json.tpl b/nova/tests/integrated/v3/api_samples/all_extensions/servers-details-resp.json.tpl index b307bc6c20..e76726d2c6 100644 --- a/nova/tests/integrated/v3/api_samples/all_extensions/servers-details-resp.json.tpl +++ b/nova/tests/integrated/v3/api_samples/all_extensions/servers-details-resp.json.tpl @@ -13,7 +13,7 @@ } ] }, - "created": "%(timestamp)s", + "created": "%(isotime)s", "flavor": { "id": "1", "links": [ @@ -70,7 +70,7 @@ ], "status": "ACTIVE", "tenant_id": "openstack", - "updated": "%(timestamp)s", + "updated": "%(isotime)s", "user_id": "fake" } ] |