1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/tests/rackspace/requests/load_balancers/usage_tests.rb

18 lines
479 B
Ruby
Raw Normal View History

Shindo.tests('Fog::Rackspace::LoadBalancers | usage', ['rackspace']) do
2011-07-27 21:44:43 -04:00
pending if Fog.mocking?
2011-07-28 14:37:21 -04:00
given_a_load_balancer_service do
tests('success') do
2011-07-27 21:44:43 -04:00
2011-07-28 14:37:21 -04:00
tests("#get_usage()").formats(USAGE_FORMAT) do
@service.get_usage.body
end
2011-07-27 21:44:43 -04:00
2011-07-28 14:37:21 -04:00
tests("#get_usage(:start_time => '2010-05-10', :end_time => '2010-05-11')").formats(USAGE_FORMAT) do
@service.get_usage(:start_time => '2010-05-10', :end_time => '2010-05-11').body
end
2011-07-27 21:44:43 -04:00
end
end
end