summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Ripton <dripton@redhat.com>2013-02-11 13:22:47 -0500
committerDavid Ripton <dripton@redhat.com>2013-02-11 13:22:47 -0500
commit65abe9d20c7e09f2b474cd35f2e4c892c6fedd4c (patch)
tree5e8fcd467b3a600bca53fc8ecab80c0c1038bb2d
parent20424b987946ee56e39f88aed7fddd35c54d7207 (diff)
downloadnova-65abe9d20c7e09f2b474cd35f2e4c892c6fedd4c.tar.gz
nova-65abe9d20c7e09f2b474cd35f2e4c892c6fedd4c.tar.xz
nova-65abe9d20c7e09f2b474cd35f2e4c892c6fedd4c.zip
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
-rw-r--r--nova/tests/test_migrations.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/nova/tests/test_migrations.py b/nova/tests/test_migrations.py
index 02d7462d2..e9b82ec9c 100644
--- a/nova/tests/test_migrations.py
+++ b/nova/tests/test_migrations.py
@@ -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