1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/tests/openstack/models/network/lb_pools_tests.rb

21 lines
541 B
Ruby
Raw Normal View History

Shindo.tests("Fog::Network[:openstack] | lb_pools", ['openstack']) do
@lb_pool = Fog::Network[:openstack].lb_pools.create(:subnet_id => 'subnet_id',
:protocol => 'HTTP',
:lb_method => 'ROUND_ROBIN')
@lb_pools = Fog::Network[:openstack].lb_pools
tests('success') do
tests('#all').succeeds do
@lb_pools.all
end
tests('#get').succeeds do
@lb_pools.get @lb_pool.id
end
end
@lb_pool.destroy
end