1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

Tested handling of Openstack server created and updated times

This commit is contained in:
Eric Hodel 2012-10-22 17:58:40 -07:00
parent ecaf7368c3
commit d8074357c6
2 changed files with 6 additions and 2 deletions
lib/fog/openstack/requests/compute
tests/openstack/requests/compute

View file

@ -67,7 +67,9 @@ module Fog
'accessIPv4' => options['accessIPv4'] || "",
'accessIPv6' => options['accessIPv6'] || "",
'progress' => 0,
'status' => 'BUILD'
'status' => 'BUILD',
'created' => '2012-09-27T00:04:18Z',
'updated' => '2012-09-27T00:04:27Z',
}
self.data[:last_modified][:servers][data['id']] = Time.now

View file

@ -12,7 +12,9 @@ Shindo.tests('Fog::Compute[:openstack] | server requests', ['openstack']) do
'status' => String,
'accessIPv4' => Fog::Nullable::String,
'accessIPv6' => Fog::Nullable::String,
'links' => Array
'links' => Array,
'created' => String,
'updated' => String
}
@image_format = {