Sha256: db90100095c209efd434549cbc72b2e1fdef8942b4c16cc6283847105e4953c8

Contents?: true

Size: 953 Bytes

Versions: 9

Compression:

Stored size: 953 Bytes

Contents

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

  networks = Fog::Compute[:opennebula].networks
  network = networks.get_by_name('fogtest')

  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
      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

9 entries across 7 versions & 2 rubygems

Version Path
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-1.42.1/tests/opennebula/models/compute/network_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-1.42.1/tests/opennebula/models/compute/network_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-1.42.1/tests/opennebula/models/compute/network_tests.rb
fog-1.42.1 tests/opennebula/models/compute/network_tests.rb
fog-2.0.0 tests/opennebula/models/compute/network_tests.rb
fog-1.42.0 tests/opennebula/models/compute/network_tests.rb
fog-1.41.0 tests/opennebula/models/compute/network_tests.rb
fog-1.40.0 tests/opennebula/models/compute/network_tests.rb
fog-1.39.0 tests/opennebula/models/compute/network_tests.rb