mirror of
https://github.com/apple/foundationdb.git
synced 2025-05-13 17:39:31 +08:00
Add the tenant management module to CMakeLists. Don't test tenants before API version 710.
This commit is contained in:
parent
b4cfcc10d3
commit
48447c2788
@ -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.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_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):
|
def print_test(self):
|
||||||
test_instructions = self._generate_test()
|
test_instructions = self._generate_test()
|
||||||
|
@ -5,6 +5,7 @@ set(SRCS
|
|||||||
fdb/locality.py
|
fdb/locality.py
|
||||||
fdb/six.py
|
fdb/six.py
|
||||||
fdb/subspace_impl.py
|
fdb/subspace_impl.py
|
||||||
|
fdb/tenant_management.py
|
||||||
fdb/tuple.py
|
fdb/tuple.py
|
||||||
README.rst
|
README.rst
|
||||||
MANIFEST.in)
|
MANIFEST.in)
|
||||||
|
@ -621,7 +621,8 @@ class Tester:
|
|||||||
test_size_limit_option(db)
|
test_size_limit_option(db)
|
||||||
test_get_approximate_size(db)
|
test_get_approximate_size(db)
|
||||||
|
|
||||||
test_tenants(db)
|
if fdb.get_api_version() >= 710:
|
||||||
|
test_tenants(db)
|
||||||
|
|
||||||
except fdb.FDBError as e:
|
except fdb.FDBError as e:
|
||||||
print("Unit tests failed: %s" % e.description)
|
print("Unit tests failed: %s" % e.description)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user