Daira Hopwood
759512da28
Add tests for combining autodetected and statically configured locations. refs #754
...
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2015-02-10 17:12:43 +00:00
Daira Hopwood
10ebbeebaa
test_node.py: refactor test_location* to reduce code duplication. refs #754
...
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2015-02-10 17:12:43 +00:00
Daira Hopwood
883dd9795b
Error if a .furl config entry contains an unescaped '#'. fixes #2128
...
Author: Andrew Miller <amiller@dappervision.com>
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2014-05-05 22:55:50 +01:00
Brian Warner
26d3869076
node.py: add get_private_config()
...
Also add tests for this and the pre-existing private-config methods.
2012-06-10 17:46:38 -07:00
david-sarah
a555336910
Make sure that foolscap.logging.log.setLogDir is called with a str (not unicode) path, v2. Includes test. fixes #1725
2012-04-29 02:28:44 +00:00
david-sarah
972beffb25
test_node.py: test that we tolerate a UTF-8 BOM at the start of tahoe.cfg, and can read UTF-8 option values. refs #1470
2011-08-08 18:05:52 +00:00
david-sarah
e76092e16c
Change relative imports to absolute
2010-02-26 01:14:33 -07:00
Brian Warner
e9223fcd0e
hush pyflakes-0.4.0 warnings: slightly less-trivial fixes. Closes #900 .
...
This includes one fix (in test_web) which was testing the wrong thing.
2010-01-14 14:17:19 -08: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
f35c659b2f
tests: stop using setUpClass/tearDownClass, since they've been deprecated in Twisted-8.2.0
2009-02-23 14:43:12 -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
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
78d58875a8
test_node: improve coverage of advertised_ip_addresses a bit
2008-09-29 23:08:16 -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
Brian Warner
69b65b6b01
remove logpublisher, use the Foolscap version now that this functionality has been moved into Foolscap-0.2.2
2007-12-12 20:31:01 -07:00
Brian Warner
e52e14cc66
remove tests of logging functionality that's been subsumed by foolscap logging
2007-12-12 20:23:53 -07:00
Brian Warner
cc1612aee5
hierarchical logging: add numbered messages and parent= args
2007-11-19 18:23:18 -07:00
Brian Warner
b29ce1c30a
logpublisher: implement subscribe/publish for log, add a sample client
2007-11-16 20:07:50 -07:00
Brian Warner
d777283e9e
implement preliminary log publisher/gatherer
...
This creates a Referenceable object that will eventually be able to publish
log events to a remote subscriber (at present all it can do is provide
version information). The FURL for this logport is written to 'logport.furl'.
In addition, if a file named 'log_gatherer.furl' is present, the given target
will be contacted and offered access to the logport. This can be used by a
centralized logging agent to subscribe to logs, e.g. from all the nodes in a
centrally-maintained storage grid. (think syslog -r, but with all the
security properties of FURLs, and permitting non-printable strings and
structured data).
Once this framework matures a bit, it will be moved into Foolscap.
2007-11-01 17:29:15 -07:00
Brian Warner
f9a72e0e75
test_node.py: more coverage of Node.log
2007-10-31 00:56:59 -07:00
Brian Warner
22e3487b9e
test_node.py: improve test coverage of node.py
2007-10-31 00:54:42 -07:00
Brian Warner
8fc1bf4330
test_node.py: hush pyflakes warnings
2007-05-23 17:55:04 -07:00
Zooko O'Whielacronx
44902c5152
add unit test for "advertised_ip_addresses" feature and fix bug in that feature uncovered by this unit test
2007-05-23 15:08:55 -07:00