Itamar Turner-Trauring
fa46efdb3a
Enable BytesWarnings in integration tests.
2021-04-16 11:58:37 -04:00
Itamar Turner-Trauring
2299c2dcc8
Fix implicit str(bytesobj).
2021-04-13 09:40:24 -04:00
Itamar Turner-Trauring
2eba96de61
Address review comments.
2021-03-17 15:29:00 -04:00
Jason R. Coombs
4cb8c420d3
Manually reviewed test_runner (no legacy map, filter, or keys found). Added docstring to tag module as fully ported.
2021-02-15 12:49:20 -05:00
Jason R. Coombs
746e1b2664
Fix test failures on Python 2 by wrapping cli calls in unicode_to_argv.
2021-02-15 12:47:26 -05:00
Jason R. Coombs
d59d64d6bd
Fully port test_runner. Introduces three new errors on Python 2.
2021-02-15 12:38:37 -05:00
Jason R. Coombs
30f5c71a49
Encode expected message. Fixes remaining test failures in test_runner.
2021-02-15 09:36:07 -05:00
Jason R. Coombs
f183be9d6a
Decode config file on read and expect bytes in the stdout. Fixes an additional test on Python 3.
2021-02-15 09:33:54 -05:00
Jason R. Coombs
3acad6544e
Decode config file on read and expect bytes in the stdout. Fixes an additional test on Python 3.
2021-02-15 09:28:14 -05:00
Jason R. Coombs
dc883c0440
Decode config file on read. Fixes two test failures on Python 3.
2021-02-15 09:24:16 -05:00
Jason R. Coombs
eefb7004c9
Add test_runner to the ported test modules. Selectively decode sys.argv on Python 2 only. Fixes 6 test failures on Python 3.
2021-02-15 09:20:45 -05:00
Jean-Paul Calderone
44d76cb159
fix formatting mistake
2021-01-12 15:00:02 -05:00
Jean-Paul Calderone
ae1a0c591b
Prefer to fix unicode_to_argv/argv_to_unicode instead of callers
2021-01-12 09:58:34 -05:00
Jean-Paul Calderone
de9bcc7ea8
encode Popen argv as UTF-8 on POSIX so we ignore locale
2021-01-11 19:21:20 -05:00
Jean-Paul Calderone
5df86b4608
restore test_with_python_options now that I see what it's testing
2021-01-11 15:26:12 -05:00
Jean-Paul Calderone
c6d108ddb2
Make test_runner and test_windows both use the good Popen
2021-01-11 15:07:37 -05:00
Jean-Paul Calderone
73110f48da
Banish getProcessOutputAndValue from test_runner
...
It cannot do the right thing on Windows for non-ASCII because Twisted uses
pywin32 and on Python 2 pywin32 binds CreateProcessA.
2021-01-11 14:56:46 -05:00
Jean-Paul Calderone
f17a5dfafc
key-generator was apparently removed long ago
2020-12-12 17:40:13 -05:00
Jean-Paul Calderone
5b0190b9a1
Remove some more test code related to start/restart/stop
2020-12-09 10:51:48 -05:00
Jean-Paul Calderone
ca92fa4eb5
Don't think about "tahoe start"
2020-12-09 10:51:48 -05:00
Jean-Paul Calderone
3fd1b336b4
Don't test stats gatherer support in the runner
2020-12-09 10:32:49 -05:00
Jean-Paul Calderone
c694e8c7e2
Delete allmydata.version_checks and related functionality
...
It is not Tahoe-LAFS' job to manage package installation in this way.
Instead, we can declare our dependencies in setup.py and rely on installation
management tools and packagers to create a suitable execution environment.
Making this statement in the past required going much further out on a limb
than it does today. This code has served its purpose and can now be retired.
2020-11-23 15:10:18 -05:00
Jean-Paul Calderone
ff30dbcf85
Delete test_version_no_noise
...
Python will write to stdout and stderr what it wants when it wants. It is
futile to believe this can be controlled without a massively greater effort.
Also, Lucid and `distribute` are long dead.
2019-10-29 08:56:14 -04:00
Jean-Paul Calderone
13409a2449
Move the remaining package checking machinery to its own module.
2019-08-13 15:11:01 -04:00
tpltnt
c8f11dc2d3
ported old-style classes to new-style
2019-05-26 08:28:18 +02:00
Jean-Paul Calderone
d8b65d1374
Merge remote-tracking branch 'origin/master' into 3025.fix-test_runner-hangs
2019-05-13 07:19:59 -04:00
Jean-Paul Calderone
6110fb0b9c
Skip the PID file checks on Windows
2019-05-13 06:28:57 -04:00
Jean-Paul Calderone
628c7e7c5f
remove the custom timeouts
2019-05-08 18:39:26 -06:00
Jean-Paul Calderone
b38a724d3d
remove unused things
2019-05-03 12:09:21 -04:00
Jean-Paul Calderone
86d33e19c5
no more "tahoe start" here at all
2019-05-03 12:09:10 -04:00
Jean-Paul Calderone
aac36fb30a
fix line separator
2019-05-03 12:09:03 -04:00
Jean-Paul Calderone
97e8ba8301
Remove test_client_no_noise and rewrite test_introducer
...
"tahoe run" has no quiet option so `test_client_no_noise` is not applicable.
This is a loss of the coverage of the quiet option for `tahoe start`. That is
unfortunate but fixing any `tahoe start`-using test is really hard and the
functionality that is no longer covered is so trivial it hardly seems like it
made sense to test it by running multiple tahoe child processes anyway.
2019-05-03 11:36:11 -04:00
Jean-Paul Calderone
0e8472c017
rewrite test_baddir as several tahoe run
-using tests
2019-05-03 08:55:35 -04:00
Jean-Paul Calderone
57fc078383
factor cleanup into api class
2019-05-03 07:27:58 -04:00
Jean-Paul Calderone
5a1183500e
rewrite RunNode.test_client to use "tahoe run"
2019-05-02 14:21:35 -04:00
Jean-Paul Calderone
e6da5e6a82
Switch to simpler, declarative skip style
2019-05-02 12:52:06 -04:00
Jean-Paul Calderone
7b314ceab8
Attempt to avoid the hang condition
...
The Python 2.7 subprocess module does not promise thread safety.
2019-04-01 12:54:51 -04:00
Jean-Paul Calderone
d203fde9f6
Change away from the Windows directory separator for the escape char
2019-02-26 19:06:35 -05:00
Jean-Paul Calderone
25a62001dd
Improve the failure case user experience
...
And test it
2019-02-26 19:05:39 -05:00
Jean-Paul Calderone
7fb695f956
Add user-facing help about destinations
2019-02-25 13:34:02 -05:00
meejah
1b6f477549
Pull "config" handling out of Node and hide node-derivitives
...
This includes:
- refactor to create_client and _Client
- refactor to _IntroducerNode and create_introducer
2017-11-20 12:57:20 -07:00
Brian Warner
229e306e9d
test_runner: fix to use new conventions
...
create-node needs --hostname=, and we can't expect the node to write
client.port at startup (because tahoe.cfg now has tub.port= set
properly)
2016-09-09 18:53:22 -07:00
Brian Warner
7d3b4149ae
remove leftover debug prints
2016-09-09 18:51:57 -07:00
David Stainton
83db7e8b43
Add create node args: listen, port, hostname, location
...
fixes ticket: 2773
2016-09-09 17:10:22 -07:00
Brian Warner
97c29a3c0b
test_runner: factor out parse_cli() helper
2016-09-09 15:41:00 -07:00
Brian Warner
7193bff48b
tests: use shared run_cli()/do_cli()
...
A couple of test classes which defined their own flavors were changed to
use the common one.
2016-09-09 15:41:00 -07:00
Brian Warner
b637636ef9
remove _appname.py file
...
We no longer need the complexity of choosing the application name at
runtime. This removes the setup.py code which populates the _appname.py
file, and the code in __init__.py which reads it. It does not yet remove
the tests which compare the output of e.g. `tahoe --version` against
`allmydata.__appname__`, which I think could be removed, but that's more
invasive than I want to do right now.
closes ticket:2754
2016-08-11 23:24:11 -07:00
David Stainton
7b9c89c6f4
remove magic_folder from config in test
2016-07-21 12:35:59 -07:00
Daira Hopwood
a5b9cf36b8
Fix unused import.
...
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2016-07-21 12:35:59 -07:00
Daira Hopwood
f77c593177
Add test for 'tahoe create-node/client/introducer' output. closes ticket:2556
...
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2016-07-21 12:35:59 -07:00