1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/tests/openstack/models/network/ports_tests.rb
Ferran Rodenas 0c34ca84f5 [openstack|network] Add support for OpenStack Quantum
Added support for OpenStack Network Connectivity (Quantum).
2012-09-22 00:14:40 +02:00

25 lines
No EOL
878 B
Ruby

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