diff options
| author | Julien Danjou <julien@danjou.info> | 2017-03-22 14:19:29 +0100 |
|---|---|---|
| committer | Julien Danjou <julien@danjou.info> | 2017-03-28 18:29:47 +0200 |
| commit | afba8d3c22724b4454d558168a6b96c742003c62 (patch) | |
| tree | 0f73ae5e750b12108285841e39fb13f6271398f0 /tooz/tests | |
| parent | 85fbf6ca3ca055a9050fadf6ed2019a132d823f7 (diff) | |
| download | tooz-afba8d3c22724b4454d558168a6b96c742003c62.tar.gz | |
tests: tests fail if no URL is set + run partitioner tests on basic drivers
This makes sure that the test fails if not URL is set. This allows make sure we
test the non-coordination tests (e.g. partitioner) with all base drives (zake,
ipc, file) by using the TOOZ_TEST_URL to run the tests.
Change-Id: Id500636d166e5ebcc54fda16ef128f91f32170d6
Diffstat (limited to 'tooz/tests')
| -rw-r--r-- | tooz/tests/__init__.py | 2 | ||||
| -rw-r--r-- | tooz/tests/test_coordination.py | 12 |
2 files changed, 1 insertions, 13 deletions
diff --git a/tooz/tests/__init__.py b/tooz/tests/__init__.py index e949103..c9a0bf7 100644 --- a/tooz/tests/__init__.py +++ b/tooz/tests/__init__.py @@ -56,7 +56,7 @@ class TestWithCoordinator(testcase.TestCase): def setUp(self): super(TestWithCoordinator, self).setUp() if self.url is None: - self.skipTest("No URL set for this driver") + raise RuntimeError("No URL set for this driver") self.useFixture(fixtures.NestedTempfile()) self.group_id = get_random_uuid() self.member_id = get_random_uuid() diff --git a/tooz/tests/test_coordination.py b/tooz/tests/test_coordination.py index c177100..611aa89 100644 --- a/tooz/tests/test_coordination.py +++ b/tooz/tests/test_coordination.py @@ -978,18 +978,6 @@ class TestAPI(tests.TestWithCoordinator): self.assertTrue(lock.release()) -class ZakeTestAPI(TestAPI): - url = "zake://" - - -class IPCTestAPI(TestAPI): - url = "ipc://" - - -class FileTestAPI(TestAPI): - url = "file:///tmp" - - class TestHook(testcase.TestCase): def setUp(self): super(TestHook, self).setUp() |
