From 2a94a257f95acf190091337600c1af5ae3c92142 Mon Sep 17 00:00:00 2001 From: Boris Pavlovic Date: Wed, 26 Dec 2012 20:33:22 +0400 Subject: Fix error in test_get_all_by_multiple_options_at_once() We should not use 0 as id. It will conflict with db-unique-keys. Since soft_delete() stores `id` value in `deleted` column, and checking whether entry is deleted softly is made through comparison of `id` and `deleted` column values, created entry will look like already deleted softly. blueprint db-unique-keys Change-Id: Icb7a4880886301a3cc72c6ea0e455b867952812e --- nova/tests/compute/test_compute.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nova/tests/compute/test_compute.py b/nova/tests/compute/test_compute.py index 3983dc8bb..42fea9525 100644 --- a/nova/tests/compute/test_compute.py +++ b/nova/tests/compute/test_compute.py @@ -4384,7 +4384,7 @@ class ComputeAPITestCase(BaseTestCase): instance1 = self._create_fake_instance({ 'display_name': 'woot', - 'id': 0, + 'id': 1, 'uuid': '00000000-0000-0000-0000-000000000010'}) instance2 = self._create_fake_instance({ 'display_name': 'woo', -- cgit