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

36 lines
1 KiB
Ruby
Raw Normal View History

2011-03-21 10:38:15 -04:00
Shindo.tests('Linode::Compute | stack_script requests', ['linode']) do
@stack_scripts_format = Linode::Compute::Formats::BASIC.merge({
'DATA' => [{
'STACKSCRIPTID' => Integer,
'SCRIPT' => String,
'DESCRIPTION' => String,
2011-03-22 10:02:47 -04:00
'DISTRIBUTIONIDLIST' => String,
2011-03-21 10:38:15 -04:00
'LABEL' => String,
'DEPLOYMENTSTOTAL' => Integer,
'LATESTREV' => Integer,
'CREATE_DT' => String,
'DEPLOYMENTSACTIVE' => Integer,
'REV_NOTE' => String,
'REV_DT' => String,
'ISPUBLIC' => Integer,
'USERID' => Integer
}]
2011-03-21 16:43:47 -04:00
})
2011-03-21 10:38:15 -04:00
tests('success') do
2011-03-22 10:02:47 -04:00
tests('#avail_stackscripts').formats(@stack_scripts_format) do
pending if Fog.mocking?
Linode[:compute].avail_stackscripts.body
end
2011-03-21 16:43:47 -04:00
tests('#stackscript_list').formats(@stack_scripts_format) do
2011-03-21 10:38:15 -04:00
pending if Fog.mocking?
Linode[:compute].stackscript_list.body
end
end
end