Test connection error scenarios on more drivers

Change-Id: Ie6c0fa513c2ceb1417ee2d1461c3056a288652f1
This commit is contained in:
Julien Danjou 2014-11-17 14:54:26 +01:00
parent cdf092d7d9
commit 1681557b31
1 changed files with 8 additions and 4 deletions

View File

@ -29,12 +29,16 @@ class TestAPI(testscenarios.TestWithScenarios,
tests.TestCaseSkipNotImplemented):
scenarios = [
('zookeeper', {'url': 'kazoo://127.0.0.1:2181?timeout=5'}),
('zookeeper', {'url': 'kazoo://127.0.0.1:2181?timeout=5',
'bad_url': 'kazoo://localhost:1'}),
('zake', {'url': 'zake://?timeout=5'}),
('memcached', {'url': 'memcached://?timeout=5'}),
('memcached', {'url': 'memcached://?timeout=5',
'bad_url': 'memcached://localhost:1'}),
('ipc', {'url': 'ipc://'}),
('redis', {'url': 'redis://localhost:6379?timeout=5'}),
('postgresql', {'url': os.getenv("TOOZ_TEST_PGSQL_URL")}),
('redis', {'url': 'redis://localhost:6379?timeout=5',
'bad_url': 'redis://localhost:1'}),
('postgresql', {'url': os.getenv("TOOZ_TEST_PGSQL_URL"),
'bad_url': 'postgresql://localhost:1'}),
('mysql', {'url': os.getenv("TOOZ_TEST_MYSQL_URL"),
'bad_url': 'mysql://localhost:1'}),
]