MDMF_VERSION
from allmydata.check_results import CheckResults, CheckAndRepairResults, \
DeepCheckResults, DeepCheckAndRepairResults
+from allmydata.storage_client import StubServer
from allmydata.mutable.layout import unpack_header
from allmydata.mutable.publish import MutableData
from allmydata.storage.mutable import MutableShareFile
def check(self, monitor, verify=False, add_lease=False):
nodeid = "\x00"*20
+ s = StubServer(nodeid)
r = CheckResults(self.my_uri, self.storage_index,
healthy=True, recoverable=True,
needs_rebalancing=False,
count_recoverable_versions=1,
count_unrecoverable_versions=0,
servers_responding=[nodeid],
- sharemap={1: [nodeid]},
+ sharemap={1: [s]},
count_wrong_shares=0,
list_corrupt_shares=[],
count_corrupt_shares=0,
def check(self, monitor, verify=False, add_lease=False):
nodeid = "\x00"*20
+ s = StubServer(nodeid)
r = CheckResults(self.my_uri, self.storage_index,
healthy=True, recoverable=True,
needs_rebalancing=False,
count_recoverable_versions=1,
count_unrecoverable_versions=0,
servers_responding=[nodeid],
- sharemap={"seq1-abcd-sh0": [nodeid]},
+ sharemap={"seq1-abcd-sh0": [s]},
count_wrong_shares=0,
list_corrupt_shares=[],
count_corrupt_shares=0,