Sha256: 5da75a1b8892c5c89a88e7425a6e53bc4794620371d50cb30119f066683b4d8a

Contents?: true

Size: 914 Bytes

Versions: 130

Compression:

Stored size: 914 Bytes

Contents

if ENV['COVERAGE']
  require 'simplecov'

  SimpleCov.start do
    add_filter '/spec/' 
  end
end

require 'bundler'
Bundler.require
require 'rspec'
require 'rubygems'
require File.expand_path(File.dirname(__FILE__) + "/../config/boot")
Dir[File.dirname(__FILE__) + "/support/**/*.rb"].each {|f| require f}

def group name, *ingress
  {group_name: name, group_id: 'some group', ip_permissions: ingress, ip_permissions_egress: []}
end

def group_ingress port, name
  {user_id_group_pairs:[{user_id: "userId", group_id: "sg-groupId", group_name: name}], ip_ranges:[], ip_protocol: "tcp", from_port: port, to_port: port}
end

def cidr_ingress port, cidr_ip
  {ip_ranges:[{cidr_ip: cidr_ip}], ip_protocol: "tcp", from_port: port, to_port: port}
end

def stub_security_groups groups
  Aws.config[:ec2] = {
    stub_responses: {
        describe_security_groups: {
          security_groups: groups
      }
    }
  }
end

Version data entries

130 entries across 130 versions & 1 rubygems

Version Path
aws_security_viz-0.2.5.pre.alpha.pre.26 spec/spec_helper.rb
aws_security_viz-0.2.5.pre.alpha.pre.25 spec/spec_helper.rb
aws_security_viz-0.2.5.pre.alpha.pre.24 spec/spec_helper.rb
aws_security_viz-0.2.5.pre.alpha.pre.23 spec/spec_helper.rb
aws_security_viz-0.2.5.pre.alpha.pre.22 spec/spec_helper.rb
aws_security_viz-0.2.5.pre.alpha.pre.21 spec/spec_helper.rb
aws_security_viz-0.2.4 spec/spec_helper.rb
aws_security_viz-0.2.4.pre.alpha.pre.20 spec/spec_helper.rb
aws_security_viz-0.2.4.pre.alpha.pre.19 spec/spec_helper.rb
aws_security_viz-0.2.4.pre.alpha.pre.18 spec/spec_helper.rb
aws_security_viz-0.2.4.pre.alpha.pre.15 spec/spec_helper.rb
aws_security_viz-0.2.4.pre.alpha.pre.14 spec/spec_helper.rb
aws_security_viz-0.2.4.pre.alpha.pre.13 spec/spec_helper.rb
aws_security_viz-0.2.3 spec/spec_helper.rb
aws_security_viz-0.2.3.pre.alpha.pre.12 spec/spec_helper.rb
aws_security_viz-0.2.3.pre.alpha.pre.11 spec/spec_helper.rb
aws_security_viz-0.2.3.pre.alpha.pre.10 spec/spec_helper.rb
aws_security_viz-0.2.2 spec/spec_helper.rb
aws_security_viz-0.2.2.pre.alpha.pre.421 spec/spec_helper.rb
aws_security_viz-0.2.2.pre.alpha.pre.420 spec/spec_helper.rb