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.body = {
|
||||
'volume' => {
|
||||
'id' => Fog::Mock.random_numbers(3),
|
||||
'id' => Fog::Mock.random_numbers(3).to_i,
|
||||
'displayName' => name,
|
||||
'displayDescription' => description,
|
||||
'size' => size,
|
||||
|
@ -66,7 +66,7 @@ module Fog
|
|||
'snapshotId' => options['snapshot_id'] || "",
|
||||
'volumeType' => nil,
|
||||
'availabilityZone' => 'nova',
|
||||
'createdAt' => Time.now,
|
||||
'createdAt' => Time.now.to_s,
|
||||
'metadata' => options['metadata'] || {},
|
||||
'attachments' => [{}]
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue