mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
24 lines
No EOL
569 B
Ruby
24 lines
No EOL
569 B
Ruby
Shindo.tests("Fog::HP::LB | get load balancer node", ['hp', 'lb', 'load_balancers', 'nodes']) do
|
|
@lb_format = {
|
|
'id' => String,
|
|
'address' => String,
|
|
'port' => String,
|
|
'condition' => String,
|
|
'status' => String,
|
|
}
|
|
tests('success') do
|
|
|
|
tests("#get_load_balancer_node").formats(@lb_format) do
|
|
HP[:lb].get_load_balancer_node('71','1041').body
|
|
end
|
|
|
|
|
|
end
|
|
tests('failure') do
|
|
tests("#get_load_balancer_node").raises (Fog::HP::LB::NotFound) do
|
|
HP[:lb].get_load_balancer_node('71', '0')
|
|
end
|
|
|
|
end
|
|
|
|
end |