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

Fix mock for tests.

This commit is contained in:
Rupak Ganguly 2012-07-09 15:23:08 -04:00
parent d810133da7
commit b7061af9fb

View file

@ -58,7 +58,7 @@ module Fog
response.status = 200 response.status = 200
response.body = { response.body = {
'volume' => { 'volume' => {
'id' => Fog::Mock.random_numbers(3), 'id' => Fog::Mock.random_numbers(3).to_i,
'displayName' => name, 'displayName' => name,
'displayDescription' => description, 'displayDescription' => description,
'size' => size, 'size' => size,
@ -66,7 +66,7 @@ module Fog
'snapshotId' => options['snapshot_id'] || "", 'snapshotId' => options['snapshot_id'] || "",
'volumeType' => nil, 'volumeType' => nil,
'availabilityZone' => 'nova', 'availabilityZone' => 'nova',
'createdAt' => Time.now, 'createdAt' => Time.now.to_s,
'metadata' => options['metadata'] || {}, 'metadata' => options['metadata'] || {},
'attachments' => [{}] 'attachments' => [{}]
} }