1
0
Fork 0
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:
Bohuslav Kabrda 2012-07-02 10:02:02 +02:00
parent 7cedd76189
commit 9c1adad4d6
4 changed files with 9 additions and 11 deletions

View file

@ -42,7 +42,7 @@ module Fog
'volumeType' => nil,
'availabilityZone' => 'nova',
'createdAt' => Time.now,
'attchments' => []
'attachments' => []
}
}
response

View file

@ -30,7 +30,7 @@ module Fog
'status' => 'online',
'availabilityZone' => 'nova',
'createdAt' => Time.now,
'attchments' => []
'attachments' => []
}
}
response

View file

@ -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

View file

@ -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
}