summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlya Shakhat <shakhat@gmail.com>2017-11-29 11:47:51 +0100
committerIlya Shakhat <shakhat@gmail.com>2017-11-29 14:57:33 +0100
commit23e53ec9eb445a032fc85666698cd94c19174d75 (patch)
tree15b5c50e42b41d99c1c05f768c0a24f5458b10c3
parent71589dd64f4391afba0bfe28c2263dfd43a6950e (diff)
downloadosprofiler-23e53ec9eb445a032fc85666698cd94c19174d75.tar.gz
Add functional test for Redis driver
Change-Id: I39d6b8d9f71fd2d0f63873554a6a8ff0075554b8
-rw-r--r--bindep.txt2
-rw-r--r--osprofiler/tests/functional/test_driver.py11
2 files changed, 13 insertions, 0 deletions
diff --git a/bindep.txt b/bindep.txt
index f9d5f93..96001d5 100644
--- a/bindep.txt
+++ b/bindep.txt
@@ -1 +1,3 @@
rabbitmq-server [test]
+redis [test platform:rpm]
+redis-server [test platform:dpkg]
diff --git a/osprofiler/tests/functional/test_driver.py b/osprofiler/tests/functional/test_driver.py
index 7a5d721..02b8d01 100644
--- a/osprofiler/tests/functional/test_driver.py
+++ b/osprofiler/tests/functional/test_driver.py
@@ -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")