File: interfaces_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 (14 lines) | stat: -rw-r--r-- 575 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Shindo.tests('Fog::Compute[:libvirt] | interfaces collection', ['libvirt']) do

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

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

end