test_web.test_POST_DIRURL_deepcheck: confirm that /operations/HANDLE/ works with...
authorBrian Warner <warner@lothar.com>
Fri, 24 Oct 2008 02:17:59 +0000 (19:17 -0700)
committerBrian Warner <warner@lothar.com>
Fri, 24 Oct 2008 02:17:59 +0000 (19:17 -0700)
src/allmydata/test/test_web.py

index c99d2af0a2b439a4e487bfb3f8c6bff0f4615fe4..ed5bc8a3cbfe7c67053f72d54d5c0c4c0ee82c16 100644 (file)
@@ -1640,10 +1640,16 @@ class Web(WebMixin, testutil.StallMixin, unittest.TestCase):
             self.failUnless("Objects Checked: <span>8</span>" in res)
             self.failUnless("Objects Healthy: <span>8</span>" in res)
         d.addCallback(_check_html)
+
+        d.addCallback(lambda res:
+                      self.GET("/operations/123/"))
+        d.addCallback(_check_html) # should be the same as without the slash
+
         d.addCallback(lambda res:
                       self.shouldFail2(error.Error, "one", "404 Not Found",
                                        "No detailed results for SI bogus",
                                        self.GET, "/operations/123/bogus"))
+
         foo_si = self._foo_node.get_storage_index()
         foo_si_s = base32.b2a(foo_si)
         d.addCallback(lambda res: