Sha256: 3d5d94e51b49d882651a8a9d35935861158c9227de3774aef3dfc979d7d3f11c

Contents?: true

Size: 627 Bytes

Versions: 9

Compression:

Stored size: 627 Bytes

Contents

Shindo.tests('Fog::Compute[:libvirt] | volumes collection', ['libvirt']) do

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

  tests('The volumes collection') do
    test('should not be empty') { not volumes.empty? }
    test('should be a kind of Fog::Libvirt::Compute::Volumes') { volumes.kind_of? Fog::Libvirt::Compute::Volumes }
    tests('should be able to reload itself').succeeds { volumes.reload }
    tests('should be able to get a model') do
      tests('by instance uuid').succeeds { volumes.get volumes.first.id }
    end
    test('filtered should be empty') { volumes.all(:name => "does-not-exist").empty? }
  end

end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
fog-libvirt-0.12.2 tests/libvirt/models/compute/volumes_tests.rb
fog-libvirt-0.12.1 tests/libvirt/models/compute/volumes_tests.rb
fog-libvirt-0.12.0 tests/libvirt/models/compute/volumes_tests.rb
fog-libvirt-0.11.0 tests/libvirt/models/compute/volumes_tests.rb
fog-libvirt-0.10.1 tests/libvirt/models/compute/volumes_tests.rb
fog-libvirt-0.10.0 tests/libvirt/models/compute/volumes_tests.rb
fog-libvirt-csem-0.9.0 tests/libvirt/models/compute/volumes_tests.rb
fog-libvirt-0.9.0 tests/libvirt/models/compute/volumes_tests.rb
fog-libvirt-0.8.0 tests/libvirt/models/compute/volumes_tests.rb