Itamar Turner-Trauring
0d5344174f
First integration test for put/get.
2021-05-21 11:57:32 -04:00
Itamar Turner-Trauring
22f8b9b428
Port to Python 3.
2021-05-12 09:25:52 -04:00
Itamar Turner-Trauring
079041fc1e
Port to Python 3.
2021-05-12 09:22:33 -04:00
Itamar Turner-Trauring
d517304a79
A lot closer to passing on Python 3.
2021-05-11 13:47:49 -04:00
Itamar Turner-Trauring
fba23ef91c
Port to Python 3.
2021-05-11 13:34:35 -04:00
Itamar Turner-Trauring
02897b9968
Fix typo.
2021-05-11 13:21:47 -04:00
Itamar Turner-Trauring
4043b2fe1f
Tests pass on Python 3.
2021-05-11 13:18:03 -04:00
Itamar Turner-Trauring
b8b00fa2da
Port to Python 3.
2021-05-11 11:13:52 -04:00
Itamar Turner-Trauring
3f2571480c
Some progress towards passing on Python 3.
2021-05-10 12:03:58 -04:00
Itamar Turner-Trauring
37bcaf6c88
Port initialization "tests".
2021-05-10 11:51:41 -04:00
Itamar Turner-Trauring
1c6a324a92
Fix a byte-to-string bug on Python 3.
2021-05-10 11:11:11 -04:00
Itamar Turner-Trauring
04fc8e7046
Port to Python 3.
2021-05-07 13:21:23 -04:00
Itamar Turner-Trauring
b11cc9137b
Integration test passed on Python 3.
2021-05-07 10:48:50 -04:00
Itamar Turner-Trauring
6df076dc10
Bit more progress.
2021-05-07 10:16:46 -04:00
Itamar Turner-Trauring
0d093c45df
Test fails on Python 3, instead of spinning until timeout.
2021-05-07 10:06:12 -04:00
Itamar Turner-Trauring
4711c9fda3
More flake fixes.
2021-05-07 09:44:44 -04:00
Itamar Turner-Trauring
fa46efdb3a
Enable BytesWarnings in integration tests.
2021-04-16 11:58:37 -04:00
Itamar Turner-Trauring
d25a0f1ce2
Increase timeout, just to be on the safe side.
2021-01-26 12:40:39 -05:00
Itamar Turner-Trauring
6c04ea7497
Explanatory comment is better now.
2021-01-26 10:14:14 -05:00
Itamar Turner-Trauring
4e89ab2e66
Context manager.
2021-01-26 10:06:57 -05:00
Itamar Turner-Trauring
e7ab792c4c
Explain why Paramiko.
2021-01-26 10:06:17 -05:00
Itamar Turner-Trauring
0424ba2a48
Fix indent.
2021-01-26 09:57:11 -05:00
Itamar Turner-Trauring
3b893a56f9
Just rely on global timeout.
2021-01-26 09:55:38 -05:00
Itamar Turner-Trauring
49300ccc4e
Merge remote-tracking branch 'origin/master' into 3584.integration-tests-sftp
2021-01-26 09:53:51 -05:00
Itamar Turner-Trauring
db22291660
Try to minimally workaround issues causing Windows to block when writing logs.
2021-01-21 13:54:22 -05:00
Itamar Turner-Trauring
7d2aa50894
when_done is bad, at least here.
2021-01-19 17:15:07 -05:00
Itamar Turner-Trauring
afcae42fd6
Notice that there's an error on the server, rather than continuing silently.
2021-01-19 11:47:23 -05:00
Itamar Turner-Trauring
9ca17d780e
Add some overall timeout, and timeout on specific test that seems to be the
...
issue somehow.
2021-01-13 10:21:06 -05:00
Itamar Turner-Trauring
dfcd75f20d
Infinite blocking is bad.
2021-01-12 13:58:28 -05:00
Itamar Turner-Trauring
b74ec6919d
Don't blow up just because irrelevant cleanup complains.
2021-01-12 13:24:42 -05:00
Itamar Turner-Trauring
3489e381be
Get rid of finalizer which, I suspect, is keeping tests from shutting down on Windows.
2021-01-12 11:16:45 -05:00
Itamar Turner-Trauring
6107e52f96
Fix flake.
2021-01-11 15:26:38 -05:00
Itamar Turner-Trauring
6b2a999f8d
Replace ckeygen with Paramiko library calls, since ckeygen doesn't work on Windows.
2021-01-11 14:02:45 -05:00
Itamar Turner-Trauring
e986e86431
Test failure to auth.
2021-01-08 13:41:04 -05:00
Itamar Turner-Trauring
2589737e1e
Public key auth test passes.
2021-01-08 13:33:22 -05:00
Itamar Turner-Trauring
3764e3b6b1
A (so far failing) test for SSH public key authentication.
2021-01-07 13:59:57 -05:00
Itamar Turner-Trauring
b8879916b2
More SFTP integration tests.
2021-01-07 13:30:35 -05:00
Itamar Turner-Trauring
a536a1a970
First passing end-to-end test of SFTP
2021-01-07 12:50:31 -05:00
Itamar Turner-Trauring
054af4b76e
Sketch of where SFTP setup needs to happen.
2021-01-07 11:25:26 -05:00
Jean-Paul Calderone
7dda680cb2
Already using "tahoe run", de-emphasize "tahoe start"
2020-12-09 10:51:10 -05:00
Jean-Paul Calderone
a0d46c6f09
Merge remote-tracking branch 'origin/master' into 3504.private-introducer-furl
2020-12-02 09:22:09 -05:00
Jean-Paul Calderone
8d6b49669b
Merge pull request #900 from tahoe-lafs/3511.config-set-config
...
Add `_Config.set_config`
Fixes: ticket:3511
2020-12-01 12:04:26 -05:00
Sajith Sasidharan
ff49414ae9
Use Tor project's new repository signing key
...
Fix for https://tahoe-lafs.org/trac/tahoe-lafs/ticket/3542
2020-11-30 17:20:50 -05:00
Jean-Paul Calderone
4c8fb8d93a
unused import
2020-11-26 21:48:06 -05:00
Jean-Paul Calderone
ae5351c204
Adapt test_tor to write_introducer change
2020-11-26 21:46:57 -05:00
Jean-Paul Calderone
c82501e0dc
Merge remote-tracking branch 'origin/master' into 3511.config-set-config
2020-11-26 11:01:18 -05:00
Jean-Paul Calderone
a06caae667
Make all the config unicode
2020-11-20 16:04:29 -05:00
Jean-Paul Calderone
88ce823618
Update integration test caller of altered write_config
2020-11-18 18:26:52 -05:00
Jean-Paul Calderone
92206b907e
write introducers.yaml instead of [client]introducer.furl
2020-11-16 15:02:29 -05:00
Jean-Paul Calderone
b9f7bcab4e
flakes
2020-10-27 09:49:58 -04:00
Jean-Paul Calderone
7ca8ede88c
Merge remote-tracking branch 'origin/master' into 3428.dont-return-deferred-to-twistedweb.2
2020-10-21 07:35:10 -04:00
Jean-Paul Calderone
9e26599a76
Fix the race condition
2020-10-16 13:44:37 -04:00
Jean-Paul Calderone
7b02f58da0
Make this test tolerant of more than one message
...
It is observing the log system. It is reasonable to believe more than one log
event might come through over the course of the test. We only need one, though.
2020-10-16 13:15:45 -04:00
Jean-Paul Calderone
64a9e95319
Pass PATH (and other stuff) into the child process
2020-10-16 11:27:13 -04:00
Jean-Paul Calderone
75b3bf1097
Refuse to continue if the introducer fURL has no location hints.
2020-10-16 11:27:05 -04:00
Sajith Sasidharan
7f5643a096
Add note on Tor integration test failures on Windows
2020-07-21 14:59:04 -04:00
Sajith Sasidharan
74a77a48cc
Merge 'origin/master' into 3320.github-actions-windows-integration-tests
2020-07-21 13:50:47 -04:00
Sajith Sasidharan
957e089715
Fix typo
2020-07-21 11:56:44 -04:00
Sajith Sasidharan
e4e59c7aab
Use a Chutney revision that works with Python 2
2020-07-21 10:44:49 -04:00
Sajith Sasidharan
9e82df4fa7
Use skipif decorator to omit Tor integration test setup on Windows
2020-07-19 09:19:19 -04:00
Sajith Sasidharan
aab598c2f5
Update integration test for status page
...
As a fallout of transition from nevow to twisted web, list of hrefs in
the parsed status page will be [u'/status/down-0', u'/status/up-0',
u'/'] (with an added '/status/' prefix) so we need to update our
assumptions.
See 5c886b1b2
for the change that necessitated this.
2020-07-17 15:19:06 -04:00
meejah
1f2ad6e634
the tests are unit-tests
2020-07-09 16:05:29 -04:00
meejah
6e2285ed2c
proof-of-concept verified-fake for testing
2020-07-09 16:05:29 -04:00
Sajith Sasidharan
7d93ae9213
Skip Tor tests on Windows
2020-06-22 20:18:00 -04:00
Jean-Paul Calderone
25edce6257
Don't create the magic-folder directories for each node
2020-04-13 12:13:45 -04:00
Jean-Paul Calderone
1fba2d6ea2
Remove the magic-folder integration tests
2020-02-13 10:28:25 -05:00
meejah
3b2fcc0d28
remove some irrelevant comments
2019-08-24 14:36:14 -06:00
meejah
b6f0832945
clarify comment
2019-08-24 14:26:27 -06:00
meejah
0f6d6659e9
fewer magic numbers (and a fix to upload encoding)
2019-08-24 14:26:09 -06:00
meejah
20f907f5d3
get rid of potential infinite loops
2019-08-24 12:53:26 -06:00
meejah
e88d0c4b48
docstring
2019-08-24 12:40:24 -06:00
meejah
bdd3531555
remove debug
2019-08-24 12:37:49 -06:00
meejah
489f4677c0
split test, remove debug
2019-08-24 12:37:28 -06:00
meejah
1d095686e2
split a test
2019-08-24 12:20:41 -06:00
meejah
221b2ca87f
file-contents are unicode
2019-08-20 00:18:14 -06:00
meejah
31348fcce6
test more of deep-check page
2019-08-20 00:18:14 -06:00
meejah
5ca3a3a1ab
consistent naming for client fixtures / helpers
2019-08-20 00:18:14 -06:00
meejah
5e15470f55
test for mkdir-with-children
2019-08-20 00:18:14 -06:00
meejah
626f4b1b1a
use html5lib instead of microdom
2019-08-20 00:18:14 -06:00
meejah
9a4411d0a3
more web integration tests
2019-08-20 00:17:28 -06:00
meejah
adc6e39cde
introducer fixture returns a TahoeProcess
2019-08-20 00:17:28 -06:00
meejah
e1da080637
test the detailed json event rendering too
2019-08-20 00:17:28 -06:00
meejah
c60c758616
refine test for web status
2019-08-20 00:17:28 -06:00
meejah
73402605ed
missed merge conflict
2019-08-20 00:17:28 -06:00
meejah
68e408118b
WIP: test the status pages (download is weird still; requests problem?)
2019-08-20 00:17:28 -06:00
meejah
5db3909478
actual str-ports string
2019-08-20 00:17:28 -06:00
meejah
2a39ae91a6
parse capability properly instead of using string-compares
2019-08-20 00:17:28 -06:00
meejah
30100c8165
unicode
2019-08-20 00:17:28 -06:00
meejah
947c4c2691
Instead of abusing the process transport, introduce a new object
2019-08-20 00:17:28 -06:00
meejah
415ab63813
centralize 'wait for ready'
2019-08-20 00:17:28 -06:00
meejah
191087ef0a
cleanup
2019-08-20 00:17:28 -06:00
meejah
473a935aab
confirm /operations function
2019-08-20 00:17:28 -06:00
meejah
9d4ba78302
more web tests; directory creation etc
2019-08-20 00:17:28 -06:00
meejah
9aca93f6ff
clean up tests
2019-08-20 00:17:28 -06:00
meejah
4feba8d7f9
add a --helper command-line option, and a helper-using test
2019-08-20 00:17:28 -06:00
meejah
47e177be68
import
2019-08-20 00:17:28 -06:00
meejah
90bb4cf587
test index json
2019-08-20 00:17:28 -06:00
meejah
7244f3516d
Merge pull request #641 from meejah/integration-test-wait-for-ready
...
Better method of "waiting for readiness" in integration tests
2019-08-13 18:14:19 +00:00
meejah
f1be3e12df
get rid of sleep() we don't need
2019-08-13 10:41:14 -06:00
meejah
643b26978f
unused import
2019-08-13 10:37:02 -06:00
meejah
7225cfb18f
continue waiting for storage-servers under more error-conditions
2019-08-13 10:33:56 -06:00
meejah
4dc7f9637e
naming
2019-08-10 20:00:04 -06:00
meejah
926fa77ccb
naming for tor-introducer fixture
2019-08-10 13:53:09 -06:00
meejah
84a320db34
more client awaiting
2019-08-08 21:39:53 -06:00
meejah
68036dd773
save a second if we're already ready
2019-08-08 21:03:40 -06:00
meejah
ff23ad1b89
spelling
2019-08-08 21:03:40 -06:00
meejah
425d16e39d
get rid of time.sleep usage for 'readiness'
2019-08-08 21:03:39 -06:00
meejah
9b3d37e03e
ValueError not RuntimeError
2019-08-08 21:02:51 -06:00
meejah
e7c387a7fc
Instead of abusing the process transport, introduce a new object
2019-08-08 21:02:50 -06:00
meejah
731c58754f
re-word docs/args
2019-08-08 21:02:44 -06:00
meejah
d939ed5042
move response-check to function
2019-08-08 21:02:44 -06:00
meejah
7738f9f4e3
add test_put and refactor a little
2019-08-08 21:02:44 -06:00
meejah
eb0a582d1c
add a --helper command-line option to 'tahoe create-node'
2019-08-08 17:41:57 -06:00
meejah
1af4593e16
some simple web integration tests
2019-08-08 12:41:27 -06:00
meejah
ba5f44354b
Merge pull request #636 from meejah/integration-test-coverage
...
coverage for integration tests
2019-08-08 18:40:29 +00:00
meejah
0227b0945e
refactor; use _tahoe_runner_optional_coverage
2019-08-08 09:53:57 -06:00
meejah
97e130aa25
refactor; use _tahoe_runner_optional_coverage
2019-08-08 09:52:00 -06:00
meejah
025b89855f
refactor so we only check coverage in one place
2019-08-07 14:03:16 -06:00
meejah
8e4b05214a
add --coverage for integration tests
2019-08-06 16:47:43 -06:00
Jean-Paul Calderone
cd0ec043a8
Rely on the PATH now being passed down to find git
2019-08-02 16:50:21 -06:00
Jean-Paul Calderone
7f1673596f
Pass the whole parent environment down to the child
...
You never know what is in here that is totally essential to the operation of
some random thing. :(
2019-08-02 16:49:50 -06:00
Jean-Paul Calderone
988c3c6c16
Made sudo optional
2019-04-06 09:14:41 -04:00
Jean-Paul Calderone
1c5b284a3b
Attempt to support more distros
2019-04-04 15:50:24 -04:00
Jean-Paul Calderone
4f4ff3ff3c
Good practice for scripts
2019-04-04 13:52:09 -04:00
heartsucker
dbfcf8ae00
replaced StringIO imports with six.moves
2019-03-28 12:31:37 +01:00
Jean-Paul Calderone
670182c32a
Force a log event so the test completes.
2019-03-24 13:28:08 -04:00
Jean-Paul Calderone
f2ddb27ee0
trivial debug print
2019-03-22 14:16:50 -04:00
Jean-Paul Calderone
9de97dbdd5
Use guard and add some tests (integration failing)
2019-03-22 13:47:32 -04:00
Jean-Paul Calderone
8814261e18
Note a possible better solution and my own laziness
...
Actually, I'm sick, give me a break.
2019-03-18 19:20:12 -04:00
Jean-Paul Calderone
420000bfdb
Account for state from other tests
2019-03-18 19:19:57 -04:00
Jean-Paul Calderone
262485bd14
add a test for the conflict behavior
2019-03-18 16:35:42 -04:00
Jean-Paul Calderone
9bc00c4f76
add a couple more helpers
2019-03-18 16:35:35 -04:00
Jean-Paul Calderone
a44c5d0f11
respect the timeout
2019-03-18 16:35:31 -04:00
Jean-Paul Calderone
c42e5b10c6
Take the necessary fixtures
2019-03-07 12:38:38 -05:00
Jean-Paul Calderone
9e4fa3972e
Assert against the correct path
...
magic_folder contains the magic folder paths, of course.
The Tahoe-LAFS node directories are below the temp_dir.
2019-03-04 10:35:34 -05:00
Jean-Paul Calderone
1121cdd527
The logs should be written
2019-03-04 09:43:46 -05:00
Jean-Paul Calderone
432aaa2904
Do some Eliot logging in the integration test suite
2019-02-27 09:12:00 -05:00
Jean-Paul Calderone
29503c5648
Get all the nodes to turn on Eliot logging.
2019-02-27 09:11:47 -05:00
Jean-Paul Calderone
6f7e1250e8
Merge pull request #549 from tahoe-lafs/2971.super-argument-order
...
Fix super() argument order
Fixes: ticket:2971
2019-02-18 09:53:05 -05:00
Jean-Paul Calderone
4611e38b01
Merge pull request #548 from tahoe-lafs/2970.keep-tempdir
...
Document --keep-tempdir correctly
Fixes: ticket:2970
2019-02-18 09:51:42 -05:00
Jean-Paul Calderone
6d948b68cf
The fix
2019-02-15 13:58:02 -05:00
Jean-Paul Calderone
f5b7058efe
Allow an error exit status from flogtool dump
...
If the flog is truncated, parsing it will fail and flogtool will exit with an
error. There's no particular reason to allow this to fail a test.
2019-02-15 13:46:25 -05:00
Jean-Paul Calderone
9a77f1d2e9
This default is also not necessary.
2019-02-15 13:37:42 -05:00
Jean-Paul Calderone
7226fedd9c
Avoid having this line crammed onto the end of a line of pytest output
2019-02-15 13:37:27 -05:00
Jean-Paul Calderone
845e1e7a4a
There is no need for a default. There is always a value.
2019-02-15 13:24:23 -05:00
Jean-Paul Calderone
2c994b4417
Document the usage correctly
2019-02-15 13:24:17 -05:00
Jean-Paul Calderone
e511adbf63
Use the new cleanup helper for process cleanup
...
This removes some repetition of logic and switches to a more aggressive
cleanup approach.
2019-02-15 12:41:45 -05:00
Jean-Paul Calderone
cec31e6e5a
add a helper for vigorously cleaning up processes
2019-02-15 12:39:30 -05:00
Jean-Paul Calderone
19e03bbff0
pyflakes cleanups
2019-02-15 11:50:14 -05:00
Jean-Paul Calderone
f905d80760
switch to pytest_twisted
2019-02-05 11:03:35 -05:00