mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
330a351ade
Done with `rubocop --auto-correct --only TrailingBlankLines`
28 lines
1,009 B
Ruby
28 lines
1,009 B
Ruby
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
|