Verify created_at cloudpipe timestamp is isotime
We format these timestamps using timeutils.isotime() in the cloudpipe API extension, 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: I52543f68a512da4064a905e2efa453425ce36dae
This commit is contained in:
parent
ddb7ffe4a7
commit
f36bb784ad
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"cloudpipes": [
|
||||
{
|
||||
"created_at": "%(timestamp)s",
|
||||
"created_at": "%(isotime)s",
|
||||
"instance_id": "%(uuid)s",
|
||||
"internal_ip": "%(ip)s",
|
||||
"project_id": "%(project_id)s",
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<cloudpipes>
|
||||
<cloudpipe>
|
||||
<public_ip>%(ip)s</public_ip>
|
||||
<created_at>%(timestamp)s</created_at>
|
||||
<created_at>%(isotime)s</created_at>
|
||||
<public_port>22</public_port>
|
||||
<state>down</state>
|
||||
<instance_id>%(uuid)s</instance_id>
|
||||
|
|
Loading…
Reference in New Issue