Itamar Turner-Trauring
721b02b262
Use the function I specifically wrote for this!
2020-12-18 11:29:56 -05:00
Itamar Turner-Trauring
8f4a0379ea
Correct examples.
2020-12-18 11:26:10 -05:00
Itamar Turner-Trauring
b24a9f7083
Trying to get test_grid working on Python 3.
2020-12-18 11:21:04 -05:00
Jean-Paul Calderone
8e6c52b61e
pre-assign a listening socket to the main tub to avoid the error
2020-12-17 10:20:22 -05:00
Itamar Turner-Trauring
6e12cce1e4
Port to Python 3.
2020-12-17 09:55:35 -05:00
Itamar Turner-Trauring
3ac64e42f7
Web test_status tests pass on Python 3.
2020-12-17 09:54:04 -05:00
Itamar Turner-Trauring
9b59e7e245
Merge remote-tracking branch 'origin/3552.test_system-python-3' into 3565.web-tests-python-3-part-1
2020-12-17 09:51:52 -05:00
Itamar Turner-Trauring
33392502d3
server IDs/node IDS should be bytes.
2020-12-17 09:50:39 -05:00
Itamar Turner-Trauring
26297c296d
Merge branch 'master' into 3552.test_system-python-3
2020-12-17 09:42:34 -05:00
Jean-Paul Calderone
0ffbc7870e
Okay, let KeyboardInterrupt through
2020-12-16 20:32:04 -05:00
Jean-Paul Calderone
895ba55cf7
Python 3 compatibility
2020-12-16 18:17:14 -05:00
Jean-Paul Calderone
a223f6bb60
More reliably corrupt the signature
2020-12-16 17:31:06 -05:00
Jean-Paul Calderone
4117beba6a
remove unused import
...
yaaay
2020-12-16 16:25:51 -05:00
Jean-Paul Calderone
b200075246
whitespace
2020-12-16 16:23:05 -05:00
Jean-Paul Calderone
98000c2b66
re-implement test_unsigned_announcement without mock
...
and to make assertions about public behavior instead of private implementation
details
2020-12-16 16:20:38 -05:00
Jean-Paul Calderone
b2c9296f6b
Use ObserverList instead of an ad hoc reimplementation
2020-12-16 16:20:00 -05:00
Jean-Paul Calderone
60e401ca69
Make ObserverList synchronous, reentrant, and exception safe
...
with tests
2020-12-16 16:19:33 -05:00
Jean-Paul Calderone
83ebaef86c
Stop mocking safe_load
...
The comment implies this will cause something to break on some platform.
Let's find out.
2020-12-16 15:24:33 -05:00
Jean-Paul Calderone
d19b1cfd68
Merge pull request #933 from LeastAuthority/3533.test_root-no-mock
...
Remove Mock from test_root
Fixes: ticket:3533
2020-12-16 15:15:17 -05:00
Itamar Turner-Trauring
b5f2afe39c
WIP porting test_status.py.
2020-12-16 14:13:46 -05:00
Itamar Turner-Trauring
67c0a4ac84
Port another test module to Python 3.
2020-12-16 13:53:49 -05:00
Jean-Paul Calderone
9f28ccb2a4
Move the last three mock-using tests to test_tor_provider
...
where they can be rewritten later
2020-12-16 12:07:54 -05:00
Jean-Paul Calderone
3d82ca0d25
Use boring old dependency injection to replace mocks in this test
2020-12-16 11:50:35 -05:00
Jean-Paul Calderone
3d564f97d5
Switch away from mock in a few more simple cases in test_connections.py
2020-12-16 11:48:33 -05:00
Jean-Paul Calderone
468895c74d
Duplicate of allmydata.test.test_tor_provider.Provider.test_handler_control_endpoint
2020-12-16 11:28:36 -05:00
Jean-Paul Calderone
7eb9f2ce54
Moved into allmydata.test.test_i2p_provider
...
This follows the local convention of using mock even though I'm trying to get
rid of mock. This is because it keeps the test_i2p_provider suite consistent
which means it won't make removing mock from test_i2p_provider later much
harder and lets me avoid doing that work now.
2020-12-16 11:20:45 -05:00
Itamar Turner-Trauring
61c76902ca
Port to Python 3.
2020-12-16 11:16:34 -05:00
Jean-Paul Calderone
8271dbf3e6
Duplicate of allmydata.test.test_i2p_provider.Provider.test_handler_configdir
2020-12-16 11:15:51 -05:00
Jean-Paul Calderone
81b684b583
Duplicate of allmydata.test.test_i2p_provider.Provider.test_handler_launch_configdir_executable
2020-12-16 11:15:21 -05:00
Itamar Turner-Trauring
f7362dc1ef
Port to Python 3.
2020-12-16 11:14:55 -05:00
Jean-Paul Calderone
6d66be43b9
Duplicate of allmydata.test.test_i2p_provider.Provider.test_handler_launch_configdir
2020-12-16 11:14:46 -05:00
Jean-Paul Calderone
e84860ef15
Duplicate of allmydata.test.test_i2p_provider.Provider.test_handler_launch
2020-12-16 11:13:52 -05:00
Itamar Turner-Trauring
acc36c34d0
Tests pass on Python 2 and Python 3.
2020-12-16 11:13:32 -05:00
Jean-Paul Calderone
ececae2ce9
Duplicate of allmydata.test.test_i2p_provider.Provider.test_handler_sam_endpoint
2020-12-16 11:12:36 -05:00
Jean-Paul Calderone
f7c92bf4c9
Duplicate of allmydata.test.test_i2p_provider.Provider.test_handler_default
2020-12-16 11:11:22 -05:00
Jean-Paul Calderone
01b31e0680
Duplicate of allmydata.test.test_tor_provider.CreateOnion.test_launch_executable
2020-12-16 11:06:57 -05:00
Jean-Paul Calderone
61778bc799
Duplicate of allmydata.test.test_tor_provider.CreateOnion.test_launch
2020-12-16 11:05:51 -05:00
Jean-Paul Calderone
71ced4c228
Duplicate of allmydata.test.test_tor_provider.Provider.test_handler_socks_endpoint
2020-12-16 11:03:37 -05:00
Jean-Paul Calderone
ec9851f6d8
Duplicate of allmydata.test.test_i2p_provider.Provider.test_handler_no_i2p
2020-12-16 10:38:13 -05:00
Jean-Paul Calderone
b5d4a2579b
Duplicate of allmydata.test.test_i2p_provider.Provider.test_handler_disabled
2020-12-16 10:37:41 -05:00
Jean-Paul Calderone
17d9988d45
Duplicate of allmydata.test.test_tor_provider.Provider.test_handler_no_tor
2020-12-16 10:34:33 -05:00
Jean-Paul Calderone
d3f8839f1b
Duplicate of allmydata.test.test_tor_provider.Provider.test_handler_disabled
2020-12-16 10:34:07 -05:00
Itamar Turner-Trauring
052b3d9fb1
Re-enable logging validation on Python 3.
2020-12-16 10:06:59 -05:00
Itamar Turner-Trauring
54a11dbb6a
Merge pull request #932 from tahoe-lafs/3560.test_eliotutil-python-3
...
Port eliotutil and tests to Python 3
Fixes ticket:3560
2020-12-16 09:40:19 -05:00
Jean-Paul Calderone
eeebd15c42
Take Mock out of `allmydata.test.test_connections.TCP
`
2020-12-16 09:15:37 -05:00
Jean-Paul Calderone
2b1ea5c604
Remove the client Mock object
...
It wasn't used by anything so that was easy. Clean up the test as long as
we're here.
2020-12-15 18:30:12 -05:00
Jean-Paul Calderone
c4e8262a99
Merge pull request #925 from tahoe-lafs/3532.test_node-no-mock
...
Remove mock from test_node
Fixes: ticket:3532
2020-12-15 14:38:07 -05:00
Jean-Paul Calderone
fee8c55f01
The listenOn is probably the most interesting part
2020-12-15 13:42:20 -05:00
Jean-Paul Calderone
7dbcb4d712
Make set_tub_locations a nicer function
2020-12-15 13:41:01 -05:00
Jean-Paul Calderone
53b782aca4
get the function name right
2020-12-15 13:40:12 -05:00
Jean-Paul Calderone
c2dc2b39da
A better name
2020-12-15 13:34:04 -05:00
Jean-Paul Calderone
be559ab3a5
Turn the XXX into a TODO'd test and a ticket
2020-12-15 13:31:18 -05:00
Jean-Paul Calderone
29f0ae0554
These don't need to be methods. Also docstrings are nice.
2020-12-15 13:30:58 -05:00
Itamar Turner-Trauring
4a587836a5
Port eliotutil and tests to Python 3.
2020-12-15 10:13:46 -05:00
Itamar Turner-Trauring
6a29568888
Fix flakes.
2020-12-15 09:16:50 -05:00
Itamar Turner-Trauring
c7f2b7dd7c
Merge remote-tracking branch 'origin/master' into 3552.test_system-python-3
2020-12-15 09:13:32 -05:00
Jean-Paul Calderone
a97184868d
oops syntax error
...
so what is the good of pre-commit?
2020-12-14 18:40:18 -05:00
Jean-Paul Calderone
5c6e0a2bb4
docstrings
2020-12-14 18:33:28 -05:00
Jean-Paul Calderone
677e62e73e
Return the canned handler
2020-12-14 18:29:50 -05:00
Jean-Paul Calderone
b77f43e360
Simplify handler initialization
2020-12-14 18:27:02 -05:00
Jean-Paul Calderone
49330d1e4a
docstring
2020-12-14 18:25:58 -05:00
Jean-Paul Calderone
4b1c6a2815
Remove these reactor parameters
2020-12-14 17:42:30 -05:00
Jean-Paul Calderone
fcbe56ba0a
docstrings for the Tor and I2P address family implementations
2020-12-14 17:36:35 -05:00
Jean-Paul Calderone
18c18a0e1d
explain the inconsistent naming
2020-12-14 17:33:58 -05:00
Jean-Paul Calderone
b6ea3f47c8
unused imports
2020-12-14 16:58:22 -05:00
Jean-Paul Calderone
01507e4f93
some direct tests for DaemonizeTheRealService
2020-12-14 16:57:20 -05:00
Jean-Paul Calderone
a9bcd6270a
Merge remote-tracking branch 'origin/master' into 3557.GuessedAtParserWarning
2020-12-14 15:41:31 -05:00
Jean-Paul Calderone
035cd8b4ac
Merge remote-tracking branch 'origin/master' into 3532.test_node-no-mock
2020-12-14 15:35:42 -05:00
Jean-Paul Calderone
39628cbb4e
Merge pull request #921 from tahoe-lafs/3550.remove-start-stop-restart-daemonize
...
remove start stop restart daemonize
Fixes: ticket:3550
Fixes: ticket:3523
Fixes: ticket:3524
2020-12-14 14:58:35 -05:00
Itamar Turner-Trauring
c7759cb82c
Try to fix test_web.py on Python 2.
2020-12-14 13:53:12 -05:00
Itamar Turner-Trauring
37d46cfb3d
Merge remote-tracking branch 'origin/master' into 3552.test_system-python-3
2020-12-14 13:32:43 -05:00
Itamar Turner-Trauring
28f46e9b06
test_system.py passes on both Python 2 and Python 3.
2020-12-14 11:07:37 -05:00
Jean-Paul Calderone
bdb7c50fac
You can just use multiple terminals
...
If you know how to daemonize stuff you can figure it out yourself I guess.
2020-12-14 09:38:16 -05:00
Jean-Paul Calderone
a0931f4999
You can pass the introducer on the command line
2020-12-14 09:38:06 -05:00
Jean-Paul Calderone
0a1c2386b9
client must be running already
2020-12-14 09:37:04 -05:00
Jean-Paul Calderone
7638064818
Merge remote-tracking branch 'origin/master' into 3532.test_node-no-mock
2020-12-14 09:32:33 -05:00
Sajith Sasidharan
b787de0acc
Fix BeautifulSoup's GuessedAtParserWarning
2020-12-13 06:49:49 -05:00
Jean-Paul Calderone
34cd1efaa4
For the sake of clarity, stop talking about daemons here
2020-12-12 18:34:49 -05:00
Jean-Paul Calderone
b58b07a9d7
Fold run_common into tahoe_run since there are no other run-like commands anymore
2020-12-12 18:26:22 -05:00
Jean-Paul Calderone
39631a90bf
we always use --nodaemon
2020-12-12 18:23:01 -05:00
Jean-Paul Calderone
25c98d7421
don't shadow the global
2020-12-12 18:21:35 -05:00
Jean-Paul Calderone
692285ada3
key-generator was removed
2020-12-12 18:21:16 -05:00
Jean-Paul Calderone
ed2152e2c8
We don't need to check this condition. We're always running.
2020-12-12 18:20:26 -05:00
Jean-Paul Calderone
d8da612055
Move the --nodaemon logic out of tahoe_run
...
We're always going to --nodaemon from now on
2020-12-12 18:20:09 -05:00
Jean-Paul Calderone
f17a5dfafc
key-generator was apparently removed long ago
2020-12-12 17:40:13 -05:00
Jean-Paul Calderone
51e50671e5
Get rid of the "tahoe start" and "tahoe stop" and fix the obvious problems
...
This just requires the client node to already be running now.
2020-12-11 15:32:24 -05:00
Itamar Turner-Trauring
98330d7186
Merge remote-tracking branch 'origin/master' into 3552.test_system-python-3
2020-12-11 13:24:04 -05:00
Itamar Turner-Trauring
9bf221dea4
Match Foolscap better.
2020-12-11 13:10:56 -05:00
Itamar Turner-Trauring
42f2f2318c
Fix some Python 3 tests.
2020-12-11 13:05:21 -05:00
Itamar Turner-Trauring
cf6206ca42
Fix test_filesystem_with_cli_in_subprocess on Python 2.
2020-12-11 12:37:23 -05:00
Itamar Turner-Trauring
36f18e0afb
Fix test_filesystem on Python 2.
2020-12-11 12:30:12 -05:00
Jean-Paul Calderone
9a8f72202d
Check for these exceptions and report them better
2020-12-11 11:23:10 -05:00
Jean-Paul Calderone
efac902e57
Slightly better user-facing privacy error message here
2020-12-11 11:23:02 -05:00
Itamar Turner-Trauring
36e53caaeb
Add test coverage for packing UnknownNode with missing read-only URI.
2020-12-11 11:14:50 -05:00
Itamar Turner-Trauring
66cd68d325
Merge remote-tracking branch 'origin/master' into 3553.nodemaker-python-3
2020-12-11 10:48:50 -05:00
Itamar Turner-Trauring
b1f478c5df
Note test_system.py is only partially ported.
2020-12-11 10:48:34 -05:00
Jean-Paul Calderone
9259264d27
Get rid of the remaining mocks
2020-12-11 10:38:15 -05:00
Jean-Paul Calderone
0cdf66a991
Make the Tor/I2P "provider" interfaces explicit
2020-12-11 10:35:22 -05:00
Jean-Paul Calderone
733223c8d7
Refactor create_main_tub to make testing tub location logic easier
...
Then take advantage of this and simplify the tub location logic test
2020-12-11 10:34:30 -05:00
Jean-Paul Calderone
624916e06b
Merge branch 'master' into 3550.remove-start-stop-restart-daemonize
2020-12-10 19:47:47 -05:00