From b5b60137b479aaac92f60f37d7c3994b398c047c Mon Sep 17 00:00:00 2001 From: ShaoHe Feng Date: Tue, 26 Jan 2016 14:44:16 +0000 Subject: [PATCH] remove the wrong param of fake_db_migration initiation. In test_get_migrations, fake_db_migration is initated with a wrong param. There is no uuid field in migration db. It should be instance_uuid. The test case does not verify this param. If we remain it here, the developers may make wrong impression on migration db struct. This patch removes it. So do not mislead the developers. Change-Id: I35ce83a746391cdc19d26769841b0ae123e2c2be --- nova/tests/unit/compute/test_compute.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/nova/tests/unit/compute/test_compute.py b/nova/tests/unit/compute/test_compute.py index 19a31db297fd..e0045eccb3c5 100644 --- a/nova/tests/unit/compute/test_compute.py +++ b/nova/tests/unit/compute/test_compute.py @@ -10145,8 +10145,7 @@ class ComputeAPITestCase(BaseTestCase): admin_password=None) def test_get_migrations(self): - migration = test_migration.fake_db_migration( - uuid=uuids.migration_instance) + migration = test_migration.fake_db_migration() filters = {'host': 'host1'} self.mox.StubOutWithMock(db, "migration_get_all_by_filters") db.migration_get_all_by_filters(self.context,