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.1.pre.alpha.pre.289 spec/spec_helper.rb
aws_security_viz-0.2.1.pre.alpha.pre.288 spec/spec_helper.rb
aws_security_viz-0.2.1.pre.alpha.pre.285 spec/spec_helper.rb
aws_security_viz-0.2.1.pre.alpha.pre.282 spec/spec_helper.rb
aws_security_viz-0.2.1.pre.alpha.pre.281 spec/spec_helper.rb
aws_security_viz-0.2.1.pre.alpha.pre.278 spec/spec_helper.rb
aws_security_viz-0.2.1.pre.alpha.pre.269 spec/spec_helper.rb
aws_security_viz-0.2.1.pre.alpha.pre.268 spec/spec_helper.rb
aws_security_viz-0.2.1.pre.alpha.pre.267 spec/spec_helper.rb
aws_security_viz-0.2.1.pre.alpha.pre.266 spec/spec_helper.rb
aws_security_viz-0.2.1.pre.alpha.pre.265 spec/spec_helper.rb
aws_security_viz-0.2.1.pre.alpha.pre.264 spec/spec_helper.rb
aws_security_viz-0.2.1.pre.alpha.pre.263 spec/spec_helper.rb
aws_security_viz-0.2.1.pre.alpha.pre.262 spec/spec_helper.rb
aws_security_viz-0.2.1.pre.alpha.pre.261 spec/spec_helper.rb
aws_security_viz-0.2.1.pre.alpha.pre.235 spec/spec_helper.rb
aws_security_viz-0.2.1.pre.alpha.pre.232 spec/spec_helper.rb
aws_security_viz-0.2.1.pre.alpha.pre.231 spec/spec_helper.rb
aws_security_viz-0.2.1.pre.alpha.pre.228 spec/spec_helper.rb
aws_security_viz-0.2.1.pre.alpha.pre.225 spec/spec_helper.rb