File: compute_tests.rb

package info (click to toggle)
ruby-fog-libvirt 0.14.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 508 kB
  • sloc: ruby: 2,593; makefile: 3
file content (19 lines) | stat: -rw-r--r-- 739 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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
        update_autostart list_domains
        list_interfaces list_networks list_pools list_pool_volumes list_volumes pool_action vm_action volume_action
        dhcp_leases }.each do |request|
      test("it should respond to #{request}") { compute.respond_to? request }
    end
  end
end