mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
0c34ca84f5
Added support for OpenStack Network Connectivity (Quantum).
21 lines
No EOL
608 B
Ruby
21 lines
No EOL
608 B
Ruby
Shindo.tests("Fog::Network[:openstack] | networks", ['openstack']) do
|
|
@network = Fog::Network[:openstack].networks.create(:name => 'net_name',
|
|
:shared => false,
|
|
:admin_state_up => true,
|
|
:tenant_id => 'tenant_id')
|
|
@networks = Fog::Network[:openstack].networks
|
|
|
|
tests('success') do
|
|
|
|
tests('#all').succeeds do
|
|
@networks.all
|
|
end
|
|
|
|
tests('#get').succeeds do
|
|
@networks.get @network.id
|
|
end
|
|
|
|
end
|
|
|
|
@network.destroy
|
|
end |