Sha256: 12179241cb5ace88f484388b05ff0ff226b690b6730fabfcbf915481b3d386f2

Contents?: true

Size: 943 Bytes

Versions: 76

Compression:

Stored size: 943 Bytes

Contents

def security_group_rule_tests(connection, params, direction, mocks_implemented = true)
  @security_group = connection.security_groups.create(params[:security_group_attributes])

  rule_params = params[:security_group_rule_attributes].merge(:security_group_id => @security_group.id, :direction => direction)

  model_tests(connection.security_group_rules, rule_params, mocks_implemented) do

    if Fog.mocking? && !mocks_implemented
      pending
    end

  end
  @security_group.destroy
end

provider, config = :cloudstack, compute_providers[:cloudstack]

Shindo.tests("Fog::Compute[:#{provider}] | security_group_rules | ingress", [provider.to_s]) do

  security_group_rule_tests(Fog::Compute[:cloudstack], config, "ingress", config[:mocked])

end


Shindo.tests("Fog::Compute[:#{provider}] | security_group_rules | egress", [provider.to_s]) do

  security_group_rule_tests(Fog::Compute[:cloudstack], config, "egress", config[:mocked])

end

Version data entries

76 entries across 76 versions & 10 rubygems

Version Path
fog-maestrodev-1.15.0.20130927082724 tests/cloudstack/compute/models/security_group_rule_tests.rb
fog-maestrodev-1.15.0.20130829165835 tests/cloudstack/compute/models/security_group_rule_tests.rb
fog-1.15.0 tests/cloudstack/compute/models/security_group_rule_tests.rb
gapinc-fog-1.14.0 tests/cloudstack/compute/models/security_group_rule_tests.rb
fog-maestrodev-1.14.0.20130806165225 tests/cloudstack/compute/models/security_group_rule_tests.rb
fog-1.14.0 tests/cloudstack/compute/models/security_group_rule_tests.rb
fog-1.13.0 tests/cloudstack/compute/models/security_group_rule_tests.rb
gapinc-fog-1.12.1.2 tests/cloudstack/compute/models/security_group_rule_tests.rb
gapinc-fog-1.12.1.1 tests/cloudstack/compute/models/security_group_rule_tests.rb
gapinc-fog-1.12.1a tests/cloudstack/compute/models/security_group_rule_tests.rb
gapinc-fog-1.12.1 tests/cloudstack/compute/models/security_group_rule_tests.rb
fog-1.12.1 tests/cloudstack/compute/models/security_group_rule_tests.rb
fog-1.12.0 tests/cloudstack/compute/models/security_group_rule_tests.rb
hpfog-0.0.20 tests/cloudstack/compute/models/security_group_rule_tests.rb
vagrant-shell-0.2.6 vendor/bundle/gems/fog-1.10.1/tests/cloudstack/compute/models/security_group_rule_tests.rb
vagrant-shell-0.2.5 vendor/bundle/gems/fog-1.10.1/tests/cloudstack/compute/models/security_group_rule_tests.rb
fog-nirvanix-1.8.2 tests/cloudstack/compute/models/security_group_rule_tests.rb
fog-1.11.1 tests/cloudstack/compute/models/security_group_rule_tests.rb
fog-1.11.0 tests/cloudstack/compute/models/security_group_rule_tests.rb
fog-nirvanix-1.8.1 tests/cloudstack/compute/models/security_group_rule_tests.rb