1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/tests/hp/requests/lb/delete_node_balancer_node_tests.rb
2013-10-30 19:02:01 -04:00

16 lines
No EOL
504 B
Ruby

Shindo.tests("HP::LB | delete load balancer node tests", ['hp', 'lb', 'load_balancer', 'nodes']) do
@good_id = "71"
@bad_id = "0"
@good_node = '1041'
tests('success') do
tests("#delete_load_balancer_node(#{@good_id}, #{@good_node})").succeeds do
HP[:lb].delete_load_balancer_node(@good_id,@good_node)
end
end
tests('failure') do
tests("#delete_domain(#{@bad_id})").raises(Fog::HP::LB::NotFound) do
HP[:lb].delete_load_balancer_node(@good_id,@bad_id)
end
end
end