Test connection error scenarios on more drivers
Change-Id: Ie6c0fa513c2ceb1417ee2d1461c3056a288652f1
This commit is contained in:
parent
cdf092d7d9
commit
1681557b31
|
@ -29,12 +29,16 @@ class TestAPI(testscenarios.TestWithScenarios,
|
||||||
tests.TestCaseSkipNotImplemented):
|
tests.TestCaseSkipNotImplemented):
|
||||||
|
|
||||||
scenarios = [
|
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'}),
|
('zake', {'url': 'zake://?timeout=5'}),
|
||||||
('memcached', {'url': 'memcached://?timeout=5'}),
|
('memcached', {'url': 'memcached://?timeout=5',
|
||||||
|
'bad_url': 'memcached://localhost:1'}),
|
||||||
('ipc', {'url': 'ipc://'}),
|
('ipc', {'url': 'ipc://'}),
|
||||||
('redis', {'url': 'redis://localhost:6379?timeout=5'}),
|
('redis', {'url': 'redis://localhost:6379?timeout=5',
|
||||||
('postgresql', {'url': os.getenv("TOOZ_TEST_PGSQL_URL")}),
|
'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"),
|
('mysql', {'url': os.getenv("TOOZ_TEST_MYSQL_URL"),
|
||||||
'bad_url': 'mysql://localhost:1'}),
|
'bad_url': 'mysql://localhost:1'}),
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in New Issue