Add the tenant management module to CMakeLists. Don't test tenants before API version 710.

This commit is contained in:
A.J. Beamon 2022-03-25 13:32:15 -07:00
parent b4cfcc10d3
commit 48447c2788
3 changed files with 4 additions and 2 deletions

View File

@ -202,7 +202,7 @@ class TestRunner(object):
self.args.types = list(reduce(lambda t1, t2: filter(t1.__contains__, t2), map(lambda tester: tester.types, self.testers)))
self.args.no_directory_snapshot_ops = self.args.no_directory_snapshot_ops or any([not tester.directory_snapshot_ops_enabled for tester in self.testers])
self.args.no_tenants = self.args.no_tenants or any([not tester.tenants_enabled for tester in self.testers])
self.args.no_tenants = self.args.no_tenants or any([not tester.tenants_enabled for tester in self.testers]) or self.args.api_version < 710
def print_test(self):
test_instructions = self._generate_test()

View File

@ -5,6 +5,7 @@ set(SRCS
fdb/locality.py
fdb/six.py
fdb/subspace_impl.py
fdb/tenant_management.py
fdb/tuple.py
README.rst
MANIFEST.in)

View File

@ -621,7 +621,8 @@ class Tester:
test_size_limit_option(db)
test_get_approximate_size(db)
test_tenants(db)
if fdb.get_api_version() >= 710:
test_tenants(db)
except fdb.FDBError as e:
print("Unit tests failed: %s" % e.description)