Sha256: c5bc5b5ad6f94b0e395df2c854d3c5a9f9c4312ac6ac72010f9511d278bd6a79
Contents?: true
Size: 943 Bytes
Versions: 42
Compression:
Stored size: 943 Bytes
Contents
Shindo.tests('Fog::Network[:openstack] | security_group_rule model', ['openstack']) do @secgroup = Fog::Network[:openstack].security_groups.create({:name => "fogsecgroup"}) attributes = {:security_group_id => @secgroup.id, :direction => "ingress"} model_tests(Fog::Network[:openstack].security_group_rules, attributes, true) tests('success') do tests('#create').succeeds 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 = Fog::Network[:openstack].security_group_rules.create(attributes) @secgrouprule.wait_for { ready? } unless Fog.mocking? !@secgrouprule.id.nil? end tests('#destroy').succeeds do @secgrouprule.destroy end end @secgroup.destroy end
Version data entries
42 entries across 42 versions & 6 rubygems