mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
Fix minor typos and incorrect types in openstack volume tests
This commit is contained in:
parent
7cedd76189
commit
9c1adad4d6
4 changed files with 9 additions and 11 deletions
|
@ -42,7 +42,7 @@ module Fog
|
|||
'volumeType' => nil,
|
||||
'availabilityZone' => 'nova',
|
||||
'createdAt' => Time.now,
|
||||
'attchments' => []
|
||||
'attachments' => []
|
||||
}
|
||||
}
|
||||
response
|
||||
|
|
|
@ -30,7 +30,7 @@ module Fog
|
|||
'status' => 'online',
|
||||
'availabilityZone' => 'nova',
|
||||
'createdAt' => Time.now,
|
||||
'attchments' => []
|
||||
'attachments' => []
|
||||
}
|
||||
}
|
||||
response
|
||||
|
|
|
@ -26,22 +26,20 @@ module Fog
|
|||
"displayName" => "test 1",
|
||||
"attachments" => [{}],
|
||||
"volumeType" => nil,
|
||||
"snapshotId" => nil,
|
||||
"snapshotId" => Fog::Mock.random_numbers(2),
|
||||
"size" => 1,
|
||||
"id" => 6,
|
||||
"createdAt" => "2012-03-30 05:31:00.655058",
|
||||
"metadata" => {} },
|
||||
"id" => "6",
|
||||
"createdAt" => Time.now },
|
||||
{ "status" => "available",
|
||||
"displayDescription" => "",
|
||||
"availabilityZone" => "nova",
|
||||
"displayName" => "test 2",
|
||||
"attachments" => [{}],
|
||||
"volumeType" => nil,
|
||||
"snapshotId" => nil,
|
||||
"snapshotId" => Fog::Mock.random_numbers(2),
|
||||
"size" => 1,
|
||||
"id" => 8,
|
||||
"createdAt" => "2012-03-30 16:14:55.582717",
|
||||
"metadata" => {} }
|
||||
"id" => "8",
|
||||
"createdAt" => Time.now}
|
||||
]
|
||||
response.body = { 'volumes' => self.data[:volumes] }
|
||||
response
|
||||
|
|
|
@ -10,7 +10,7 @@ Shindo.tests('Fog::Compute[:openstack] | volume requests', ['openstack']) do
|
|||
'status' => String,
|
||||
'snapshotId' => String,
|
||||
'availabilityZone' => String,
|
||||
'attchments' => Array,
|
||||
'attachments' => Array,
|
||||
'volumeType' => NilClass,
|
||||
'createdAt' => Time
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue