1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/tests/compute/requests/aws/image_tests.rb
2011-01-03 13:34:08 -08:00

37 lines
1.1 KiB
Ruby

Shindo.tests('AWS::Compute | image requests', ['aws']) do
@images_format = {
'imagesSet' => [{
'architecture' => String,
'blockDeviceMapping' =>[],
'imageId' => String,
'imageLocation' => String,
'imageOwnerId' => String,
'imageState' => String,
'imageType' => String,
'isPublic' => Fog::Boolean,
'kernelId' => String,
'productCodes' => [],
'ramdiskId' => String,
'rootDeviceType' => String,
'tagSet' => {},
'virtualizationType' => String
}],
'requestId' => String,
}
tests('success') do
# the result for this is HUGE and relatively uninteresting...
# tests("#describe_images").formats(@images_format) do
# AWS[:compute].describe_images.body
# end
tests("#describe_images('ImageId' => '#{GENTOO_AMI}')").formats(@images_format) do
pending if Fog.mocking?
AWS[:compute].describe_images('ImageId' => GENTOO_AMI).body
end
end
end