spec/aws-record/record/table_migration_spec.rb [335:390]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
            klass.global_secondary_index(
              :test_gsi,
              hash_key: :gsi_partition,
              range_key: :gsi_sort,
              projection: {
                projection_type: 'ALL'
              }
            )
            migration.client = stub_client
            migration.create!(create_opts)
            expect(api_requests).to eq(
              [
                {
                  table_name: 'TestTable',
                  attribute_definitions: [
                    {
                      attribute_name: 'id',
                      attribute_type: 'N'
                    },
                    {
                      attribute_name: 'datekey',
                      attribute_type: 'S'
                    },
                    {
                      attribute_name: 'gsi_partition',
                      attribute_type: 'S'
                    },
                    {
                      attribute_name: 'gsi_sort',
                      attribute_type: 'S'
                    }
                  ],
                  key_schema: [
                    {
                      attribute_name: 'id',
                      key_type: 'HASH'
                    },
                    {
                      attribute_name: 'datekey',
                      key_type: 'RANGE'
                    }
                  ],
                  global_secondary_indexes: [{
                    index_name: 'test_gsi',
                    key_schema: [
                      {
                        attribute_name: 'gsi_partition',
                        key_type: 'HASH'
                      },
                      {
                        attribute_name: 'gsi_sort',
                        key_type: 'RANGE'
                      }
                    ],
                    projection: {
                      projection_type: 'ALL'
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



spec/aws-record/record/table_migration_spec.rb [409:464]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
            klass.global_secondary_index(
              :test_gsi,
              hash_key: :gsi_partition,
              range_key: :gsi_sort,
              projection: {
                projection_type: 'ALL'
              }
            )
            migration.client = stub_client
            migration.create!(create_opts)
            expect(api_requests).to eq(
              [
                {
                  table_name: 'TestTable',
                  attribute_definitions: [
                    {
                      attribute_name: 'id',
                      attribute_type: 'N'
                    },
                    {
                      attribute_name: 'datekey',
                      attribute_type: 'S'
                    },
                    {
                      attribute_name: 'gsi_partition',
                      attribute_type: 'S'
                    },
                    {
                      attribute_name: 'gsi_sort',
                      attribute_type: 'S'
                    }
                  ],
                  key_schema: [
                    {
                      attribute_name: 'id',
                      key_type: 'HASH'
                    },
                    {
                      attribute_name: 'datekey',
                      key_type: 'RANGE'
                    }
                  ],
                  global_secondary_indexes: [{
                    index_name: 'test_gsi',
                    key_schema: [
                      {
                        attribute_name: 'gsi_partition',
                        key_type: 'HASH'
                      },
                      {
                        attribute_name: 'gsi_sort',
                        key_type: 'RANGE'
                      }
                    ],
                    projection: {
                      projection_type: 'ALL'
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



