From 2108ebc09c754d8d974f117d69ad7d0b25390a71 Mon Sep 17 00:00:00 2001 From: Michael Johnson Date: Tue, 20 Sep 2016 22:46:08 +0000 Subject: [PATCH] Fixes a test order issue with image tag owner On hosts that have a valid octavia.conf configured with an amp_image_owner_id specified, the compute creation tests may fail depending on the test order. This patch fixes the bug by explicitly setting the value for the test runs. Change-Id: I72af7fd2a1a08b473d552c088390d91d213f4844 Closes-Bug: #1625844 --- octavia/tests/unit/controller/worker/tasks/test_compute_tasks.py | 1 + 1 file changed, 1 insertion(+) diff --git a/octavia/tests/unit/controller/worker/tasks/test_compute_tasks.py b/octavia/tests/unit/controller/worker/tasks/test_compute_tasks.py index 67679513af..51d5278e1c 100644 --- a/octavia/tests/unit/controller/worker/tasks/test_compute_tasks.py +++ b/octavia/tests/unit/controller/worker/tasks/test_compute_tasks.py @@ -71,6 +71,7 @@ class TestComputeTasks(base.TestCase): conf.config(group="controller_worker", amp_secgroup_list=AMP_SEC_GROUPS) conf.config(group="keystone_authtoken", auth_version=AUTH_VERSION) + conf.config(group="controller_worker", amp_image_owner_id='') _amphora_mock.id = AMPHORA_ID _amphora_mock.status = constants.AMPHORA_ALLOCATED