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/nodebalancers_tests.rb
Phil Ross 2d71a749fd Add support for the Linode avail.nodebalancers API call.
- Add avail_nodebalancers implementation and mock.
- Add NodeBalancerFlavor model.
- Add NodeBalancerFlavors collection.
2015-10-26 20:35:01 +00:00

20 lines
478 B
Ruby

Shindo.tests('Fog::Compute[:linode] | linodenodebalancers requests', ['linode']) do
@linodenodebalancers_format = Linode::Compute::Formats::BASIC.merge({
'DATA' => [{
'MONTHLY' => Float,
'HOURLY' => Float,
'CONNECTIONS' => Integer
}]
})
tests('success') do
tests('#avail_nodebalancers').formats(@linodenodebalancers_format) do
pending if Fog.mocking?
Fog::Compute[:linode].avail_nodebalancers.body
end
end
end