Sha256: 6f81086d11fc5bf013af50a1b9137e167e23334425c19eef0f7a33d5e3d74d44

Contents?: true

Size: 1.88 KB

Versions: 10

Compression:

Stored size: 1.88 KB

Contents

# frozen_string_literal: true

Aws.config[:rds] = {
  stub_responses: {
    describe_db_subnet_groups: {
      db_subnet_groups: [
        {
          db_subnet_group_name: 'my-rds-db-subnet-group',
          db_subnet_group_description: 'Created from the RDS Management Console',
          vpc_id: 'vpc-ab123cde',
          subnet_group_status: 'Complete',
          subnets: [
            {
              subnet_identifier: 'subnet-1234a567',
              subnet_availability_zone: {
                name: 'ap-northeast-1a'
              },
              subnet_outpost: {
                arn: nil
              },
              subnet_status: 'Active'
            },
            {
              subnet_identifier: 'subnet-1234b567',
              subnet_availability_zone: {
                name: 'ap-northeast-1c'
              },
              subnet_outpost: {
                arn: nil
              },
              subnet_status: 'Active'
            },
            {
              subnet_identifier: 'subnet-1234c567',
              subnet_availability_zone: {
                name: 'ap-northeast-1d'
              },
              subnet_outpost: {
                arn: nil
              },
              subnet_status: 'Active'
            }
          ],
          db_subnet_group_arn: 'arn:aws:rds:ap-northeast-1:123456789012:subgrp:my-rds-db-subnet-group'
        }
      ],
      marker: nil
    }
  }
}

Aws.config[:ec2] = {
  stub_responses: {
    describe_vpcs: {
      vpcs: [
        {
          vpc_id: 'vpc-ab123cde',
          tags: [
            {
              key: 'Name',
              value: 'my-vpc'
            }
          ]
        }
      ]
    },
    describe_subnets: {
      subnets: [
        {
          subnet_id: 'subnet-1234a567',
          tags: [
            {
              key: 'Name',
              value: 'db-subnet-a'
            }
          ]
        }
      ]
    }
  }
}

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
awspec-1.32.0 lib/awspec/stub/rds_db_subnet_group.rb
awspec-1.31.0 lib/awspec/stub/rds_db_subnet_group.rb
awspec-1.30.0 lib/awspec/stub/rds_db_subnet_group.rb
awspec-1.29.3 lib/awspec/stub/rds_db_subnet_group.rb
awspec-1.29.2 lib/awspec/stub/rds_db_subnet_group.rb
awspec-1.29.1 lib/awspec/stub/rds_db_subnet_group.rb
awspec-1.29.0 lib/awspec/stub/rds_db_subnet_group.rb
awspec-1.28.2 lib/awspec/stub/rds_db_subnet_group.rb
awspec-1.28.1 lib/awspec/stub/rds_db_subnet_group.rb
awspec-1.28.0 lib/awspec/stub/rds_db_subnet_group.rb