Add functional test for Redis driver
Change-Id: I39d6b8d9f71fd2d0f63873554a6a8ff0075554b8
This commit is contained in:
parent
71589dd64f
commit
23e53ec9eb
|
@ -1 +1,3 @@
|
||||||
rabbitmq-server [test]
|
rabbitmq-server [test]
|
||||||
|
redis [test platform:rpm]
|
||||||
|
redis-server [test platform:dpkg]
|
||||||
|
|
|
@ -115,3 +115,14 @@ class DriverTestCase(test.FunctionalTestCase):
|
||||||
self._assert_child_dict(
|
self._assert_child_dict(
|
||||||
cbaz, base_id, cbar["trace_id"], "rpc",
|
cbaz, base_id, cbar["trace_id"], "rpc",
|
||||||
"osprofiler.tests.functional.test_driver.Foo.baz")
|
"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")
|
||||||
|
|
Loading…
Reference in New Issue