Sha256: 80a80b938763a39859bb98c36063364db17c44f7cc0be867552a9db209e0f25b

Contents?: true

Size: 1009 Bytes

Versions: 37

Compression:

Stored size: 1009 Bytes

Contents

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

  tests('success') do

    tests('#create').succeeds do
      @instance = Fog::Network[:openstack].ports.create(:name => 'port_name',
                                                        :network_id => 'net_id',
                                                        :fixed_ips => [],
                                                        :mac_address => 'fa:16:3e:62:91:7f',
                                                        :admin_state_up => true,
                                                        :device_owner => 'device_owner',
                                                        :device_id => 'device_id',
                                                        :tenant_id => 'tenant_id')
      !@instance.id.nil?
    end

    tests('#update').succeeds do
      @instance.name = 'new_port_name'
      @instance.update
    end

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

  end

end

Version data entries

37 entries across 37 versions & 5 rubygems

Version Path
fog-openstack-0.1.7 tests/openstack/models/network/port_tests.rb
fog-openstack-0.1.6 tests/openstack/models/network/port_tests.rb
fog-openstack-0.1.5 tests/openstack/models/network/port_tests.rb
fog-openstack-0.1.4 tests/openstack/models/network/port_tests.rb
fog-openstack-0.1.3 tests/openstack/models/network/port_tests.rb
fog-openstack-0.1.2 tests/openstack/models/network/port_tests.rb
fog-openstack-0.1.1 tests/openstack/models/network/port_tests.rb
fog-openstack-0.1.0 tests/openstack/models/network/port_tests.rb
fog-1.37.0 tests/openstack/models/network/port_tests.rb
fog-1.36.0 tests/openstack/models/network/port_tests.rb
fog-1.35.0 tests/openstack/models/network/port_tests.rb
fog-2.0.0.pre.0 tests/openstack/models/network/port_tests.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-1.32.0/tests/openstack/models/network/port_tests.rb
fog-1.34.0 tests/openstack/models/network/port_tests.rb
fog-1.33.0 tests/openstack/models/network/port_tests.rb
fog-1.32.0 tests/openstack/models/network/port_tests.rb
fog-1.31.0 tests/openstack/models/network/port_tests.rb
vagrant-cloudstack-1.1.0 vendor/bundle/gems/fog-1.22.1/tests/openstack/models/network/port_tests.rb
fog-1.30.0 tests/openstack/models/network/port_tests.rb
fog-1.29.0 tests/openstack/models/network/port_tests.rb