mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
ef9a9697ab
Done with `rubocop --auto-correct --only TrailingWhitespace`
32 lines
912 B
Ruby
32 lines
912 B
Ruby
Shindo.tests('Fog::Compute[:linode] | distribution requests', ['linode']) do
|
|
|
|
@distributions_format = Linode::Compute::Formats::BASIC.merge({
|
|
'DATA' => [{
|
|
'CREATE_DT' => String,
|
|
'DISTRIBUTIONID' => Integer,
|
|
'IS64BIT' => Integer,
|
|
'LABEL' => String,
|
|
'MINIMAGESIZE' => Integer,
|
|
'REQUIRESPVOPSKERNEL' => Integer
|
|
}]
|
|
})
|
|
|
|
tests('success') do
|
|
|
|
@distribution_id = nil
|
|
|
|
tests('#avail_distributions').formats(@distributions_format) do
|
|
pending if Fog.mocking?
|
|
data = Fog::Compute[:linode].avail_distributions.body
|
|
@distribution_id = data['DATA'].first['DISTRIBUTIONID']
|
|
data
|
|
end
|
|
|
|
tests("@avail_distributions(#{@distribution_id})").formats(@distributions_format) do
|
|
pending if Fog.mocking?
|
|
Fog::Compute[:linode].avail_distributions(@distribution_id).body
|
|
end
|
|
|
|
end
|
|
|
|
end
|