Fri Aug 7 18:26:19 PDT 2009 Kevan Carstensen * Test behavior of `tahoe_ls.py' on files Tue Aug 11 18:11:02 PDT 2009 Kevan Carstensen * Add tests for GET behavior on dircaps New patches: [Test behavior of `tahoe_ls.py' on files Kevan Carstensen **20090808012619 Ignore-this: 712ab07fa37f89bacb2d8e9196a3bfe0 ] hunk ./src/allmydata/test/test_cli.py 790 d.addCallback(_check3) d.addCallback(lambda ign: self.do_cli("ls", "0share")) d.addCallback(_check3) + def _check4((rc, out, err)): + self.failUnlessEqual(rc, 0) + self.failUnlessIn("good", out) + d.addCallback(lambda ign: self.do_cli("ls", "good")) + d.addCallback(_check4) return d class Mv(GridTestMixin, CLITestMixin, unittest.TestCase): [Add tests for GET behavior on dircaps Kevan Carstensen **20090812011102 Ignore-this: 744381eb485923f6fbc3211bcbfa4fe2 ] { hunk ./src/allmydata/test/test_web.py 202 def failUnlessIsBarDotTxt(self, res): self.failUnlessEqual(res, self.BAR_CONTENTS, res) + def failUnlessHasBarDotTxtMetadata(self, res): + data = simplejson.loads(res) + self.failUnless(isinstance(data, list)) + self.failUnless(data[1].has_key("metadata")) + self.failUnless(data[1]["metadata"].has_key("ctime")) + self.failUnless(data[1]["metadata"].has_key("mtime")) + self.failUnlessEqual(data[1]["metadata"]["ctime"], + self._bar_txt_metadata["ctime"]) + def failUnlessIsBarJSON(self, res): data = simplejson.loads(res) self.failUnless(isinstance(data, list)) hunk ./src/allmydata/test/test_web.py 862 # instead. This may make it tricky to emulate the S3 interface # completely. d = self.GET(self.public_url + "/foo/bar.txt?t=json") - d.addCallback(self.failUnlessIsBarJSON) + def _check1(data): + self.failUnlessIsBarJSON(data) + self.failUnlessHasBarDotTxtMetadata(data) + return + d.addCallback(_check1) return d def test_GET_FILEURL_json_missing(self): hunk ./src/allmydata/test/test_web.py 979 d.addCallback(self.failUnlessIsFooJSON) return d - def test_POST_DIRURL_manifest_no_ophandle(self): d = self.shouldFail2(error.Error, "test_POST_DIRURL_manifest_no_ophandle", } Context: [docs: install.html: instruct Debian users to use this document and not to go find the DownloadDebianPackages page, ignore the warning at the top of it, and try it zooko@zooko.com**20090804123840 Ignore-this: 49da654f19d377ffc5a1eff0c820e026 http://allmydata.org/pipermail/tahoe-dev/2009-August/002507.html ] [docs: relnotes.txt: reflow to 63 chars wide because google groups and some web forms seem to wrap to that zooko@zooko.com**20090802135016 Ignore-this: 53b1493a0491bc30fb2935fad283caeb ] [docs: about.html: fix English usage noticed by Amber zooko@zooko.com**20090802050533 Ignore-this: 89965c4650f9bd100a615c401181a956 ] [docs: fix mis-spelled word in about.html zooko@zooko.com**20090802050320 Ignore-this: fdfd0397bc7cef9edfde425dddeb67e5 ] [TAG allmydata-tahoe-1.5.0 zooko@zooko.com**20090802031303 Ignore-this: 94e5558e7225c39a86aae666ea00f166 ] Patch bundle hash: 32f5508ec1951d45686a83135f6af0df36e31cf7