Sha256: 30916b63e01c11695fee25e898be7614458eae5ae477ed3ca8d814678b29d046

Contents?: true

Size: 827 Bytes

Versions: 67

Compression:

Stored size: 827 Bytes

Contents

Shindo.tests('HP::Network | networking subnet model', ['hp', 'networking', 'subnet']) do

  @network = HP[:network].networks.create(:name => 'my_network')

  attributes = {:name => 'fogsubnet', :network_id => @network.id, :cidr => '11.11.11.11/11', :ip_version => 4}
  model_tests(HP[:network].subnets, attributes, true)

  tests('success') do

    tests('#create').succeeds do
      attributes = {:name => 'my_subnet', :network_id => @network.id, :cidr => '12.12.12.12/12', :ip_version => 4}
      @subnet = HP[:network].subnets.create(attributes)
      @subnet.wait_for { ready? } unless Fog.mocking?
      !@subnet.id.nil?
    end

    tests('#save').succeeds do
      @subnet.name = 'my_subnet_upd'
      @subnet.save
    end

    tests('#destroy').succeeds do
      @subnet.destroy
    end

  end

  @network.destroy

end

Version data entries

67 entries across 67 versions & 5 rubygems

Version Path
ns-fog-1.22.10 tests/hp/models/network/subnet_tests.rb
ns-fog-1.22.9 tests/hp/models/network/subnet_tests.rb
ns-fog-1.22.8 tests/hp/models/network/subnet_tests.rb
ns-fog-1.22.7 tests/hp/models/network/subnet_tests.rb
ns-fog-1.22.6 tests/hp/models/network/subnet_tests.rb
fog-1.23.0 tests/hp/models/network/subnet_tests.rb
ns-fog-1.22.4 tests/hp/models/network/subnet_tests.rb
ns-fog-1.22.3 tests/hp/models/network/subnet_tests.rb
ns-fog-1.22.2 tests/hp/models/network/subnet_tests.rb
fog-1.22.1 tests/hp/models/network/subnet_tests.rb
fog-1.22.0 tests/hp/models/network/subnet_tests.rb
fog-1.21.0 tests/hp/models/network/subnet_tests.rb
fog-maestrodev-1.20.0.20140305101839 tests/hp/models/network/subnet_tests.rb
fog-maestrodev-1.20.0.20140305101305 tests/hp/models/network/subnet_tests.rb
fog-maestrodev-1.19.0.20140212012611 tests/hp/models/network/subnet_tests.rb
fog-1.20.0 tests/hp/models/network/subnet_tests.rb
fog-maestrodev-1.19.0.20140110004459 tests/hp/models/network/subnet_tests.rb
fog-maestrodev-1.19.0.20140110003812 tests/hp/models/network/subnet_tests.rb
fog-maestrodev-1.19.0.20140109202555 tests/hp/models/network/subnet_tests.rb
fog-maestrodev-1.19.0.20140107192102 tests/hp/models/network/subnet_tests.rb