Ticket #771: tests.txt

File tests.txt, 3.4 KB (added by kevan, at 2009-08-12T01:56:13Z)
Line 
1Fri Aug  7 18:26:19 PDT 2009  Kevan Carstensen <kevan@isnotajoke.com>
2  * Test behavior of `tahoe_ls.py' on files
3
4Tue Aug 11 18:11:02 PDT 2009  Kevan Carstensen <kevan@isnotajoke.com>
5  * Add tests for GET behavior on dircaps
6
7New patches:
8
9[Test behavior of `tahoe_ls.py' on files
10Kevan Carstensen <kevan@isnotajoke.com>**20090808012619
11 Ignore-this: 712ab07fa37f89bacb2d8e9196a3bfe0
12] hunk ./src/allmydata/test/test_cli.py 790
13         d.addCallback(_check3)
14         d.addCallback(lambda ign: self.do_cli("ls", "0share"))
15         d.addCallback(_check3)
16+        def _check4((rc, out, err)):
17+            self.failUnlessEqual(rc, 0)
18+            self.failUnlessIn("good", out)
19+        d.addCallback(lambda ign: self.do_cli("ls", "good"))
20+        d.addCallback(_check4)
21         return d
22 
23 class Mv(GridTestMixin, CLITestMixin, unittest.TestCase):
24[Add tests for GET behavior on dircaps
25Kevan Carstensen <kevan@isnotajoke.com>**20090812011102
26 Ignore-this: 744381eb485923f6fbc3211bcbfa4fe2
27] {
28hunk ./src/allmydata/test/test_web.py 202
29     def failUnlessIsBarDotTxt(self, res):
30         self.failUnlessEqual(res, self.BAR_CONTENTS, res)
31 
32+    def failUnlessHasBarDotTxtMetadata(self, res):
33+        data = simplejson.loads(res)
34+        self.failUnless(isinstance(data, list))
35+        self.failUnless(data[1].has_key("metadata"))
36+        self.failUnless(data[1]["metadata"].has_key("ctime"))
37+        self.failUnless(data[1]["metadata"].has_key("mtime"))
38+        self.failUnlessEqual(data[1]["metadata"]["ctime"],
39+                             self._bar_txt_metadata["ctime"])
40+
41     def failUnlessIsBarJSON(self, res):
42         data = simplejson.loads(res)
43         self.failUnless(isinstance(data, list))
44hunk ./src/allmydata/test/test_web.py 862
45         # instead. This may make it tricky to emulate the S3 interface
46         # completely.
47         d = self.GET(self.public_url + "/foo/bar.txt?t=json")
48-        d.addCallback(self.failUnlessIsBarJSON)
49+        def _check1(data):
50+            self.failUnlessIsBarJSON(data)
51+            self.failUnlessHasBarDotTxtMetadata(data)
52+            return
53+        d.addCallback(_check1)
54         return d
55 
56     def test_GET_FILEURL_json_missing(self):
57hunk ./src/allmydata/test/test_web.py 979
58         d.addCallback(self.failUnlessIsFooJSON)
59         return d
60 
61-
62     def test_POST_DIRURL_manifest_no_ophandle(self):
63         d = self.shouldFail2(error.Error,
64                              "test_POST_DIRURL_manifest_no_ophandle",
65}
66
67Context:
68
69[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
70zooko@zooko.com**20090804123840
71 Ignore-this: 49da654f19d377ffc5a1eff0c820e026
72 http://allmydata.org/pipermail/tahoe-dev/2009-August/002507.html
73]
74[docs: relnotes.txt: reflow to 63 chars wide because google groups and some web forms seem to wrap to that
75zooko@zooko.com**20090802135016
76 Ignore-this: 53b1493a0491bc30fb2935fad283caeb
77]
78[docs: about.html: fix English usage noticed by Amber
79zooko@zooko.com**20090802050533
80 Ignore-this: 89965c4650f9bd100a615c401181a956
81]
82[docs: fix mis-spelled word in about.html
83zooko@zooko.com**20090802050320
84 Ignore-this: fdfd0397bc7cef9edfde425dddeb67e5
85]
86[TAG allmydata-tahoe-1.5.0
87zooko@zooko.com**20090802031303
88 Ignore-this: 94e5558e7225c39a86aae666ea00f166
89]
90Patch bundle hash:
9132f5508ec1951d45686a83135f6af0df36e31cf7