1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/tests/linode/requests/compute/stackscripts_tests.rb

36 lines
1.1 KiB
Ruby

Shindo.tests('Fog::Compute[:linode] | stack_script requests', ['linode']) do
@stack_scripts_format = Linode::Compute::Formats::BASIC.merge({
'DATA' => [{
'STACKSCRIPTID' => Integer,
'SCRIPT' => String,
'DESCRIPTION' => String,
'DISTRIBUTIONIDLIST' => String,
'LABEL' => String,
'DEPLOYMENTSTOTAL' => Integer,
'LATESTREV' => Integer,
'CREATE_DT' => String,
'DEPLOYMENTSACTIVE' => Integer,
'REV_NOTE' => String,
'REV_DT' => String,
'ISPUBLIC' => Integer,
'USERID' => Integer
}]
})
tests('success') do
tests('#avail_stackscripts').formats(@stack_scripts_format) do
pending if Fog.mocking?
Fog::Compute[:linode].avail_stackscripts.body
end
tests('#stackscript_list').formats(@stack_scripts_format) do
pending # TODO: REV_NOTE can be either string or float?
pending if Fog.mocking?
Fog::Compute[:linode].stackscript_list.body
end
end
end