From 5b6ca5ce898a2e9a810ec49a1712337a41822788 Mon Sep 17 00:00:00 2001 From: armando-migliaccio Date: Tue, 7 Jul 2015 11:13:41 -0700 Subject: [PATCH] Make sure path_prefix is set during unit tests Change 18bc67d5 broke *-aas unit tests. This change ensures that mocking is done correctly, the same way it is done for the other plugin attributes Change-Id: I4167f18560e3a3aad652aae1ea9d3c6bc34dc796 Closes-bug: #1472361 --- neutron/tests/unit/extensions/base.py | 1 + 1 file changed, 1 insertion(+) diff --git a/neutron/tests/unit/extensions/base.py b/neutron/tests/unit/extensions/base.py index a4d020691..75ba95a83 100644 --- a/neutron/tests/unit/extensions/base.py +++ b/neutron/tests/unit/extensions/base.py @@ -84,6 +84,7 @@ class ExtensionTestCase(testlib_api.WebTestCase): quota.QUOTAS._driver = None cfg.CONF.set_override('quota_driver', 'neutron.quota.ConfDriver', group='QUOTAS') + setattr(instance, 'path_prefix', resource_prefix) class ExtensionTestExtensionManager(object): def get_resources(self): -- 2.45.2