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

31 lines
867 B
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,
'DISTRIBUTIONIDLIST' => Integer,
'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-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