From 0383ec5a496df6af9ca57f0c98063ca9c4e5269b Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Thu, 23 Oct 2008 19:17:59 -0700 Subject: [PATCH] test_web.test_POST_DIRURL_deepcheck: confirm that /operations/HANDLE/ works with or without the slash --- src/allmydata/test/test_web.py | 6 ++++++ 1 file changed, 6 insertions(+) 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: -- 2.45.2