From 0f652230ec527ab2a3fdd34fbd487ac44b96ce9d Mon Sep 17 00:00:00 2001 From: Chris Yeoh Date: Fri, 17 May 2013 16:53:37 +0930 Subject: [PATCH] Adds ability to black/whitelist v3 API extensions Adds a config option which will blacklist specific v3 API extensions from being loaded even if they are detected. Adds a config option which if the list is not empty will stop any v3 API extension from being loaded unless it is in the whitelist. No filtering occurs if the whitelist is empty Creates a config option group osapi_v3 to hold the two new options and osapi_v3_enabled renamed to just enabled within the new group Partially implements blueprint v3-api-extension-framework Change-Id: Iec7fdb073b933791b0110dae485538c9080f2670 --- nova/test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nova/test.py b/nova/test.py index ac056ad1c..0d49f6d92 100644 --- a/nova/test.py +++ b/nova/test.py @@ -227,7 +227,7 @@ class TestCase(testtools.TestCase): self.useFixture(fixtures.EnvironmentVariable('http_proxy')) self.policy = self.useFixture(policy_fixture.PolicyFixture()) CONF.set_override('fatal_exception_format_errors', True) - CONF.set_override('osapi_v3_enabled', True) + CONF.set_override('enabled', True, 'osapi_v3') def _clear_attrs(self): # Delete attributes that don't start with _ so they don't pin