diff options
author | Davanum Srinivas <dims@linux.vnet.ibm.com> | 2014-09-30 17:48:42 -0400 |
---|---|---|
committer | Davanum Srinivas <dims@linux.vnet.ibm.com> | 2014-10-01 08:16:10 -0400 |
commit | 7ee3b0f459760e2d80422b0a35024b0b5a85509b (patch) | |
tree | 5e289551af6871c8dcd1f19654ea70e24f50ad7c /tests | |
parent | 78460398eaca80b9ce147e96d424ce9687f87f1b (diff) | |
download | oslo-middleware-7ee3b0f459760e2d80422b0a35024b0b5a85509b.tar.gz |
Expose sizelimit option to config generator
* Adding a group name to prevent collision with keystone
middleware library option
* Adds an opts module for the config generator to use.
* Makes the option in sizelimit private since we don't want consumers
using them directly.
* Moves the options to an oslo_middleware group with appropriate
deprecated_opts settings to keep existing configs working.
Closes-Bug: #1368490
Change-Id: I72263bd363a79275a314de727a04277276866565
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_sizelimit.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_sizelimit.py b/tests/test_sizelimit.py index 0f813d8..89f655a 100644 --- a/tests/test_sizelimit.py +++ b/tests/test_sizelimit.py @@ -70,8 +70,9 @@ class TestRequestBodySizeLimiter(test_base.BaseTestCase): def setUp(self): super(TestRequestBodySizeLimiter, self).setUp() + fixture = self.useFixture(config.Config(sizelimit.CONF)) self.MAX_REQUEST_BODY_SIZE = \ - self.useFixture(config.Config()).conf.max_request_body_size + fixture.conf.oslo_middleware.max_request_body_size @webob.dec.wsgify() def fake_app(req): |