summaryrefslogtreecommitdiff
path: root/oslo_middleware/tests/test_cors.py
diff options
context:
space:
mode:
Diffstat (limited to 'oslo_middleware/tests/test_cors.py')
-rw-r--r--oslo_middleware/tests/test_cors.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/oslo_middleware/tests/test_cors.py b/oslo_middleware/tests/test_cors.py
index e47c5d8..de91c34 100644
--- a/oslo_middleware/tests/test_cors.py
+++ b/oslo_middleware/tests/test_cors.py
@@ -164,6 +164,16 @@ class CORSTestFilterFactory(test_base.BaseTestCase):
'''Assert that a filter factory with oslo_config_project succeed.'''
cors.filter_factory(global_conf=None, oslo_config_project='foobar')
+ def test_cor_config_sections_with_defaults(self):
+ '''Assert cors.* config sections with default values work.'''
+
+ # Set up the config fixture.
+ config = self.useFixture(fixture.Config(cfg.CONF))
+ config.load_raw_values(group='cors.subdomain')
+
+ # Now that the config is set up, create our application.
+ self.application = cors.CORS(test_application, cfg.CONF)
+
def test_factory_latent_properties(self):
'''Assert latent properties in paste.ini config.