Sha256: 7596f86bb11318b5412f4a55c106c7077b9f11f2158b7e35236c5d5b9de4d285

Contents?: true

Size: 879 Bytes

Versions: 37

Compression:

Stored size: 879 Bytes

Contents

Shindo.tests("Fog::Network[:openstack] | ports", ['openstack']) do
  @port = 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')
  @ports = Fog::Network[:openstack].ports

  tests('success') do

    tests('#all').succeeds do
      @ports.all
    end

    tests('#get').succeeds do
      @ports.get @port.id
    end

  end

  @port.destroy
end

Version data entries

37 entries across 37 versions & 5 rubygems

Version Path
fog-1.28.0 tests/openstack/models/network/ports_tests.rb
fog-1.27.0 tests/openstack/models/network/ports_tests.rb
fog-1.26.0 tests/openstack/models/network/ports_tests.rb
fog-1.25.0 tests/openstack/models/network/ports_tests.rb
nsidc-fog-1.24.1 tests/openstack/models/network/ports_tests.rb
fog-1.24.0 tests/openstack/models/network/ports_tests.rb
ns-fog-1.22.11 tests/openstack/models/network/ports_tests.rb
ns-fog-1.22.10 tests/openstack/models/network/ports_tests.rb
ns-fog-1.22.9 tests/openstack/models/network/ports_tests.rb
ns-fog-1.22.8 tests/openstack/models/network/ports_tests.rb
ns-fog-1.22.7 tests/openstack/models/network/ports_tests.rb
ns-fog-1.22.6 tests/openstack/models/network/ports_tests.rb
fog-1.23.0 tests/openstack/models/network/ports_tests.rb
ns-fog-1.22.4 tests/openstack/models/network/ports_tests.rb
ns-fog-1.22.3 tests/openstack/models/network/ports_tests.rb
ns-fog-1.22.2 tests/openstack/models/network/ports_tests.rb
fog-1.22.1 tests/openstack/models/network/ports_tests.rb