s = remove_tags(html)
self.failUnlessIn("Accepting new shares: Yes", s)
self.failUnlessIn("Reserved space: - 0 B (0)", s)
- self.failUnlessIn("Total buckets: Not computed yet", s)
+ self.failUnlessIn("Total sharesets: Not computed yet", s)
self.failUnlessIn("Next crawl in", s)
def _after_first_prefix(prefix):
def _after_yield(ign):
html = w.renderSynchronously()
s = remove_tags(html)
- self.failUnlessIn("Total buckets: 0 (the number of", s)
+ self.failUnlessIn("Total sharesets: 0 (the number of", s)
self.failUnless("Next crawl in 59 minutes" in s or "Next crawl in 60 minutes" in s, s)
d.addCallback(_after_yield)
return d
def _check_html_in_cycle(html):
s = remove_tags(html)
self.failUnlessIn("So far, this cycle has examined "
- "1 shares in 1 buckets (0 mutable / 1 immutable) ", s)
+ "1 shares in 1 sharesets (0 mutable / 1 immutable) ", s)
self.failUnlessIn("and has recovered: "
- "0 shares, 0 buckets (0 mutable / 0 immutable), "
+ "0 shares, 0 sharesets (0 mutable / 0 immutable), "
"0 B (0 B / 0 B)", s)
return ac.set_hook('after_cycle')
d.addCallback(lambda ign: self.render1(webstatus))
def _check_html_after_cycle(html):
s = remove_tags(html)
- self.failUnlessIn("recovered: 0 shares, 0 buckets "
+ self.failUnlessIn("recovered: 0 shares, 0 sharesets "
"(0 mutable / 0 immutable), 0 B (0 B / 0 B) ", s)
- self.failUnlessIn("and saw a total of 4 shares, 4 buckets "
+ self.failUnlessIn("and saw a total of 4 shares, 4 sharesets "
"(2 mutable / 2 immutable),", s)
self.failUnlessIn("but expiration was not enabled", s)
d.addCallback(_check_html_after_cycle)
# all. This part of the test depends upon the SIs landing right
# where they do now.
self.failUnlessIn("The remainder of this cycle is expected to "
- "recover: 4 shares, 4 buckets", s)
+ "recover: 4 shares, 4 sharesets", s)
self.failUnlessIn("The whole cycle is expected to examine "
- "5 shares in 5 buckets and to recover: "
- "5 shares, 5 buckets", s)
+ "5 shares in 5 sharesets and to recover: "
+ "5 shares, 5 sharesets", s)
return ac.set_hook('after_cycle')
d.addCallback(_check_html_in_cycle)
s = remove_tags(html)
self.failUnlessIn("Expiration Enabled: expired leases will be removed", s)
self.failUnlessIn("Leases created or last renewed more than 33 minutes ago will be considered expired.", s)
- self.failUnlessIn(" recovered: 2 shares, 2 buckets (1 mutable / 1 immutable), ", s)
+ self.failUnlessIn(" recovered: 2 shares, 2 sharesets (1 mutable / 1 immutable), ", s)
d.addCallback(_check_html_after_cycle)
d.addBoth(self._wait_for_yield, ac)
return d
# all. This part of the test depends upon the SIs landing right
# where they do now.
self.failUnlessIn("The remainder of this cycle is expected to "
- "recover: 4 shares, 4 buckets", s)
+ "recover: 4 shares, 4 sharesets", s)
self.failUnlessIn("The whole cycle is expected to examine "
- "5 shares in 5 buckets and to recover: "
- "5 shares, 5 buckets", s)
+ "5 shares in 5 sharesets and to recover: "
+ "5 shares, 5 sharesets", s)
return ac.set_hook('after_cycle')
d.addCallback(_check_html_in_cycle)
date = time.strftime("%Y-%m-%d (%d-%b-%Y) UTC", time.gmtime(then))
substr = "Leases created or last renewed before %s will be considered expired." % date
self.failUnlessIn(substr, s)
- self.failUnlessIn(" recovered: 2 shares, 2 buckets (1 mutable / 1 immutable), ", s)
+ self.failUnlessIn(" recovered: 2 shares, 2 sharesets (1 mutable / 1 immutable), ", s)
d.addCallback(_check_html_after_cycle)
d.addBoth(self._wait_for_yield, ac)
return d
if d is None:
return "?"
return "%d" % d
- return "%s shares, %s buckets (%s mutable / %s immutable), %s (%s / %s)" % \
+ return "%s shares, %s sharesets (%s mutable / %s immutable), %s (%s / %s)" % \
(maybe(sr["%s-shares" % a]),
maybe(sr["%s-buckets" % a]),
maybe(sr["%s-buckets-mutable" % a]),
if d is None:
return "?"
return "%d" % d
- add("So far, this cycle has examined %d shares in %d buckets"
+ add("So far, this cycle has examined %d shares in %d sharesets"
% (sr["examined-shares"], sr["examined-buckets"]),
" (%d mutable / %d immutable)"
% (sr["examined-buckets-mutable"], sr["examined-buckets-immutable"]),
if so_far["expiration-enabled"]:
add("The remainder of this cycle is expected to recover: ",
self.format_recovered(esr, "actual"))
- add("The whole cycle is expected to examine %s shares in %s buckets"
+ add("The whole cycle is expected to examine %s shares in %s sharesets"
% (maybe(ecr["examined-shares"]), maybe(ecr["examined-buckets"])))
add("and to recover: ", self.format_recovered(ecr, "actual"))
else: