Sha256: 5d90c00a720c8b32b11c3f1ef0fa4b1df792f895dcebfcc044cdb2bae38eae3c

Contents?: true

Size: 662 Bytes

Versions: 3

Compression:

Stored size: 662 Bytes

Contents

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

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

  volumes.create(:name => 'test')

  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

3 entries across 3 versions & 1 rubygems

Version Path
fog-libvirt-0.13.2 tests/libvirt/models/compute/volumes_tests.rb
fog-libvirt-0.13.1 tests/libvirt/models/compute/volumes_tests.rb
fog-libvirt-0.13.0 tests/libvirt/models/compute/volumes_tests.rb