Sha256: a15816d75c8765fc61ebf34e21c7cf27dcf463b0dc77c2a45e39b06b9a8f89da

Contents?: true

Size: 955 Bytes

Versions: 16

Compression:

Stored size: 955 Bytes

Contents

Shindo.tests('Fog::Compute[:opennebula] | network model', ['opennebula']) do

  networks = Fog::Compute[:opennebula].networks
  network = networks.last

  tests('The network model should') do
    tests('have the action') do
      test('reload') { network.respond_to? 'reload' }
    end
    tests('have attributes') do
      model_attribute_hash = network.attributes
      attributes = 
      tests("The network model should respond to") do
        [:name, :id, :vlan, :uid, :uname, :gid, :description].each do |attribute|
          test("#{attribute}") { network.respond_to? attribute }
        end
      end
      tests("The attributes hash should have key") do
        [:name, :id, :uid, :uname, :gid ].each do |attribute|
          test("#{attribute}") { model_attribute_hash.has_key? attribute }
        end
      end
    end
    test('be a kind of Fog::Compute::OpenNebula::Network') { network.kind_of? Fog::Compute::OpenNebula::Network }
  end

end

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
fog-1.38.0 tests/opennebula/models/compute/network_tests.rb
fog-1.37.0 tests/opennebula/models/compute/network_tests.rb
fog-1.36.0 tests/opennebula/models/compute/network_tests.rb
fog-1.35.0 tests/opennebula/models/compute/network_tests.rb
fog-2.0.0.pre.0 tests/opennebula/models/compute/network_tests.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-1.32.0/tests/opennebula/models/compute/network_tests.rb
fog-1.34.0 tests/opennebula/models/compute/network_tests.rb
fog-1.33.0 tests/opennebula/models/compute/network_tests.rb
fog-1.32.0 tests/opennebula/models/compute/network_tests.rb
fog-1.31.0 tests/opennebula/models/compute/network_tests.rb
fog-1.30.0 tests/opennebula/models/compute/network_tests.rb
fog-1.29.0 tests/opennebula/models/compute/network_tests.rb
fog-1.28.0 tests/opennebula/models/compute/network_tests.rb
fog-1.27.0 tests/opennebula/models/compute/network_tests.rb
fog-1.26.0 tests/opennebula/models/compute/network_tests.rb
fog-1.25.0 tests/opennebula/models/compute/network_tests.rb