From 5dfaa82ed294fe097fdd75e3b576b0ae7724e346 Mon Sep 17 00:00:00 2001 From: Itamar Turner-Trauring Date: Tue, 1 Feb 2022 09:47:51 -0500 Subject: [PATCH] Skip tests that don't pass. --- src/allmydata/test/test_istorageserver.py | 25 +++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/src/allmydata/test/test_istorageserver.py b/src/allmydata/test/test_istorageserver.py index 72c07ab82..65a67c586 100644 --- a/src/allmydata/test/test_istorageserver.py +++ b/src/allmydata/test/test_istorageserver.py @@ -21,6 +21,7 @@ if PY2: # fmt: on from random import Random +from unittest import SkipTest from twisted.internet.defer import inlineCallbacks, returnValue from twisted.internet.task import Clock @@ -1013,11 +1014,18 @@ class IStorageServerMutableAPIsTestsMixin(object): class _SharedMixin(SystemTestMixin): """Base class for Foolscap and HTTP mixins.""" + SKIP_TESTS = set() + def _get_istorage_server(self): raise NotImplementedError("implement in subclass") @inlineCallbacks def setUp(self): + if self._testMethodName in self.SKIP_TESTS: + raise SkipTest( + "Test {} is still not supported".format(self._testMethodName) + ) + AsyncTestCase.setUp(self) self.basedir = "test_istorageserver/" + self.id() yield SystemTestMixin.setUp(self) @@ -1127,6 +1135,23 @@ class HTTPImmutableAPIsTests( ): """HTTP-specific tests for immutable ``IStorageServer`` APIs.""" + # These will start passing in future PRs as HTTP protocol is implemented. + SKIP_TESTS = { + "test_abort", + "test_add_lease_renewal", + "test_add_new_lease", + "test_advise_corrupt_share", + "test_allocate_buckets_repeat", + "test_bucket_advise_corrupt_share", + "test_disconnection", + "test_get_buckets_skips_unfinished_buckets", + "test_matching_overlapping_writes", + "test_non_matching_overlapping_writes", + "test_read_bucket_at_offset", + "test_written_shares_are_readable", + "test_written_shares_are_allocated", + } + class FoolscapMutableAPIsTests( _FoolscapMixin, IStorageServerMutableAPIsTestsMixin, AsyncTestCase