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

18 lines
694 B
Ruby
Raw Normal View History

2012-04-04 11:32:09 -04:00
Shindo.tests('Fog::Compute[:libvirt]', ['libvirt']) do
compute = Fog::Compute[:libvirt]
tests("Compute collections") do
%w{ servers interfaces networks nics nodes pools volumes}.each do |collection|
test("it should respond to #{collection}") { compute.respond_to? collection }
end
end
tests("Compute requests") do
%w{ create_domain create_volume define_domain define_pool destroy_interface destroy_network get_node_info list_domains
list_interfaces list_networks list_pools list_pool_volumes list_volumes pool_action vm_action volume_action }.each do |request|
test("it should respond to #{request}") { compute.respond_to? request }
end
end
end