spec/aws-record/record/table_config_spec.rb [1074:1146]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
          cfg = TableConfig.define do |t|
            t.model_class(TestModelWithGsi)
            t.read_capacity_units(2)
            t.write_capacity_units(2)
            t.global_secondary_index(:gsi) do |i|
              i.read_capacity_units(1)
              i.write_capacity_units(1)
            end
            t.client_options(stub_responses: true)
          end
          stub_client = configure_test_client(cfg.client)
          stub_client.stub_responses(
            :describe_table,
            table: {
              attribute_definitions: [
                {
                  attribute_name: 'hk',
                  attribute_type: 'S'
                },
                {
                  attribute_name: 'rk',
                  attribute_type: 'S'
                },
                {
                  attribute_name: 'gsi_pk',
                  attribute_type: 'S'
                },
                {
                  attribute_name: 'gsi_sk',
                  attribute_type: 'S'
                }
              ],
              table_name: 'TestModel',
              key_schema: [
                {
                  attribute_name: 'hk',
                  key_type: 'HASH'
                },
                {
                  attribute_name: 'rk',
                  key_type: 'RANGE'
                }
              ],
              provisioned_throughput: {
                read_capacity_units: 2,
                write_capacity_units: 2,
                number_of_decreases_today: 0
              },
              global_secondary_indexes: [
                {
                  index_name: 'gsi',
                  key_schema: [
                    {
                      key_type: 'RANGE',
                      attribute_name: 'gsi_sk'
                    },
                    {
                      key_type: 'HASH',
                      attribute_name: 'gsi_pk'
                    }
                  ],
                  projection: {
                    projection_type: 'INCLUDE',
                    non_key_attributes: %w[a b c]
                  },
                  item_count: 0,
                  index_status: 'ACTIVE',
                  backfilling: false,
                  provisioned_throughput: {
                    read_capacity_units: 1,
                    write_capacity_units: 1,
                    number_of_decreases_today: 0
                  }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



spec/aws-record/record/table_config_spec.rb [1493:1565]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
          cfg = TableConfig.define do |t|
            t.model_class(TestModelWithGsi)
            t.read_capacity_units(2)
            t.write_capacity_units(2)
            t.global_secondary_index(:gsi) do |i|
              i.read_capacity_units(1)
              i.write_capacity_units(1)
            end
            t.client_options(stub_responses: true)
          end
          stub_client = configure_test_client(cfg.client)
          stub_client.stub_responses(
            :describe_table,
            table: {
              attribute_definitions: [
                {
                  attribute_name: 'hk',
                  attribute_type: 'S'
                },
                {
                  attribute_name: 'rk',
                  attribute_type: 'S'
                },
                {
                  attribute_name: 'gsi_pk',
                  attribute_type: 'S'
                },
                {
                  attribute_name: 'gsi_sk',
                  attribute_type: 'S'
                }
              ],
              table_name: 'TestModel',
              key_schema: [
                {
                  attribute_name: 'hk',
                  key_type: 'HASH'
                },
                {
                  attribute_name: 'rk',
                  key_type: 'RANGE'
                }
              ],
              provisioned_throughput: {
                read_capacity_units: 2,
                write_capacity_units: 2,
                number_of_decreases_today: 0
              },
              global_secondary_indexes: [
                {
                  index_name: 'gsi',
                  key_schema: [
                    {
                      key_type: 'RANGE',
                      attribute_name: 'gsi_sk'
                    },
                    {
                      key_type: 'HASH',
                      attribute_name: 'gsi_pk'
                    }
                  ],
                  projection: {
                    projection_type: 'INCLUDE',
                    non_key_attributes: %w[a b c]
                  },
                  item_count: 0,
                  index_status: 'ACTIVE',
                  backfilling: false,
                  provisioned_throughput: {
                    read_capacity_units: 1,
                    write_capacity_units: 1,
                    number_of_decreases_today: 0
                  }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



