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-1.22.0 tests/cloudstack/compute/models/security_group_rule_tests.rb
fog-1.21.0 tests/cloudstack/compute/models/security_group_rule_tests.rb
fog-maestrodev-1.20.0.20140305101839 tests/cloudstack/compute/models/security_group_rule_tests.rb
fog-maestrodev-1.20.0.20140305101305 tests/cloudstack/compute/models/security_group_rule_tests.rb
fog-maestrodev-1.19.0.20140212012611 tests/cloudstack/compute/models/security_group_rule_tests.rb
fog-1.20.0 tests/cloudstack/compute/models/security_group_rule_tests.rb
fog-maestrodev-1.19.0.20140110004459 tests/cloudstack/compute/models/security_group_rule_tests.rb
fog-maestrodev-1.19.0.20140110003812 tests/cloudstack/compute/models/security_group_rule_tests.rb
fog-maestrodev-1.19.0.20140109202555 tests/cloudstack/compute/models/security_group_rule_tests.rb
fog-maestrodev-1.19.0.20140107192102 tests/cloudstack/compute/models/security_group_rule_tests.rb
fog-maestrodev-1.19.0.20140107142106 tests/cloudstack/compute/models/security_group_rule_tests.rb
fog-maestrodev-1.19.0.20131219203941 tests/cloudstack/compute/models/security_group_rule_tests.rb
fog-maestrodev-1.18.0.20131219193542 tests/cloudstack/compute/models/security_group_rule_tests.rb
fog-1.19.0 tests/cloudstack/compute/models/security_group_rule_tests.rb
fog-maestrodev-1.18.0.20131219033443 tests/cloudstack/compute/models/security_group_rule_tests.rb
fog-maestrodev-1.18.0.20131219032002 tests/cloudstack/compute/models/security_group_rule_tests.rb
fog-maestrodev-1.18.0.20131219030716 tests/cloudstack/compute/models/security_group_rule_tests.rb
fog-maestrodev-1.18.0.20131219022322 tests/cloudstack/compute/models/security_group_rule_tests.rb
fog-maestrodev-1.18.0.20131218202447 tests/cloudstack/compute/models/security_group_rule_tests.rb
fog-maestrodev-1.18.0.20131209091424 tests/cloudstack/compute/models/security_group_rule_tests.rb