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:
parent
d810133da7
commit
b7061af9fb
1 changed files with 2 additions and 2 deletions
|
@ -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' => [{}]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue