From 9d8b146d7143e2762bec001d207a3f7a9d66f5cd Mon Sep 17 00:00:00 2001 From: Vilobh Meshram Date: Fri, 1 May 2015 14:06:05 -0700 Subject: [PATCH] Add zookeeper tag in setup.cfg Add zookeeper tag in setup.cfg to enable loading the Zookeeper driver. Change-Id: Ia5c1bbd75a93c3ebb86ac8ece88ebc69e006440c --- setup.cfg | 1 + tooz/tests/test_coordination.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/setup.cfg b/setup.cfg index 168fbe69..56c0341c 100644 --- a/setup.cfg +++ b/setup.cfg @@ -33,6 +33,7 @@ tooz.backends = postgresql = tooz.drivers.pgsql:PostgresDriver mysql = tooz.drivers.mysql:MySQLDriver file = tooz.drivers.file:FileDriver + zookeeper = tooz.drivers.zookeeper:KazooDriver [build_sphinx] all_files = 1 diff --git a/tooz/tests/test_coordination.py b/tooz/tests/test_coordination.py index be3a93c1..cd92c6fa 100644 --- a/tooz/tests/test_coordination.py +++ b/tooz/tests/test_coordination.py @@ -55,6 +55,8 @@ class TestAPI(testscenarios.TestWithScenarios, 'bad_url': 'postgresql://localhost:1'}), ('mysql', {'url': os.getenv("TOOZ_TEST_MYSQL_URL"), 'bad_url': 'mysql://localhost:1'}), + ('zookeeper', {'url': os.getenv("TOOZ_TEST_ZOOKEEPER_URL"), + 'bad_url': 'zookeeper://localhost:1'}), ] def assertRaisesAny(self, exc_classes, callable_obj, *args, **kwargs):