]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
web/storage.py: display total-seen on the last-complete-cycle line. For #940.
authorBrian Warner <warner@lothar.com>
Mon, 8 Feb 2010 00:20:10 +0000 (16:20 -0800)
committerBrian Warner <warner@lothar.com>
Mon, 8 Feb 2010 00:20:10 +0000 (16:20 -0800)
src/allmydata/test/test_storage.py
src/allmydata/web/storage.py

index a1a9f7ab62af4a2a8ea2c0fad9b4f685ab0e0ecd..8807e217c8d7089689be907cddd1108088056c55 100644 (file)
@@ -1742,8 +1742,10 @@ class LeaseCrawler(unittest.TestCase, pollmixin.PollMixin, WebRenderingMixin):
         def _check_html(html):
             s = remove_tags(html)
             self.failUnlessIn("recovered: 0 shares, 0 buckets "
-                              "(0 mutable / 0 immutable), 0 B (0 B / 0 B) "
-                              "but expiration was not enabled", s)
+                              "(0 mutable / 0 immutable), 0 B (0 B / 0 B) ", s)
+            self.failUnlessIn("and saw a total of 4 shares, 4 buckets "
+                              "(2 mutable / 2 immutable),", s)
+            self.failUnlessIn("but expiration was not enabled", s)
         d.addCallback(_check_html)
         d.addCallback(lambda ign: self.render_json(webstatus))
         def _check_json(json):
index 1943d00f28c5f6a75f6f33747e9a3a8746f63a71..f224c2897a1cb0117d5a77d82ad07f9e7fcb92dc 100644 (file)
@@ -245,6 +245,9 @@ class StorageStatus(rend.Page):
         def add(*pieces):
             p[T.li[pieces]]
 
+        saw = self.format_recovered(last["space-recovered"], "examined")
+        add("and saw a total of ", saw)
+
         if not last["expiration-enabled"]:
             rec = self.format_recovered(last["space-recovered"], "configured")
             add("but expiration was not enabled. If it had been, "