Fix unconsumed column name warning in test_migrations.

The warning is "SAWarning: Unconsumed column names: aggregate_name"

There is no column aggregate_name in the aggregates table.

Change-Id: I3b92b3429ac3e020b9ab3f7ce10c73a4e4b93187
This commit is contained in:
David Ripton
2013-02-11 13:22:47 -05:00
parent f4f37c81d6
commit 7861ebc594

View File

@@ -385,14 +385,13 @@ class TestMigrations(test.TestCase):
def _prerun_146(self, engine):
data = {
'availability_zone': 'custom_az',
'aggregate_name': 1,
'name': 'name',
}
aggregates = get_table(engine, 'aggregates')
result = aggregates.insert().values(data).execute()
# NOTE(sdague) it's important you don't insert keys by value in
# postgresql, because it's autoincrement counter won't get updated
# postgresql, because its autoincrement counter won't get updated
data['id'] = result.inserted_primary_key[0]
return data