From 58112ba75b8a53e6f361600cc9a0b602e5aebc7c Mon Sep 17 00:00:00 2001 From: Itamar Turner-Trauring Date: Mon, 18 Oct 2021 12:50:29 -0400 Subject: [PATCH] Plan of implementation for lease tests. --- newsfragments/3800.minor | 0 src/allmydata/test/test_istorageserver.py | 10 ++++++++++ 2 files changed, 10 insertions(+) create mode 100644 newsfragments/3800.minor diff --git a/newsfragments/3800.minor b/newsfragments/3800.minor new file mode 100644 index 000000000..e69de29bb diff --git a/src/allmydata/test/test_istorageserver.py b/src/allmydata/test/test_istorageserver.py index bd056ae13..1c5496ea4 100644 --- a/src/allmydata/test/test_istorageserver.py +++ b/src/allmydata/test/test_istorageserver.py @@ -444,6 +444,10 @@ class IStorageServerImmutableAPIsTestsMixin(object): b"immutable", storage_index, 0, b"ono" ) + # TODO allocate_buckets creates lease + # TODO add_lease renews lease if existing storage index and secret + # TODO add_lease creates new lease if new secret + class IStorageServerMutableAPIsTestsMixin(object): """ @@ -820,6 +824,12 @@ class IStorageServerMutableAPIsTestsMixin(object): b"mutable", storage_index, 0, b"ono" ) + # TODO STARAW creates lease for new data + # TODO STARAW renews lease if same secret is used on existing data + # TODO STARAW creates new lease for existing data if new secret is given + # TODO add_lease renews lease if existing storage index and secret + # TODO add_lease creates new lease if new secret + class _FoolscapMixin(SystemTestMixin): """Run tests on Foolscap version of ``IStorageServer."""