Sha256: a0d8310efd8fd8a89405ebd4638a483597bba6f10679e6b8c30195e057386dc0
Contents?: true
Size: 862 Bytes
Versions: 37
Compression:
Stored size: 862 Bytes
Contents
Shindo.tests('HP::Network | networking security group rules collection', ['hp', 'networking', 'securitygroup']) do @secgroup = HP[:network].security_groups.create({:name => 'my_secgroup'}) attributes = {:security_group_id => @secgroup.id, :direction => 'ingress'} collection_tests(HP[:network].security_group_rules, attributes, true) tests('success') do attributes = {:security_group_id => @secgroup.id, :direction => 'ingress', :protocol => 'tcp', :port_range_min => 22, :port_range_max => 22, :remote_ip_prefix => '0.0.0.0/0'} @secgrouprule = HP[:network].security_group_rules.create(attributes) tests('#all(filter)').succeeds do secgrouprule = HP[:network].security_group_rules.all({:direction => 'ingress'}) secgrouprule.first.direction == 'ingress' end @secgrouprule.destroy end @secgroup.destroy end
Version data entries
37 entries across 37 versions & 2 rubygems