Brian Warner
|
7cfc74bcc9
|
test_system.py: don't ask the stats-gatherer to poll: it tolerates failures, so it isn't really giving us enough test coverage. Removing the call will make it more clear that we need to improve the tests later
|
2008-12-04 15:00:53 -07:00 |
|
Peter Secor
|
a8e515a8bb
|
confwiz.py - removing hardcoded version number
|
2008-12-02 20:38:31 -07:00 |
|
Brian Warner
|
a2ce315074
|
CLI: check for pre-existing aliases in 'tahoe create-alias' and 'tahoe add-alias'
|
2008-12-02 20:20:22 -07:00 |
|
Brian Warner
|
cdbb72d5ff
|
test_cli: pass rc out of do_cli() too
|
2008-12-02 20:08:28 -07:00 |
|
Brian Warner
|
6958b7fa90
|
test_storage.py: more windows-vs-readonly-storage fixes
|
2008-12-02 19:41:02 -07:00 |
|
Brian Warner
|
fe9c3e9529
|
storage.py: oops, fix windows again, readonly_storage wasn't getting picked up properly
|
2008-12-02 19:03:17 -07:00 |
|
Brian Warner
|
d3783475b4
|
test_download.py: remove extra base32 import
|
2008-12-02 18:31:26 -07:00 |
|
Brian Warner
|
b997e6ca7c
|
test_download: test both mutable and immutable pre-generated shares
|
2008-12-02 18:30:07 -07:00 |
|
Brian Warner
|
2d70f7fc0b
|
test_download.py: added 'known-answer-tests', to make sure current code can download a file that was created by earlier code
|
2008-12-02 18:22:08 -07:00 |
|
Brian Warner
|
d295a7afb9
|
storage.py: unbreak readonly_storage=True on windows
|
2008-12-01 19:49:46 -07:00 |
|
Brian Warner
|
71c62f8fcb
|
#542 'tahoe create-key-generator': fix the .tac file this creates to be compatible with modern code, add a test
|
2008-12-01 17:47:21 -07:00 |
|
Brian Warner
|
c5222558f4
|
storage.py: fix minor typo in comment
|
2008-12-01 17:25:40 -07:00 |
|
Brian Warner
|
cfba882b30
|
storage: replace sizelimit with reserved_space, make the stats 'disk_avail' number incorporate this reservation
|
2008-12-01 17:24:21 -07:00 |
|
Brian Warner
|
39a41f1d85
|
util/abbreviate: add abbreviated-size parser
|
2008-12-01 17:24:12 -07:00 |
|
Zooko O'Whielacronx
|
fe6abac87b
|
wui/wapi: change the default port number from 8123 to 3456 to avoid conflict with TorButton
See ticket #536 for details.
|
2008-11-25 17:57:37 -07:00 |
|
Brian Warner
|
7ea0a1316a
|
mutable publish: reinstate the foolscap-reference-token-bug workaround, both for the original reasons and because of an apparent new foolscap bug that's triggered by reference tokens. See #541 for details.
|
2008-11-25 14:27:35 -07:00 |
|
Zooko O'Whielacronx
|
51c7580fc8
|
setup: fix missing import -- thanks, pyflakes
|
2008-11-25 09:55:28 -07:00 |
|
Zooko O'Whielacronx
|
de9edde8f5
|
setup: correctly detect Arch Linux in platform description
|
2008-11-25 09:51:18 -07:00 |
|
Brian Warner
|
bc53c24003
|
dirnode manifest: add verifycaps, both to internal API and to webapi. This will give the manual-GC tools more to work with, so they can estimate how much space will be freed.
|
2008-11-24 14:40:46 -07:00 |
|
Brian Warner
|
2308440fb6
|
control.py: use get_buckets() instead of get_version() to measure ping time, because the latter changed recently
|
2008-11-22 23:13:23 -07:00 |
|
Brian Warner
|
3e25efc010
|
upload: when using a Helper, insist that it provide protocols/helper/v1 . Related to #538.
|
2008-11-21 20:29:32 -07:00 |
|
Brian Warner
|
0fab511be5
|
upload: don't use servers which can't support the share size we need. This ought to avoid #439 problems. Some day we'll have a storage server which advertises support for a larger share size. No tests yet.
|
2008-11-21 20:28:12 -07:00 |
|
Brian Warner
|
bf06492a90
|
#538: fetch version and attach to the rref. Make IntroducerClient demand v1 support.
|
2008-11-21 20:07:27 -07:00 |
|
Brian Warner
|
0eb6b324a4
|
#538: add remote_get_version() to four main Referenceable objects: Introducer Service, Storage Server, Helper, CHK Upload Helper. Remove unused storage-server get_versions().
|
2008-11-21 17:43:52 -07:00 |
|
Brian Warner
|
4ada26101b
|
test_dirnode: add an explainError call
|
2008-11-19 16:02:12 -07:00 |
|
Brian Warner
|
b84c2c6541
|
manifest: add storage-index strings to the json results
|
2008-11-19 16:00:27 -07:00 |
|
Brian Warner
|
815e0673e6
|
manifest: include stats in results. webapi is unchanged.
|
2008-11-19 15:03:47 -07:00 |
|
Brian Warner
|
6f6556da22
|
mutable: respect the new tahoe.cfg 'shares.needed' and 'shares.total' settings
|
2008-11-19 14:05:01 -07:00 |
|
Brian Warner
|
82fe7ba360
|
oops, update tests to match 'tahoe stats' change
|
2008-11-18 20:32:59 -07:00 |
|
Brian Warner
|
677928a1da
|
cli: tahoe stats: abbreviate total sizes too
|
2008-11-18 20:28:16 -07:00 |
|
Brian Warner
|
9871f3f1b7
|
cli: 'tahoe stats': add abbreviated size to the histogram. Not sure this actually improves things.
|
2008-11-18 20:17:36 -07:00 |
|
Brian Warner
|
7391f63fc1
|
util/abbreviate: little utility to abbreviate seconds and bytes
|
2008-11-18 20:11:42 -07:00 |
|
Brian Warner
|
0cdf526b50
|
cli: add 'tahoe check' and 'tahoe deep-check' commands, with primitive reporting code
|
2008-11-18 19:12:10 -07:00 |
|
Brian Warner
|
9c866ada71
|
cli: factor out slow-http-operation to a separate module
|
2008-11-18 19:11:13 -07:00 |
|
Brian Warner
|
5c3e153d0e
|
cli: tahoe stats/manifest: change --verbose to --raw, since I want -v for --verify for check/deep-check/repair
|
2008-11-18 18:36:08 -07:00 |
|
Brian Warner
|
d657d22c0c
|
test_system: make 'where' strings more helpful, to track down test failures better
|
2008-11-18 18:29:50 -07:00 |
|
Brian Warner
|
7932fadb5e
|
webapi: add 'summary' string to checker results JSON
|
2008-11-18 18:28:26 -07:00 |
|
Brian Warner
|
994d97c644
|
webapi: introducer stats: add 'announcement_distinct_hosts' to the t=json form, to show how many distinct hosts are providing e.g. storage services
|
2008-11-18 15:30:15 -07:00 |
|
Brian Warner
|
918970b63a
|
'tahoe create-key-generator': fix help text
|
2008-11-18 01:47:58 -07:00 |
|
Brian Warner
|
8473a96ada
|
#330: convert stats-gatherer into a .tac file service, add 'tahoe create-stats-gatherer'
|
2008-11-18 01:46:20 -07:00 |
|
Brian Warner
|
cae54ab118
|
tahoe.cfg: add controls for k and N (and shares-of-happiness)
|
2008-11-18 00:29:44 -07:00 |
|
Brian Warner
|
ead0e4d6ca
|
cli: add tests for 'tahoe stats --verbose'
|
2008-11-17 22:11:14 -07:00 |
|
Brian Warner
|
94de73ddc0
|
cli: add --verbose to 'tahoe manifest', to show the raw JSON data
|
2008-11-17 22:02:19 -07:00 |
|
Brian Warner
|
d6a67cd566
|
dirnode manifest/stats: process more than one LIT file per tree; we were accidentally ignoring all but the first
|
2008-11-14 22:50:49 -07:00 |
|
Brian Warner
|
fc7cd23bd1
|
limiter.py: fix stack blowout by inserting an eventual-send between _done and maybe_start_task. This was causing failures during a 'tahoe manifest' of a large set of directories
|
2008-11-14 21:11:44 -07:00 |
|
francois
|
1a3a464534
|
test_cli.py: Ensure that we can read our uploaded files back
|
2008-11-14 07:44:58 -07:00 |
|
francois
|
32b5bc6330
|
test_cli.py: use str objects instead of unicode ones
This will hopefully fix failing tests with LC_ALL=C
|
2008-11-14 07:41:37 -07:00 |
|
Brian Warner
|
5a60086dbc
|
CLI: add 'tahoe stats', to run start-deep-stats and print the results
|
2008-11-13 19:43:50 -07:00 |
|
Brian Warner
|
9c9994300e
|
test_system.py: fix new 'tahoe manifest' tests to not break on windows, by providing --node-directory instead of --node-url
|
2008-11-13 15:27:48 -07:00 |
|
francois
|
5c0c5bfc81
|
test for bug #534, unicode filenames
This test assure that uploading a file whose name contains unicode character
doesn't prevent further uploads in the same directory.
|
2008-11-13 05:19:51 -07:00 |
|
francois
|
c1f639d230
|
Fix an filename encoding issue with "tahoe cp"
|
2008-11-11 14:08:03 -07:00 |
|
Brian Warner
|
0d5cc38a35
|
web/info.py: use 128-bit ophandles instead of 64-bit
|
2008-11-12 20:18:42 -07:00 |
|
Brian Warner
|
0d93d6244e
|
CLI: add 'tahoe manifest', which takes a directory and returns a list of things you can reach from it
|
2008-11-12 20:17:25 -07:00 |
|
Brian Warner
|
c9175de0f2
|
create_node.py: also remove now-unused import of pkg_resources
|
2008-11-12 18:47:16 -07:00 |
|
Brian Warner
|
9976bd439a
|
tahoe.cfg: add tub.location, to override the location hints we include in our FURL. This replaces advertised_ip_addresses, which doesn't remain useful enough to retain it. Helps with #517 (Tor).
|
2008-11-12 18:44:58 -07:00 |
|
Zooko O'Whielacronx
|
74ce1cdc00
|
setup: remove pkg_resources.require() from create_node.py and add it to runner.py
Brian correctly points out that the latter is an entry point.
|
2008-11-12 15:25:03 -07:00 |
|
Zooko O'Whielacronx
|
14444dbcc0
|
tests: fix comment
|
1970-01-05 04:10:55 -07:00 |
|
Zooko O'Whielacronx
|
3a0dc8e4ec
|
tests: add tahoe_cp to the list of scripts that we don't actually have tests for yet
|
1970-01-05 04:00:58 -07:00 |
|
Zooko O'Whielacronx
|
1aed9fcfa1
|
setup: the .tac files created by create_node.py call pkg_resources.require() so that they can load tahoe and twisted packages which were installed with setuptools multi-version mode
Also the create_node.py script itself uses pkg_resources.require() for the same reason.
|
1970-01-01 17:50:05 -07:00 |
|
Brian Warner
|
68f366b584
|
web/info: don't let an unrecoverable file break the page (show ? instead of a size)
|
2008-11-06 22:51:17 -07:00 |
|
Brian Warner
|
dfa2408157
|
checker: add is_recoverable() to checker results, make our stub immutable-verifier not throw an exception on unrecoverable files, add tests
|
2008-11-06 22:35:47 -07:00 |
|
Brian Warner
|
b7f7b2f43e
|
monitor: update interface definition: get_status() can return a Failure
|
2008-11-06 21:54:52 -07:00 |
|
Brian Warner
|
d7f1f9fd63
|
web/operations.py: if the operation failed, render the Failure
|
2008-11-06 21:53:09 -07:00 |
|
Peter Secor
|
ccd029bf15
|
undoing test change for native_client.php
|
2008-11-06 16:03:10 -07:00 |
|
Brian Warner
|
926f3958a2
|
client.py: oops, update FTP/SFTP config names to match current docs
|
2008-11-05 19:34:42 -07:00 |
|
Brian Warner
|
7c4856c222
|
SFTP/FTP: merge user/account code, merge docs
|
2008-11-05 19:25:58 -07:00 |
|
Brian Warner
|
c489a05235
|
ftp/sftp: move to a new frontends/ directory in preparation for factoring out password-auth component
|
2008-11-05 14:07:33 -07:00 |
|
Brian Warner
|
4e68faebb4
|
sftpd: minor debug-logging tweak
|
2008-11-05 13:45:11 -07:00 |
|
Peter Secor
|
510cb6d8e6
|
confwiz.py - trying out a new configuration site
|
2008-11-04 19:18:30 -07:00 |
|
Brian Warner
|
3fc69308eb
|
ftpd: include an (unused) avatar logout callback
|
2008-11-04 18:01:04 -07:00 |
|
Brian Warner
|
9f908de9e2
|
#531: implement an SFTP frontend. Mostly works, still lots of debug messages. Still needs tests and auth-by-pubkey in accounts.file
|
2008-11-04 18:00:22 -07:00 |
|
Zooko O'Whielacronx
|
eae5403e5a
|
shebang: replace "/usr/bin/python" with "/usr/bin/env python"
|
2008-11-04 18:03:06 -07:00 |
|
Zooko O'Whielacronx
|
9c35ca76a4
|
util: copy in pyutil.fileutil.ReopenableNamedTemporaryFile
|
2008-11-04 17:47:15 -07:00 |
|
Brian Warner
|
6fa41e738b
|
immutable: tolerate filenode.read() with a size= that's too big, rather than hanging
|
2008-11-04 15:29:19 -07:00 |
|
Zooko O'Whielacronx
|
cef24792e7
|
util: copy in nummedobj from pyutil
|
2008-11-04 13:55:50 -07:00 |
|
Zooko O'Whielacronx
|
fb85a6280f
|
util: copy in dictutil from pyutil
|
2008-11-04 13:53:27 -07:00 |
|
Brian Warner
|
a2e195df3e
|
debug catalog-shares: tolerate even more errors on bad files/directories
|
2008-10-30 14:54:47 -07:00 |
|
Brian Warner
|
ba019bfd3a
|
#527: expire the cached files that are used to support Range: headers, every hour, when the file is unused and older than an hour
|
2008-10-30 13:39:09 -07:00 |
|
Brian Warner
|
c205a54965
|
util/cachedir.py: add a cache-directory manager class, which expires+deletes unused files after a while
|
2008-10-30 13:01:20 -07:00 |
|
Brian Warner
|
1419db6ac7
|
test_cli: try to fix windows again
|
2008-10-30 12:32:04 -07:00 |
|
Brian Warner
|
d97c34d622
|
debug/test_cli: fix error handling for catalog-shares, to make the test stop failing on windows
|
2008-10-30 12:06:51 -07:00 |
|
Brian Warner
|
b1db6d9ff2
|
web: add 'Repair' button to checker results when they indicate unhealthyness. Also add the object's uri to the CheckerResults instance.
|
2008-10-29 18:09:17 -07:00 |
|
Brian Warner
|
6a7d5b893b
|
create_node.py: add 'web.static = public_html' to the initial tahoe.cfg
|
2008-10-29 17:13:36 -07:00 |
|
Brian Warner
|
d3f2df00be
|
webapi: serve the /static URL tree from /public_html (configurable)
|
2008-10-29 15:34:31 -07:00 |
|
Brian Warner
|
a9101112a4
|
catalog-shares command: tolerate errors, log them to stderr, handle v2-immutable shares
|
2008-10-29 15:10:10 -07:00 |
|
Brian Warner
|
186b64b633
|
test_web.py: one more line of test coverage
|
2008-10-28 22:00:15 -07:00 |
|
Brian Warner
|
0350994133
|
test_web: improve test coverage of PUT DIRURL t=uri replace=false
|
2008-10-28 21:57:44 -07:00 |
|
Brian Warner
|
a5aebf0cbd
|
web: test (and fix) PUT DIRURL t=uri, which replaces a directory in-place with some other cap
|
2008-10-28 21:54:46 -07:00 |
|
Brian Warner
|
e1d9169ba3
|
web/directory.py: slight shuffle to improve test coverage
|
2008-10-28 21:54:06 -07:00 |
|
Brian Warner
|
248033d78c
|
test_client.py: improve test coverage a bit
|
2008-10-28 21:43:35 -07:00 |
|
Brian Warner
|
67ae5c1b2f
|
node.py: remove unused old_log() function
|
2008-10-28 21:35:58 -07:00 |
|
Brian Warner
|
ba26239879
|
node.py: remove support for the old BASEDIR/authorized_keys.PORT file
|
2008-10-28 21:34:20 -07:00 |
|
Brian Warner
|
b73c380cdb
|
move testutil into test/common_util.py, since it doesn't count as 'code under test' for our pyflakes numbers
|
2008-10-28 21:28:31 -07:00 |
|
Brian Warner
|
294e3fb682
|
util: move PollMixin to a separate file (pollmixin.py), so testutil can be moved into test/
|
2008-10-28 21:15:48 -07:00 |
|
Brian Warner
|
3dd9b79e3f
|
control.py: removed unused testutil.PollMixin
|
2008-10-28 21:03:59 -07:00 |
|
Brian Warner
|
4c2235fcef
|
web/filenode: oops, fix test failures, not everything has a storage index
|
2008-10-28 18:17:20 -07:00 |
|
Brian Warner
|
6e1db34817
|
web/filenode: add Accept-Ranges and ETag (for immutable files) headers to GET responses
|
2008-10-28 18:01:03 -07:00 |
|
Brian Warner
|
b1ca238176
|
#527: respond to GETs with early ranges quickly, without waiting for the whole file to download. Fixes the alacrity problems with the earlier code. Still needs cache expiration.
|
2008-10-28 17:56:18 -07:00 |
|
Brian Warner
|
37e3d8e47c
|
#527: support HTTP 'Range:' requests, using a cachefile. Adds filenode.read(consumer, offset, size) method. Still needs: cache expiration, reduced alacrity.
|
2008-10-28 13:41:04 -07:00 |
|
Brian Warner
|
2d4e895096
|
iputil.py: avoid a DNS lookup at startup (which may timeout tests when run on a partially-offline host) by using 198.41.0.4 instead of A.ROOT-SERVERS.NET
|
2008-10-28 13:36:46 -07:00 |
|