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/security_group_tests.rb

17 lines
552 B
Ruby

Shindo.tests('Fog::Network[:openstack] | security_group model', ['openstack']) do
model_tests(Fog::Network[:openstack].security_groups, {:name => "fogsecgroup"}, true)
tests('success') do
tests('#create').succeeds do
attributes = {:name => "my_secgroup", :description => "my sec group desc"}
@secgroup = Fog::Network[:openstack].security_groups.create(attributes)
@secgroup.wait_for { ready? } unless Fog.mocking?
!@secgroup.id.nil?
end
tests('#destroy').succeeds do
@secgroup.destroy
end
end
end