Sha256: 96eea4c3a34de70336475147fb59e01e5cdbbad1ee49719ab435ee8dcc209bd6

Contents?: true

Size: 1.75 KB

Versions: 38

Compression:

Stored size: 1.75 KB

Contents

Aws.config[:ec2] = {
  stub_responses: {
    describe_security_groups: {
      security_groups: [
        {
          vpc_id: 'vpc-ab123cde',
          group_id: 'sg-1a2b3cd4',
          group_name: 'my-security-group-name',
          ip_permissions: [
            {
              from_port: 80,
              to_port: 80,
              ip_protocol: 'tcp',
              ip_ranges: [
                {
                  cidr_ip: '123.456.789.012/32'
                },
                {
                  cidr_ip: '456.789.123.456/32'
                }
              ],
              user_id_group_pairs: []
            },
            {
              from_port: 22,
              to_port: 22,
              ip_protocol: 'tcp',
              ip_ranges: [],
              user_id_group_pairs: [
                {
                  group_id: 'sg-5a6b7cd8',
                  group_name: 'group-name-sg'
                }
              ]
            },
            {
              from_port: 50_000,
              to_port: 50_009,
              ip_protocol: 'tcp',
              ip_ranges: [
                {
                  cidr_ip: '123.456.789.012/32'
                }
              ],
              user_id_group_pairs: []
            }
          ],
          ip_permissions_egress: [
            {
              from_port: nil,
              to_port: nil,
              ip_protocol: '-1',
              ip_ranges: [
                {
                  cidr_ip: '0.0.0.0/0'
                }
              ]
            }
          ]
        }
      ]
    },
    describe_vpcs: {
      vpcs: [
        {
          vpc_id: 'vpc-ab123cde',
          tags: [
            {
              key: 'Name',
              value: 'my-vpc'
            }
          ]
        }
      ]
    }
  }
}

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
awspec-0.32.0 lib/awspec/stub/security_group.rb
awspec-0.31.0 lib/awspec/stub/security_group.rb
awspec-0.30.0 lib/awspec/stub/security_group.rb
awspec-0.29.0 lib/awspec/stub/security_group.rb
awspec-0.28.1 lib/awspec/stub/security_group.rb
awspec-0.28.0 lib/awspec/stub/security_group.rb
awspec-0.27.2 lib/awspec/stub/security_group.rb
awspec-0.27.1 lib/awspec/stub/security_group.rb
awspec-0.27.0 lib/awspec/stub/security_group.rb
awspec-0.26.2 lib/awspec/stub/security_group.rb
awspec-0.26.1 lib/awspec/stub/security_group.rb
awspec-0.26.0 lib/awspec/stub/security_group.rb
awspec-0.25.3 lib/awspec/stub/security_group.rb
awspec-0.25.2 lib/awspec/stub/security_group.rb
awspec-0.25.1 lib/awspec/stub/security_group.rb
awspec-0.25.0 lib/awspec/stub/security_group.rb
awspec-0.24.2 lib/awspec/stub/security_group.rb
awspec-0.24.1 lib/awspec/stub/security_group.rb
awspec-0.24.0 lib/awspec/stub/security_group.rb
awspec-0.23.0 lib/awspec/stub/security_group.rb