Ticket #1305: test-1305.darcs.2.patch

File test-1305.darcs.2.patch, 13.7 KB (added by davidsarah, at 2011-01-14T04:36:23Z)

CLI: tests for ref #1305 (v2, remove spurious extra arg to create-alias in test)

Line 
11 patch for repository davidsarah@dev.allmydata.org:/home/darcs/tahoe/trunk:
2
3Fri Jan 14 04:03:27 GMT Standard Time 2011  david-sarah@jacaranda.org
4  * CLI: tests for ref #1305 (v2, remove spurious extra arg to create-alias in test)
5
6New patches:
7
8[CLI: tests for ref #1305 (v2, remove spurious extra arg to create-alias in test)
9david-sarah@jacaranda.org**20110114040327
10 Ignore-this: 770b7117e66b04ced293b7b740b4a27f
11] {
12hunk ./src/allmydata/test/test_cli.py 500
13 
14     def test_create_alias(self):
15         help = str(cli.CreateAliasOptions())
16-        self.failUnless("create-alias ALIAS" in help, help)
17+        self.failUnless("create-alias ALIAS[:]" in help, help)
18 
19     def test_add_aliases(self):
20         help = str(cli.AddAliasOptions())
21hunk ./src/allmydata/test/test_cli.py 504
22-        self.failUnless("add-alias ALIAS DIRCAP" in help, help)
23+        self.failUnless("add-alias ALIAS[:] DIRCAP" in help, help)
24 
25 
26 class CreateAlias(GridTestMixin, CLITestMixin, unittest.TestCase):
27hunk ./src/allmydata/test/test_cli.py 532
28             self.failUnless("tahoe" in aliases)
29             self.failUnless(aliases["tahoe"].startswith("URI:DIR2:"))
30         d.addCallback(_done)
31-        d.addCallback(lambda res: self.do_cli("create-alias", "two"))
32+        d.addCallback(lambda res: self.do_cli("create-alias", "two:"))
33 
34         def _stash_urls(res):
35             aliases = get_aliases(self.get_clientdir())
36hunk ./src/allmydata/test/test_cli.py 569
37             self.failUnlessReallyEqual(aliases["two"], self.two_uri)
38         d.addCallback(_check_add_duplicate)
39 
40+        # check create-alias and add-alias with invalid aliases
41+        def _check_invalid((rc,stdout,stderr)):
42+            self.failIfEqual(rc, 0)
43+            self.failUnlessIn("cannot contain", stderr)
44+
45+        for invalid in ['foo:bar', 'foo bar', 'foobar::']:
46+            d.addCallback(lambda res: self.do_cli("create-alias", invalid))
47+            d.addCallback(_check_invalid)
48+            d.addCallback(lambda res: self.do_cli("add-alias", invalid, self.two_uri))
49+            d.addCallback(_check_invalid)
50+
51         def _test_urls(junk):
52             self._test_webopen([], self.welcome_url)
53             self._test_webopen(["/"], self.tahoe_url)
54}
55
56Context:
57
58[bin/tahoe-script.template: improve the error message if we end up running under Python 3. refs #1302
59david-sarah@jacaranda.org**20110112211628
60 Ignore-this: ee78f8e4bbd197e620cb0cc6b995ac46
61]
62[Makefile: Fix uploading of tarballs on trunk builds.
63david-sarah@jacaranda.org**20110109065851
64 Ignore-this: 864b06e39103f46dbb6ccb74e1e333d3
65]
66[docs/frontends/CLI.rst: fix the rst syntax to be as actually intended :-)
67david-sarah@jacaranda.org**20110109014057
68 Ignore-this: c11331670ba89d8601ba3782ffc4f32c
69]
70[docs/frontends/CLI.rst: really fix rst syntax error this time.
71david-sarah@jacaranda.org**20110109013914
72 Ignore-this: 59550154c9ab41488ddfdee8938d7bda
73]
74[docs/frontends/CLI.rst: fix rst syntax error.
75david-sarah@jacaranda.org**20110109010943
76 Ignore-this: 427444f5572115059c75fa1bd8371d51
77]
78[docs/frontends/CLI.rst: discuss commandline/output quoting issues and wildcards. refs #1135
79david-sarah@jacaranda.org**20110109010119
80 Ignore-this: 533938d89be878b404a8540aebdf68ad
81]
82[setup.py: add Python 2.7 trove classifier.
83david-sarah@jacaranda.org**20110108211212
84 Ignore-this: b479c0a1adf9b7a2d1fdc54abc6582e6
85]
86[docs/FTP-and-SFTP.rst: document issue in ref #1297. Remove known issue #1045 which is fixed. Also some cosmetic changes.
87david-sarah@jacaranda.org**20110108061038
88 Ignore-this: 8d9aa2e33f1054545f7bed47bf0e647d
89]
90[misc/build_helpers/show-tool-versions.py: remove attempts to show stdout.encoding and stderr.encoding that always printed None due to redirection. Also remove code to show os.path.supports_unicode_filenames which is not useful. refs #1251
91david-sarah@jacaranda.org**20110103015144
92 Ignore-this: 45e11431f7e2e0cebcb58e1841485cf8
93]
94[NEWS: 'top' for node processes, WUI formatting, removal of GUI apps, documentation updates, foolscap dependency. refs #174, #1219, #1225
95david-sarah@jacaranda.org**20110106005727
96 Ignore-this: f61ac58b4d10e635feb6f7391b1b48fe
97]
98[Makefile: update 'clean' target for files in bin/
99david-sarah@jacaranda.org**20110103052738
100 Ignore-this: 2bdbc4a50e13e508b66d0f65718c79b2
101]
102[docs: update performance.rst to describe the difference between already-uploaded and not-already-uploaded, to parameterize segment size, and to use "~A" to mean "approximately A"
103zooko@zooko.com**20110104065455
104 Ignore-this: 8df0d79a062ee19854c0211bd202f606
105]
106[bin/tahoe-script.template: On non-Windows, invoke support/bin/tahoe directly as a script (rather than via python), so that 'top' for example will show it as 'tahoe'. On Windows, simplify some code that set argv[0], which is never used. fixes #174
107david-sarah@jacaranda.org**20101127232650
108 Ignore-this: 42a86f3eecfdc1ea7b76a7cc68626898
109]
110[test_runner: avoid unnecessary use of non-ASCII.
111david-sarah@jacaranda.org**20110101100101
112 Ignore-this: e2ff40dce6bb3b021306f2913d4e75df
113]
114[docs/quickstart.html: fix redundant, badly nested tag. refs #1284
115david-sarah@jacaranda.org**20110102175159
116 Ignore-this: 2ae9cc0b47d2e87b9eb64a0f517c4eef
117]
118[docs/quickstart.html: information about 'troublesome dependencies' and 'verified systems' de-emphasized by smaller italic font. Re-wrap so that the HTML source is readable (just about) as text. Minor wording tweaks. Improve organization by adding 'Windows Caveats' subsection. fixes #1284
119david-sarah@jacaranda.org**20110102174212
120 Ignore-this: e9dc57983974478200856651c5318fee
121]
122[NEWS: update entry for removal of Mac and Windows apps. refs #1282
123david-sarah@jacaranda.org**20101226042245
124 Ignore-this: c8099bc6e8235718d042c9a13c1e2425
125]
126[Move dependency imports from windows/depends.py (which has gone away) into src/allmydata/windows/tahoesvc.py. Also fix a pyflakes warning, and change the service display name from 'Allmydata Tahoe Node' to 'Tahoe-LAFS node'. refs #1282
127david-sarah@jacaranda.org**20101226042100
128 Ignore-this: ee45f324934e1251380206dbee6346d0
129]
130[Remove unmaintained Windows GUI app, except for windows/tahoesvc.py which is moved to src/allmydata/windows. refs #1282
131david-sarah@jacaranda.org**20101226040237
132 Ignore-this: cae37b6622a7dd5940acc7d3e6a98b90
133]
134[Remove the Makefile targets relating to the Mac GUI app. refs #1282
135david-sarah@jacaranda.org**20101226025859
136 Ignore-this: 75303be783974b41138744ec62b07965
137]
138[NEWS: remove unmaintained Mac GUI app. refs #1282
139david-sarah@jacaranda.org**20101226020858
140 Ignore-this: 40474a07f4a550b48563d35350be7ab5
141]
142[Remove unmaintained Mac GUI app. fixes #1282
143david-sarah@jacaranda.org**20101226020508
144 Ignore-this: b3613bf1abfd284d542bf7c753ec557a
145]
146[Remove src/allmydata/util/find_exe.py which is no longer used. fixes #1150
147david-sarah@jacaranda.org**20101226023206
148 Ignore-this: 7436c9b53bf210aed34a1a973cd9cace
149]
150[status_web_pages_review.darcs.patch
151freestorm77@gmail.com**20110102034214
152 Ignore-this: 29f1ecb36177f10f3f846b3d56b313b2
153 
154 I make some changes on status web pages
155 
156 status.xhtml:
157 - Delete unused webform_css link
158 - Align tables on the left
159 
160 tahoe-css:
161 - Do some minor changes on code synthax
162 - changes table.status-download-events style to look like other tables
163 
164 status.py:
165 - Align table on the left
166 - Changes table header
167 - Add heading tags
168 - Modify google api graph: add image border, calculate height to feet data
169 
170 signed-off-by: zooko@zooko.com
171 fixes #1219
172]
173[test_storage.py: fix a pyflakes unused import warning.
174david-sarah@jacaranda.org**20101231220756
175 Ignore-this: df08231540cb7dff9d2b038e47ab30ee
176]
177[test_storage.py: leave at least 512 MiB free when running test_large_share. refs #1195
178david-sarah@jacaranda.org**20101231203215
179 Ignore-this: b2144c0341c3452b5d4ba219e284ea0e
180]
181[storage: use fileutil's version of get_disk_stats() and get_available_space(), use mockery/fakery in tests, enable large share test on platforms with sparse files and if > 4 GiB of disk space is currently available
182zooko@zooko.com**20100910173629
183 Ignore-this: 1304f1164c661de6d5304f993eb9b27b
184]
185[fileutil: copy in the get_disk_stats() and get_available_space() functions from storage/server.py
186zooko@zooko.com**20100910173520
187 Ignore-this: 8b15569715f710f4fc5092f7ca109253
188]
189[Update foolscap version requirement to 0.6.0, to address http://foolscap.lothar.com/trac/ticket/167
190david-sarah@jacaranda.org**20101231060039
191 Ignore-this: 98d2b8086a1a500b9f4565bca5a3810
192]
193[docs/webapi.rst: typos.
194david-sarah@jacaranda.org**20101230034422
195 Ignore-this: d1f5166d72cc711f7e0d9981eac9105e
196]
197[docs/webapi.rst: capitalization, formatting of section on URL character encoding, and a correction about Internet Explorer.
198david-sarah@jacaranda.org**20101230034049
199 Ignore-this: b3b9819d2fb264b4cdc5c8afd4e8c48d
200]
201[docs: corrections and clarifications.
202david-sarah@jacaranda.org**20101227051056
203 Ignore-this: e33202858c7644c58f3f924b164294b6
204]
205[docs: more formatting cleanups and corrections. Spell webapi and wapi as web-API.
206david-sarah@jacaranda.org**20101227050533
207 Ignore-this: 18b23cbfb780df585d8a722a1ec63e94
208]
209[docs/debian.rst: bring description of building dependencies from source up-to-date, and change hostname from allmydata.com to tahoe-lafs.org.
210david-sarah@jacaranda.org**20101212222912
211 Ignore-this: f38462afc88b4475195610385a28391c
212]
213[docs/architecture.rst: correct rst syntax.
214david-sarah@jacaranda.org**20101212202003
215 Ignore-this: 3fbe12feb28bec6f1c63aedbc79aad21
216]
217[docs/architecture.rst: formatting.
218david-sarah@jacaranda.org**20101212201719
219 Ignore-this: 305fa5dfc2939355eaf6d0d2161eb1ff
220]
221[docs: linkification, wording improvements.
222david-sarah@jacaranda.org**20101212201234
223 Ignore-this: 4e67287f527a8bc728cfbd93255d2aae
224]
225[docs: formatting.
226david-sarah@jacaranda.org**20101212201115
227 Ignore-this: 2e0ed394ac7726651d3a4f2c4b0d3798
228]
229[docs/configuration.rst: more formatting tweaks; which -> that.
230david-sarah@jacaranda.org**20101212195522
231 Ignore-this: a7becb7021854ca5a90edd892b36fdd7
232]
233[docs/configuration.rst: more changes to formatting.
234david-sarah@jacaranda.org**20101212194511
235 Ignore-this: 491aac33e5f5268d224359f1447d10be
236]
237[docs/configuration.rst: changes to formatting (mainly putting commands and filenames in monospace).
238david-sarah@jacaranda.org**20101212181828
239 Ignore-this: 8a1480e2d5f43bee678476424615b50f
240]
241[scripts/backupdb.py: more accurate comment about path field.
242david-sarah@jacaranda.org**20101212170320
243 Ignore-this: 50e47a2228a85207bbcd188a78a0d4e6
244]
245[scripts/cli.py: fix missing 'put' in usage example for 'tahoe put'.
246david-sarah@jacaranda.org**20101212170207
247 Ignore-this: 2cbadf066fff611fc03d3c0ff97ce6ec
248]
249[docs/frontends/CLI.rst: changes to formatting (mainly putting commands and filenames in monospace), and to command syntax to reflect that DIRCAP/... is accepted. Clarify the syntax of 'tahoe put' and other minor corrections. Tahoe -> Tahoe-LAFS.
250david-sarah@jacaranda.org**20101212165800
251 Ignore-this: a123ef6b564aa8624d1e79c97068ea12
252]
253[docs/frontends/CLI.rst: Unicode arguments to 'tahoe' work on Windows as of v1.7.1.
254david-sarah@jacaranda.org**20101212063740
255 Ignore-this: 3977a99dfa86ac33a44171deaf43aaab
256]
257[docs/known_issues.rst: fix title and linkify another URL. refs #1225
258david-sarah@jacaranda.org**20101212062817
259 Ignore-this: cc91287f7fb51c23440b3d2fe79c449c
260]
261[docs/known_issues.rst: fix an external link. refs #1225
262david-sarah@jacaranda.org**20101212062435
263 Ignore-this: b8cbf12f353131756c358965c48060ec
264]
265[Fix a link from uri.rst to dirnodes.rst. refs #1225
266david-sarah@jacaranda.org**20101212054502
267 Ignore-this: af6205299f5c9a33229cab259c00f9d5
268]
269[Fix a link from webapi.rst to FTP-and-SFTP.rst. refs #1225
270david-sarah@jacaranda.org**20101212053435
271 Ignore-this: 2b9f88678c3447ea860d6b61e8799858
272]
273[More specific hyperlink to architecture.rst from helper.rst. refs #1225
274david-sarah@jacaranda.org**20101212052607
275 Ignore-this: 50424c768fca481252fabf58424852dc
276]
277[Update hyperlinks between docs, and linkify some external references. refs #1225
278david-sarah@jacaranda.org**20101212051459
279 Ignore-this: cd43a4c3d3de1f832abfa88d5fc4ace1
280]
281[docs/specifications/dirnodes.rst: fix references to mutable.rst. refs #1225
282david-sarah@jacaranda.org**20101212012720
283 Ignore-this: 6819b4b4e06e947ee48b365e840db37d
284]
285[docs/specifications/mutable.rst: correct the magic string for v1 mutable containers. refs #1225
286david-sarah@jacaranda.org**20101212011400
287 Ignore-this: 99a5fcdd40cef83dbb08f323f6cdaaca
288]
289[Move .txt files in docs/frontends and docs/specifications to .rst. refs #1225
290david-sarah@jacaranda.org**20101212010251
291 Ignore-this: 8796d35d928370f7dc6ad2dafdc1c0fe
292]
293[Convert docs/frontends and docs/specifications to reStructuredText format (not including file moves).
294david-sarah@jacaranda.org**20101212004632
295 Ignore-this: e3ceb2d832d73875abe48624ddbb5622
296]
297[scripts/cli.py: remove the disclaimer in the help for 'tahoe cp' that it does not handle non-ASCII filenames well. (At least, we intend to handle them.)
298david-sarah@jacaranda.org**20101130002145
299 Ignore-this: 94c003efaa20b9eb4a83503d79844ca
300]
301[relnotes.txt: fifth -> sixth labor-of-love release
302zooko@zooko.com**20101129045647
303 Ignore-this: 21c245015268b38916e3a138d256c09d
304]
305[Makefile: BB_BRANCH is set to the empty string for trunk, not the string 'trunk'.
306david-sarah@jacaranda.org**20101128233512
307 Ignore-this: 5a7ef8eb10475636d21b91e25b56c369
308]
309[relnotes.txt: eleventh -> twelfth release.
310david-sarah@jacaranda.org**20101128223321
311 Ignore-this: 1e26410156a665271c1170803dea2c0d
312]
313[relnotes.tst: point to known_issues.rst, not known_issues.txt.
314david-sarah@jacaranda.org**20101128222918
315 Ignore-this: 60194eb4544cac446fe4f60b3e34b887
316]
317[quickstart.html: fix link to point to allmydata-tahoe-1.8.1.zip.
318david-sarah@jacaranda.org**20101128221728
319 Ignore-this: 7b3ee86f8256aa12f5d862f689f3ee29
320]
321[TAG allmydata-tahoe-1.8.1
322david-sarah@jacaranda.org**20101128212336
323 Ignore-this: 9c18bdeaef4822f590d2a0d879e00621
324]
325Patch bundle hash:
326f9ac4e650d736c462e8d3871a3f336f1988e47a5