1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/tests/hp/models/network/security_groups_tests.rb

20 lines
No EOL
623 B
Ruby

Shindo.tests('HP::Network | networking security groups collection', ['hp', 'networking', 'securitygroup']) do
attributes = {:name => 'my_secgroup', :description => 'my sec group desc'}
collection_tests(HP[:network].security_groups, attributes, true)
tests('success') do
attributes = {:name => 'fogsecgroup', :description => 'fog sec group desc'}
@secgroup = HP[:network].security_groups.create(attributes)
tests('#all(filter)').succeeds do
secgroup = HP[:network].security_groups.all({:name => 'fogsecgroup'})
secgroup.first.name == 'fogsecgroup'
end
@secgroup.destroy
end
end