Jean-Paul Calderone
b7e3633056
Fix a lot of classic classes in Tahoe-LAFS
2019-08-13 16:55:40 -04:00
heartsucker
dbfcf8ae00
replaced StringIO imports with six.moves
2019-03-28 12:31:37 +01:00
heartsucker
df9243a3f4
updated test code to use print function over print statement
2019-03-22 17:32:36 +01:00
meejah
08e0c3b7e2
get rid of 'add_service' (just an alias to setServiceParent anyway)
2018-09-10 21:58:27 -06:00
Brian Warner
96c625920c
Teach tub to start synchronously even with ip autodetect
...
* remove when_tub_ready() from all code
* synchronous-ify all node/client/introducer startup code
refs ticket:2491
2016-04-26 21:54:45 -07:00
Brian Warner
017fec16a4
test/check_memory: stop using .tac files
2016-03-25 16:26:29 -07:00
Brian Warner
f0e783e20e
fix check-memory test, with new new (safe) control-port methods
2015-04-21 13:05:58 -07:00
Brian Warner
681eb4d12e
check_memory.py: announce 32-bit vs 64-bit
2015-03-19 18:59:16 -07:00
Brian Warner
58b66b4018
check_memory: stop using long-deprecated twisted internals
2014-09-02 18:22:59 -07:00
Daira Hopwood
647ebce6b9
Better name for the file that causes a node to exit after a timeout when running unit tests. refs #1336
...
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2014-08-17 15:51:19 +01:00
Brian Warner
bcdfb5802e
test/check_memory.py: oops, fix one last ur.uri -> ur.get_uri()
2012-05-22 08:50:36 -07:00
Brian Warner
fff237be9a
remove interpreter shbang lines from non-executables
...
thanks to Greg Troxel for the catch
2011-10-14 10:23:01 -07:00
Zooko O'Whielacronx
5bf5404ba1
tests: fix check_memory test
...
fixes #1503
2011-08-25 13:11:16 -07:00
david-sarah
618db4867c
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
david-sarah
71f8757bd1
check_memory.py: adapt to servers-of-happiness changes.
2010-06-07 18:35:28 -07:00
david-sarah
87f1bae7fe
Add create-node CLI command, and make create-client equivalent to create-node --no-storage ( fixes #760 )
2010-01-15 21:20:55 -08:00
Brian Warner
1863aee0aa
switch to using RemoteException instead of 'wrapped' RemoteReferences. Should fix #653 , the rref-EQ problem
2009-05-21 17:46:32 -07:00
Brian Warner
c9803d5217
switch all foolscap imports to use foolscap.api or foolscap.logging
2009-05-21 17:38:23 -07:00
Brian Warner
c4f8005867
remove more RuntimeError from unit tests, for #639
2009-02-22 17:28:55 -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
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
7394607141
move encode/upload/download/checker.py into a new immutable/ directory. No behavior changes expected.
2008-07-16 13:14:39 -07:00
Brian Warner
8f4e409677
check_memory: oops, fix HTTP-based modes: trailing slash in node.url vs no slash
2008-05-08 18:01:31 -07:00
Brian Warner
411f578c19
check_memory: don't use fixed webports, they cause occasional test failures
2008-05-08 16:49:27 -07:00
Zooko O'Whielacronx
dfdbb95648
fix check-memory to use new upload API (which requires a "convergence" argument), and change it to measure convergence instead of random-key, since convergence is the use case we care about more
2008-03-24 15:28:04 -07:00
Zooko O'Whielacronx
fc3bd0c987
use added secret to protect convergent encryption
...
Now upload or encode methods take a required argument named "convergence" which can be either None, indicating no convergent encryption at all, or a string, which is the "added secret" to be mixed in to the content hash key. If you want traditional convergent encryption behavior, set the added secret to be the empty string.
This patch also renames "content hash key" to "convergent encryption" in a argument names and variable names. (A different and larger renaming is needed in order to clarify that Tahoe supports immutable files which are not encrypted content-hash-key a.k.a. convergent encryption.)
This patch also changes a few unit tests to use non-convergent encryption, because it doesn't matter for what they are testing and non-convergent encryption is slightly faster.
2008-03-24 09:46:06 -07:00
Brian Warner
66f33ee504
upload: return an UploadResults instance (with .uri) instead of just a URI
2008-02-05 21:01:38 -07:00
Brian Warner
d98fde952c
introducer: remove remaining bits of 'push-to-myself' flags. The uploading/downloading node is no longer special.
2008-02-05 14:16:01 -07:00
Brian Warner
22071c00e0
upload: oops, fix breakage after removing upload_file/upload_data/etc
2008-01-30 19:41:43 -07:00
Zooko O'Whielacronx
8c65bdcf9d
put all private state in $BASEDIR/private
...
fixes #219
The only part of #219 that this doesn't include is the part about
logpublisher, which has been moved out of tahoe into foolscap.
2007-12-17 16:39:54 -07:00
Zooko O'Whielacronx
9a30ab2dfd
make check-memory use the new POST /uri?t=upload
2007-12-06 17:28:23 -07:00
Zooko O'Whielacronx
59d6c3c822
decentralized directories: integration and testing
...
* use new decentralized directories everywhere instead of old centralized directories
* provide UI to them through the web server
* provide UI to them through the CLI
* update unit tests to simulate decentralized mutable directories in order to test other components that rely on them
* remove the notion of a "vdrive server" and a client thereof
* remove the notion of a "public vdrive", which was a directory that was centrally published/subscribed automatically by the tahoe node (you can accomplish this manually by making a directory and posting the URL to it on your web site, for example)
* add a notion of "wait_for_numpeers" when you need to publish data to peers, which is how many peers should be attached before you start. The default is 1.
* add __repr__ for filesystem nodes (note: these reprs contain a few bits of the secret key!)
* fix a few bugs where we used to equate "mutable" with "not read-only". Nowadays all directories are mutable, but some might be read-only (to you).
* fix a few bugs where code wasn't aware of the new general-purpose metadata dict the comes with each filesystem edge
* sundry fixes to unit tests to adjust to the new directories, e.g. don't assume that every share on disk belongs to a chk file.
2007-12-03 14:52:42 -07:00
Brian Warner
ee72a5adfd
rename client.tac to tahoe-client.tac, so that 'ps ax|grep tahoe' works. Closes #156 .
2007-10-11 02:48:06 -07:00
Brian Warner
6ed8664c7f
check_memory.py: don't use self.keepalive_file until it's been initialized
2007-10-11 02:20:20 -07:00
Brian Warner
50415cf9c4
check_memory: more keepalive-file debug messages
2007-09-25 18:47:48 -07:00
Brian Warner
8d7368f748
check_memory: put framework log in a stable place, add debug code to figure
...
out why the keepalive-file isn't doing its job
2007-09-25 18:26:54 -07:00
Brian Warner
1c29065f1c
check_memory: touch the hotline file more often, to avoid accidental timeout
2007-09-20 19:35:31 -07:00
Brian Warner
3774ce59ea
check_memory: fix race condition for startup of in-process server nodes
2007-09-20 15:33:58 -07:00
Brian Warner
77fae0b338
check_memory.py: record initial memory usage (before any connections are made)
2007-09-20 12:36:27 -07:00
Brian Warner
bede39a156
check-memory: add 'receive' mode, for #97 (consumption during share receive
2007-09-19 12:59:32 -07:00
Brian Warner
ee9b7fd678
check_memory: oops, silly bug make 'upload' push to ourselves, raising the usage
2007-09-19 04:14:48 -07:00
Brian Warner
08cc32bb77
check_memory: add download-GET-slow, to simulate memory usage of a node feeding downloaded data via HTTP GET to a slow client
2007-09-18 20:35:27 -07:00
Brian Warner
2886c5aeae
check_memory: don't accept shares for download/download-GET test, since that hits bug #97
2007-09-18 19:40:29 -07:00
Brian Warner
f6acf5a0c3
check_memory: add download, download-GET
2007-09-18 18:56:05 -07:00
Brian Warner
e9d32f14b9
check_memory.py: preserve client.log and stats.out in _test_memory/
...
Put the nodes in _test_memory/test/, which is clobbered on each test. Also
kill the client with SIGINT instead of SIGKILL. Also don't daemonize the
client, since we're going to kill it at the end of the test anyways: this
cleans up shutdown a bit.
2007-09-15 20:53:06 -07:00
Brian Warner
c7986389e5
check_memory.py: have all clients write their logs to _test_memory/client.log instead of a separate file per client
2007-09-15 12:34:05 -07:00
Brian Warner
e7f61a3a6c
check_memory: oops, only bail if the process ended abnormally
2007-09-15 11:47:29 -07:00
Brian Warner
32f25f33e3
check-memory: if the child process fails to start, shut down instead of hanging forever
2007-09-14 20:16:57 -07:00
Brian Warner
244471dcc4
check_memory.py: Disable the 100MB test for now: our buildslave can't currently handle it because the testnet/framework processes uses something like 600M of RSS.
2007-08-15 12:55:11 -07:00
Brian Warner
998802fd6d
#96 : add flag to enable pushing data to ourselves, defaulting to False
2007-08-09 18:30:24 -07:00