2014-05-13 07:49:47 -04:00
|
|
|
Shindo.tests('Fog::Compute[:opennebula]', ['opennebula']) do
|
2018-06-19 06:17:34 -04:00
|
|
|
begin
|
|
|
|
compute = Fog::Compute[:opennebula]
|
|
|
|
rescue Fog::Errors::LoadError
|
|
|
|
pending
|
|
|
|
end
|
2014-05-13 07:49:47 -04:00
|
|
|
|
|
|
|
tests("Compute collections") do
|
2014-06-05 06:09:02 -04:00
|
|
|
%w{networks groups}.each do |collection|
|
2014-05-13 07:49:47 -04:00
|
|
|
test("it should respond to #{collection}") { compute.respond_to? collection }
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
tests("Compute requests") do
|
|
|
|
%w{list_networks}.each do |request|
|
|
|
|
test("it should respond to #{request}") { compute.respond_to? request }
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|