import uuid
import fixtures
+import logging
import mox
from oslo.config import cfg
import stubout
from cinder.common import config # noqa Need to register global_opts
from cinder.db import migration
from cinder.openstack.common.db.sqlalchemy import session
-from cinder.openstack.common import log as logging
+from cinder.openstack.common import log as oslo_logging
from cinder.openstack.common import timeutils
from cinder import service
from cinder.tests import conf_fixture
CONF = cfg.CONF
CONF.register_opts(test_opts)
-LOG = logging.getLogger(__name__)
+LOG = oslo_logging.getLogger(__name__)
_DB_CACHE = None
stderr = self.useFixture(fixtures.StringStream('stderr')).stream
self.useFixture(fixtures.MonkeyPatch('sys.stderr', stderr))
- self.log_fixture = self.useFixture(fixtures.FakeLogger())
+ self.log_fixture = self.useFixture(fixtures.FakeLogger(
+ level=logging.DEBUG))
conf_fixture.set_defaults(CONF)
CONF([], default_config_files=[])
conf.set_default('fake_rabbit', True)
conf.set_default('rpc_backend', 'cinder.openstack.common.rpc.impl_fake')
conf.set_default('iscsi_num_targets', 8)
- conf.set_default('verbose', True)
conf.set_default('connection', 'sqlite://', group='database')
conf.set_default('sqlite_synchronous', False)
conf.set_default('policy_file', 'cinder/tests/policy.json')