From: Brian Warner Date: Fri, 24 Oct 2008 02:17:59 +0000 (-0700) Subject: test_web.test_POST_DIRURL_deepcheck: confirm that /operations/HANDLE/ works with... X-Git-Url: https://git.rkrishnan.org/pf/content/en/service/module-simplejson.tests.html?a=commitdiff_plain;h=0383ec5a496df6af9ca57f0c98063ca9c4e5269b;p=tahoe-lafs%2Ftahoe-lafs.git test_web.test_POST_DIRURL_deepcheck: confirm that /operations/HANDLE/ works with or without the slash --- diff --git a/src/allmydata/test/test_web.py b/src/allmydata/test/test_web.py index c99d2af0..ed5bc8a3 100644 --- a/src/allmydata/test/test_web.py +++ b/src/allmydata/test/test_web.py @@ -1640,10 +1640,16 @@ class Web(WebMixin, testutil.StallMixin, unittest.TestCase): self.failUnless("Objects Checked: 8" in res) self.failUnless("Objects Healthy: 8" 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: