File: pools_tests.rb

package info (click to toggle)
ruby-fog-libvirt 0.15.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 512 kB
  • sloc: ruby: 2,595; makefile: 4
file content (13 lines) | stat: -rw-r--r-- 514 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
Shindo.tests('Fog::Compute[:libvirt] | pools request', ['libvirt']) do

  pools = Fog::Compute[:libvirt].pools

  tests('The pools collection') do
    test('should not be empty') { not pools.empty? }
    test('should be a kind of Fog::Libvirt::Compute::Pools') { pools.kind_of? Fog::Libvirt::Compute::Pools }
    tests('should be able to reload itself').succeeds { pools.reload }
    tests('should be able to get a model') do
      tests('by instance id').succeeds { pools.get pools.first.uuid }
    end
  end
end