mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[aws|compute] Fixes schema in image tests
The schema for the AWS ImagesSet declared blockMappingDevice as an Array with no values inside. Mocks are generating an image with a device present which no longer fits the schema. This is a premptive fix because corecting the #formats method caused this issue to surface. See #1477
This commit is contained in:
parent
96711a9d3f
commit
51cdc19070
1 changed files with 2 additions and 2 deletions
|
@ -2,7 +2,7 @@ Shindo.tests('Fog::Compute[:aws] | image requests', ['aws']) do
|
|||
@describe_images_format = {
|
||||
'imagesSet' => [{
|
||||
'architecture' => String,
|
||||
'blockDeviceMapping' => [],
|
||||
'blockDeviceMapping' => [Fog::Nullable::Hash],
|
||||
'description' => Fog::Nullable::String,
|
||||
'hypervisor' => String,
|
||||
'imageId' => String,
|
||||
|
@ -135,4 +135,4 @@ Shindo.tests('Fog::Compute[:aws] | image requests', ['aws']) do
|
|||
Fog::Compute[:aws].modify_image_attribute('ami-00000000', { 'Add.UserId' => ['123456789012'] }).body
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue