Register oslo_log options before using them

Launching this test alone will fail otherwise as we use conf.debug and
it's not registered.

Change-Id: I39392d3b9e369c84342580bbffd6b15435fe820e
This commit is contained in:
Julien Danjou 2015-06-05 09:46:05 +02:00
parent 960af604ad
commit 91ad3bcd96

View File

@ -18,6 +18,7 @@
import mock
from oslo_config import cfg
from oslo_config import fixture as fixture_config
from oslo_log import log
from ceilometer.api import app
from ceilometer.tests import base
@ -28,6 +29,7 @@ class TestApp(base.BaseTestCase):
def setUp(self):
super(TestApp, self).setUp()
self.CONF = self.useFixture(fixture_config.Config()).conf
log.register_options(cfg.CONF)
def test_api_paste_file_not_exist(self):
self.CONF.set_override('api_paste_config', 'non-existent-file')