Merge "Add functional test for Redis driver"

This commit is contained in:
Zuul
2017-12-19 03:31:00 +00:00
committed by Gerrit Code Review
2 changed files with 13 additions and 0 deletions

View File

@@ -1 +1,3 @@
rabbitmq-server [test]
redis [test platform:rpm]
redis-server [test platform:dpkg]

View File

@@ -115,3 +115,14 @@ class DriverTestCase(test.FunctionalTestCase):
self._assert_child_dict(
cbaz, base_id, cbar["trace_id"], "rpc",
"osprofiler.tests.functional.test_driver.Foo.baz")
class RedisDriverTestCase(DriverTestCase):
def setUp(self):
super(DriverTestCase, self).setUp()
CONF([])
opts.set_defaults(CONF,
connection_string="redis://localhost:6379",
enabled=True,
trace_sqlalchemy=False,
hmac_keys="SECRET_KEY")