mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
more test passing
This commit is contained in:
parent
634f25b8f4
commit
2aa4b325af
3 changed files with 10 additions and 3 deletions
|
@ -3,11 +3,13 @@ module Fog
|
|||
class Compute
|
||||
class Real
|
||||
def avail_stackscripts(options={})
|
||||
request(
|
||||
result = request(
|
||||
:expects => 200,
|
||||
:method => 'GET',
|
||||
:query => { :api_action => 'avail.stackscripts' }.merge!(options)
|
||||
)
|
||||
result.body['DATA']['DISTRIBUTIONIDLIST'] = result.body['DATA']['DISTRIBUTIONIDLIST'].to_s
|
||||
result
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -57,6 +57,11 @@ Shindo.tests('Linode::Compute | linode requests', ['linode']) do
|
|||
Linode[:compute].linode_list.body
|
||||
end
|
||||
|
||||
# tests('#linode_update').formats(@linodes_format) do
|
||||
# pending if Fog.mocking?
|
||||
# Linode[:compute].linode_update @linode_id, :label => 'testing'
|
||||
# end
|
||||
|
||||
# tests("#linode_reboot(#{@linode_id})").formats(@reboot_format) do
|
||||
# Linode[:compute].linode_reboot(@linode_id).body
|
||||
# end
|
||||
|
|
|
@ -16,11 +16,11 @@ Shindo.tests('Linode::Compute | stack_script requests', ['linode']) do
|
|||
'ISPUBLIC' => Integer,
|
||||
'USERID' => Integer
|
||||
}]
|
||||
})
|
||||
})
|
||||
|
||||
tests('success') do
|
||||
|
||||
tests('#avail_stack_scripts').formats(@stack_scripts_format) do
|
||||
tests('#stackscript_list').formats(@stack_scripts_format) do
|
||||
pending if Fog.mocking?
|
||||
Linode[:compute].stackscript_list.body
|
||||
end
|
Loading…
Reference in a new issue