2011-07-27 21:53:33 -04:00
|
|
|
Shindo.tests('Fog::Rackspace::LoadBalancer | load_balancer_usage', ['rackspace']) do
|
|
|
|
|
2011-07-28 14:37:21 -04:00
|
|
|
given_a_load_balancer_service do
|
|
|
|
given_a_load_balancer do
|
|
|
|
tests('success') do
|
|
|
|
@lb.wait_for { ready? }
|
|
|
|
tests("#get_usage(#{@lb.id})").formats(LOAD_BALANCER_USAGE_FORMAT) do
|
|
|
|
@service.get_load_balancer_usage(@lb.id).body
|
|
|
|
end
|
2011-07-27 21:53:33 -04:00
|
|
|
|
2011-07-28 14:37:21 -04:00
|
|
|
tests("#get_usage(:start_time => '2010-05-10', :end_time => '2010-05-11')").formats(LOAD_BALANCER_USAGE_FORMAT) do
|
|
|
|
@service.get_load_balancer_usage(@lb.id, :start_time => '2010-05-10', :end_time => '2010-05-11').body
|
|
|
|
end
|
|
|
|
end
|
2011-07-27 21:53:33 -04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|