Sha256: 4ac6122ca5980dd79ca75a370583c0fe0d724b4b486883c70dfed98c110e1ea6

Contents?: true

Size: 926 Bytes

Versions: 58

Compression:

Stored size: 926 Bytes

Contents

Shindo.tests("Fog::Network[:openstack] | router", ['openstack']) do

  tests('success') do

    tests('#create').succeeds do
      @instance = Fog::Network[:openstack].routers.create(
        :name => 'router_name',
        :admin_state_up => true
      )
      !@instance.id.nil?
    end

    tests('#update') do
      test 'router name' do
        @instance.name = 'new_name'
        @instance.update.name == 'new_name'
      end
      # Needs code from issue #1598
      #test 'external_gateway_info' do
      #  net = Fog::Network[:openstack].networks.create(
      #    :name => 'net_name',
      #    :shared => false,
      #    :admin_state_up => true,
      #    :tenant_id => 'tenant_id',
      #    :router_external => true,
      #  )
      #  @instance.external_gateway_info = net
      #  @instance.update
      #end
    end

    tests('#destroy').succeeds do
      @instance.destroy == true
    end

  end

end

Version data entries

58 entries across 58 versions & 5 rubygems

Version Path
fog-1.21.0 tests/openstack/models/network/router_tests.rb
fog-maestrodev-1.20.0.20140305101839 tests/openstack/models/network/router_tests.rb
fog-maestrodev-1.20.0.20140305101305 tests/openstack/models/network/router_tests.rb
fog-maestrodev-1.19.0.20140212012611 tests/openstack/models/network/router_tests.rb
fog-1.20.0 tests/openstack/models/network/router_tests.rb
fog-maestrodev-1.19.0.20140110004459 tests/openstack/models/network/router_tests.rb
fog-maestrodev-1.19.0.20140110003812 tests/openstack/models/network/router_tests.rb
fog-maestrodev-1.19.0.20140109202555 tests/openstack/models/network/router_tests.rb
fog-maestrodev-1.19.0.20140107192102 tests/openstack/models/network/router_tests.rb
fog-maestrodev-1.19.0.20140107142106 tests/openstack/models/network/router_tests.rb
fog-maestrodev-1.19.0.20131219203941 tests/openstack/models/network/router_tests.rb
fog-maestrodev-1.18.0.20131219193542 tests/openstack/models/network/router_tests.rb
fog-1.19.0 tests/openstack/models/network/router_tests.rb
fog-maestrodev-1.18.0.20131219033443 tests/openstack/models/network/router_tests.rb
fog-maestrodev-1.18.0.20131219032002 tests/openstack/models/network/router_tests.rb
fog-maestrodev-1.18.0.20131219030716 tests/openstack/models/network/router_tests.rb
fog-maestrodev-1.18.0.20131219022322 tests/openstack/models/network/router_tests.rb
fog-maestrodev-1.18.0.20131218202447 tests/openstack/models/network/router_tests.rb
fog-maestrodev-1.18.0.20131209091424 tests/openstack/models/network/router_tests.rb
fog-maestrodev-1.18.0.20131209090811 tests/openstack/models/network/router_tests.rb