tahoe-lafs/src/allmydata/test
Brian Warner 00e9e4e676 SegmentFetcher: use new diversity-seeking share-selection algorithm, and
deliver all shares at once instead of feeding them out one-at-a-time.

Also fix distribution of real-number-of-segments information: now all
CommonShares (not just the ones used for the first segment) get a
correctly-sized hashtree. Previously, the late ones might not, which would
make them crash and get dropped (causing the download to fail if the initial
set were insufficient, perhaps because one of their servers went away).

Update tests, add some TODO notes, improve variable names and comments.
Improve logging: add logparents, set more appropriate levels.
2010-08-31 18:37:02 -07:00
..
__init__.py Changes to Tahoe needed to work with new zetuptoolz (that does not use .exe wrappers on Windows), and to support Unicode arguments and stdout/stderr -- v5 2010-07-25 01:32:16 -07:00
bench_dirnode.py benchmarking: update bench_dirnode to be correct and use the shiniest new pyutil.benchutil features concerning what units you measure in 2010-07-18 21:49:48 -07:00
check_grid.py Replace uses of os.path.abspath with abspath_expanduser_unicode where necessary. This makes basedir paths consistently represented as Unicode. 2010-07-21 17:14:18 -07:00
check_load.py change docs and --help to use "grid" instead of "virtual drive": closes #892. 2010-01-14 12:11:19 -08:00
check_memory.py Replace uses of os.path.abspath with abspath_expanduser_unicode where necessary. This makes basedir paths consistently represented as Unicode. 2010-07-21 17:14:18 -07:00
check_speed.py hush pyflakes-0.4.0 warnings: remove trivial unused variables. For #900. 2010-01-14 14:15:29 -08:00
common_util.py Fix for Unicode-related test failures on Zooko's OS X 10.6 machine. 2010-06-08 22:54:48 -07:00
common_web.py tests/no_network: move GET into the GridTestMixin class 2009-02-24 18:33:00 -07:00
common.py immutable: extend the tests to check that the shares that got uploaded really do make a sufficiently Happy distribution 2010-07-18 21:50:47 -07:00
figleaf.excludes
no_network.py Rewrite immutable downloader (#798). This patch adds and updates unit tests. 2010-08-04 00:27:10 -07:00
test_backupdb.py Correct stringutils->encodingutil patch to be the newer version, rather than the old version that was committed in error. 2010-07-17 18:34:35 -07:00
test_base62.py doc: licensing cleanups 2009-09-20 10:16:31 -07:00
test_checker.py Change relative imports to absolute 2010-02-26 01:14:33 -07:00
test_cli.py SegmentFetcher: use new diversity-seeking share-selection algorithm, and 2010-08-31 18:37:02 -07:00
test_client.py setup: replace hardcoded 'allmydata-tahoe' with allmydata.__appname__ 2010-08-01 09:05:17 -07:00
test_codec.py download: refactor handling of URI Extension Block and crypttext hash tree, simplify things 2008-12-05 08:17:54 -07:00
test_crawler.py Change relative imports to absolute 2010-02-26 01:14:33 -07:00
test_deepcheck.py immutable: extend the tests to check that the shares that got uploaded really do make a sufficiently Happy distribution 2010-07-18 21:50:47 -07:00
test_dirnode.py Rewrite immutable downloader (#798). This patch adds and updates unit tests. 2010-08-04 00:27:10 -07:00
test_download.py SegmentFetcher: use new diversity-seeking share-selection algorithm, and 2010-08-31 18:37:02 -07:00
test_encode.py Rewrite immutable downloader (#798). This patch adds and updates unit tests. 2010-08-04 00:27:10 -07:00
test_encodingutil.py Changes to Tahoe needed to work with new zetuptoolz (that does not use .exe wrappers on Windows), and to support Unicode arguments and stdout/stderr -- v5 2010-07-25 01:32:16 -07:00
test_filenode.py Rewrite immutable downloader (#798). This patch adds and updates unit tests. 2010-08-04 00:27:10 -07:00
test_hashtree.py hush pyflakes-0.4.0 warnings: remove trivial unused variables. For #900. 2010-01-14 14:15:29 -08:00
test_helper.py move convergence secret into SecretHolder, next to lease secret 2009-11-17 17:54:44 -08:00
test_hung_server.py lazily create DownloadNode upon first read()/get_segment() 2010-08-04 00:28:08 -07:00
test_immutable.py SegmentFetcher: use new diversity-seeking share-selection algorithm, and 2010-08-31 18:37:02 -07:00
test_introducer.py Change relative imports to absolute 2010-02-26 01:14:33 -07:00
test_iputil.py tests: bump up the timeout on this iputil test from 2s to 4s 2010-06-09 07:30:17 -07:00
test_keygen.py switch to using RemoteException instead of 'wrapped' RemoteReferences. Should fix #653, the rref-EQ problem 2009-05-21 17:46:32 -07:00
test_mutable.py Rewrite immutable downloader (#798). This patch adds and updates unit tests. 2010-08-04 00:27:10 -07:00
test_netstring.py directories: keep track of your position as you decode netstring after netstring from an input buffer instead of copying the trailing part 2009-07-04 19:51:09 -07:00
test_nevow.py tests: stop being surprised that Nevow no longer prints out warnings when it tries to find its static files 2010-01-31 20:11:44 -08:00
test_no_network.py Simplify immutable download API: use just filenode.read(consumer, offset, size) 2009-12-01 17:53:30 -05:00
test_node.py Change relative imports to absolute 2010-02-26 01:14:33 -07:00
test_observer.py hush pyflakes-0.4.0 warnings: slightly less-trivial fixes. Closes #900. 2010-01-14 14:17:19 -08:00
test_provisioning.py test_provisioning: STAN is not always a list. Fix by David-Sarah Hopwood. 2010-01-14 17:46:32 -08:00
test_repairer.py Rewrite immutable downloader (#798). This patch adds and updates unit tests. 2010-08-04 00:27:10 -07:00
test_runner.py test_runner.py: correct and simplify normalization of package directory for case-insensitive filesystems. 2010-08-08 11:50:05 -07:00
test_sftp.py SFTP: test that renaming onto a just-opened file fails. 2010-06-11 20:37:09 -07:00
test_stats.py Change relative imports to absolute 2010-02-26 01:14:33 -07:00
test_storage.py test_storage.py: change skip note for test_large_share to say that Windows doesn't support sparse files. refs #569 2010-08-04 19:26:12 -07:00
test_system.py Rewrite immutable downloader (#798). This patch adds and updates unit tests. 2010-08-04 00:27:10 -07:00
test_upload.py Rewrite immutable downloader (#798). This patch adds and updates unit tests. 2010-08-04 00:27:10 -07:00
test_uri.py Add tests of caps from the future that have non-ASCII characters in them (encoded as UTF-8). The changes to test_uri.py, test_client.py, and test_dirnode.py add tests of non-ASCII future caps in addition to the current tests. The changes to test_web.py just replace the tests of all-ASCII future caps with tests of non-ASCII future caps. We also change uses of failUnlessEqual to failUnlessReallyEqual, in order to catch cases where the type of a string is not as expected. 2010-07-11 13:02:52 -07:00
test_util.py test_util.py: use SHA-256 from pycryptopp instead of MD5 from hashlib (for uses in which any hash will do), since hashlib was only added to the stdlib in Python 2.5. 2010-08-05 22:00:51 -07:00
test_web.py SegmentFetcher: use new diversity-seeking share-selection algorithm, and 2010-08-31 18:37:02 -07:00
trial_coverage.py code coverage: replace figleaf with coverage.py, should work on py2.6 now. 2010-02-03 08:54:21 -08:00