Sha256: d19b9d23f2801acf04e4d4f5eeffed59fb459d3ff7ac85fbe8ffefa82f760924

Contents?: true

Size: 782 Bytes

Versions: 4

Compression:

Stored size: 782 Bytes

Contents

Shindo.tests('Fog::Compute[:opennebula] | flavors collection', ['opennebula']) do
  begin
    flavors = Fog::Compute[:opennebula].flavors
  rescue Fog::Errors::LoadError
    pending
  end

  tests('The flavors collection should') do
    test('should be a kind of Fog::Compute::OpenNebula::Flavors') { flavors.kind_of? Fog::Compute::OpenNebula::Flavors }
    tests('should be able to reload itself').succeeds { flavors.reload }

    tests('should be able to get models') do
      tests('all').succeeds { flavors.all }
      tests('by instance id').succeeds { flavors.get flavors.first.id }
      tests('by name').succeeds { flavors.get_by_name "fogtest" }
      tests('by filter').succeeds { flavors.get_by_filter ({:name => "fogtest", :id => flavors.first.id }) }
    end
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
fog-2.3.0 tests/opennebula/models/compute/flavors_tests.rb
fog-ifeel-2.2.0 tests/opennebula/models/compute/flavors_tests.rb
fog-2.2.0 tests/opennebula/models/compute/flavors_tests.rb
fog-2.1.0 tests/opennebula/models/compute/flavors_tests.rb