1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/tests/aws/requests/compute/image_tests.rb
2010-10-12 16:23:35 -07:00

35 lines
976 B
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' => {}
}],
'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
AWS[:compute].describe_images('ImageId' => GENTOO_AMI).body
end
end
end