2010-09-28 18:27:28 -04:00
|
|
|
Shindo.tests('AWS::Compute | image requests', ['aws']) do
|
|
|
|
|
|
|
|
@images_format = {
|
|
|
|
'imagesSet' => [{
|
2010-12-21 16:16:42 -05:00
|
|
|
'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
|
2010-09-28 18:27:28 -04:00
|
|
|
}],
|
2010-12-21 16:16:42 -05:00
|
|
|
'requestId' => String,
|
2010-09-28 18:27:28 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
tests('success') do
|
|
|
|
|
2010-10-12 19:01:17 -04:00
|
|
|
# the result for this is HUGE and relatively uninteresting...
|
2010-09-28 18:27:28 -04:00
|
|
|
# tests("#describe_images").formats(@images_format) do
|
|
|
|
# AWS[:compute].describe_images.body
|
|
|
|
# end
|
|
|
|
|
|
|
|
tests("#describe_images('ImageId' => '#{GENTOO_AMI}')").formats(@images_format) do
|
2010-10-13 20:54:14 -04:00
|
|
|
pending if Fog.mocking?
|
2010-09-28 18:27:28 -04:00
|
|
|
AWS[:compute].describe_images('ImageId' => GENTOO_AMI).body
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|