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