Sha256: f536190736f79cc4e1882655bec196819da09ba435e8952d8ba9ba95f9cfd85a

Contents?: true

Size: 852 Bytes

Versions: 67

Compression:

Stored size: 852 Bytes

Contents

Shindo.tests('HP::Network | networking security group rule model', ['hp', 'networking', 'securitygroup']) do

  @secgroup = HP[:network].security_groups.create({:name => 'fogsecgroup'})

  attributes = {:security_group_id => @secgroup.id, :direction => 'ingress'}
  model_tests(HP[:network].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 = HP[:network].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

67 entries across 67 versions & 5 rubygems

Version Path
fog-1.38.0 tests/hp/models/network/security_group_rule_tests.rb
fog-1.37.0 tests/hp/models/network/security_group_rule_tests.rb
fog-1.36.0 tests/hp/models/network/security_group_rule_tests.rb
fog-1.35.0 tests/hp/models/network/security_group_rule_tests.rb
fog-2.0.0.pre.0 tests/hp/models/network/security_group_rule_tests.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-1.32.0/tests/hp/models/network/security_group_rule_tests.rb
fog-1.34.0 tests/hp/models/network/security_group_rule_tests.rb
fog-1.33.0 tests/hp/models/network/security_group_rule_tests.rb
fog-1.32.0 tests/hp/models/network/security_group_rule_tests.rb
fog-1.31.0 tests/hp/models/network/security_group_rule_tests.rb
vagrant-cloudstack-1.1.0 vendor/bundle/gems/fog-1.22.1/tests/hp/models/network/security_group_rule_tests.rb
fog-1.30.0 tests/hp/models/network/security_group_rule_tests.rb
fog-1.29.0 tests/hp/models/network/security_group_rule_tests.rb
fog-1.28.0 tests/hp/models/network/security_group_rule_tests.rb
fog-1.27.0 tests/hp/models/network/security_group_rule_tests.rb
fog-1.26.0 tests/hp/models/network/security_group_rule_tests.rb
fog-1.25.0 tests/hp/models/network/security_group_rule_tests.rb
nsidc-fog-1.24.1 tests/hp/models/network/security_group_rule_tests.rb
fog-1.24.0 tests/hp/models/network/security_group_rule_tests.rb
ns-fog-1.22.11 tests/hp/models/network/security_group_rule_tests.rb