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_members_tests.rb

22 lines
635 B
Ruby
Raw Normal View History

Shindo.tests("Fog::Network[:openstack] | lb_members", ['openstack']) do
@lb_member = Fog::Network[:openstack].lb_members.create(:pool_id => 'pool_id',
:address => '10.0.0.1',
:protocol_port => '80',
:weight => 100)
@lb_members = Fog::Network[:openstack].lb_members
tests('success') do
tests('#all').succeeds do
@lb_members.all
end
tests('#get').succeeds do
@lb_members.get @lb_member.id
end
end
@lb_member.destroy
end