David Stainton
|
9483d24f67
|
Fix cleanup after test_periodic_full_scan.
|
2016-07-21 12:35:59 -07:00 |
|
David Stainton
|
2dabd8a10b
|
Work in progress on fixing test_periodic_full_scan.
|
2016-07-21 12:35:59 -07:00 |
|
David Stainton
|
5380ff8f5a
|
Clean up queue loging and add a clock advance in unit test
not yet working
|
2016-07-21 12:35:59 -07:00 |
|
David Stainton
|
e1822c0518
|
WIP
|
2016-07-21 12:35:59 -07:00 |
|
David Stainton
|
cf462d8b1f
|
Attempt to test periodic uploader full scan
|
2016-07-21 12:35:59 -07:00 |
|
David Stainton
|
cc721505e7
|
Add magic-folder test_scan_once_on_startup
|
2016-07-21 12:35:59 -07:00 |
|
David Stainton
|
68539e3fe0
|
Fix tests usage of umask
|
2016-07-21 12:35:59 -07:00 |
|
David Stainton
|
f2a7978b29
|
Add download.umask config option with default of 077
|
2016-07-21 12:35:59 -07:00 |
|
David Stainton
|
623ed3516e
|
Add umask to Downloader
|
2016-07-21 12:35:59 -07:00 |
|
David Stainton
|
79f3c5d81a
|
Remove magic-folder exclude stat
|
2016-07-21 12:35:59 -07:00 |
|
Daira Hopwood
|
6b4d3b8c6d
|
Refactor is_new_file.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
|
2016-07-21 12:35:59 -07:00 |
|
meejah
|
0aaabe0ebe
|
remove print
|
2016-07-21 12:35:59 -07:00 |
|
meejah
|
ed4e4d053e
|
Add a unit-test and correct the code for "already deleted"
If a Downloader decides that it needs to delete a file, but that
file is already gone locally, the exeption is caugt and a log message
produced.
|
2016-07-21 12:35:59 -07:00 |
|
David Stainton
|
49b5661347
|
Fix test: previously we accounted for the propagation of the conflict
because alice scaned her own dmd... whereas now she does not.
|
2016-07-21 12:35:59 -07:00 |
|
David Stainton
|
eab24d022b
|
Fix test helper _check_version_in_local_db
|
2016-07-21 12:35:59 -07:00 |
|
David Stainton
|
bca4c87e47
|
WIP
|
2016-07-21 12:35:59 -07:00 |
|
David Stainton
|
6eeab03b70
|
Create test for last upload uri conflict
|
2016-07-21 12:35:59 -07:00 |
|
Daira Hopwood
|
6402159106
|
Fix an unused import.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
|
2016-07-21 12:35:59 -07:00 |
|
Daira Hopwood
|
583066b364
|
Fix test_errors.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
|
2016-07-21 12:35:59 -07:00 |
|
Daira Hopwood
|
9646a3ce3e
|
Fix test_move_tree.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
|
2016-07-21 12:35:59 -07:00 |
|
Daira Hopwood
|
0c12162bc8
|
Debugging WIP.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
|
2016-07-21 12:35:59 -07:00 |
|
Daira Hopwood
|
a6842946ca
|
Fix a type error.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
|
2016-07-21 12:35:59 -07:00 |
|
Daira Hopwood
|
0e19636146
|
Flush handling WIP.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
|
2016-07-21 12:35:59 -07:00 |
|
Daira Hopwood
|
5e9792f8d7
|
Use fileutil.write for magic folder tests.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
|
2016-07-21 12:35:59 -07:00 |
|
Daira Hopwood
|
2a79252a72
|
Fix some path Unixisms.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
|
2016-07-21 12:35:59 -07:00 |
|
Daira Hopwood
|
45adc30ed6
|
Fix test_alice_bob.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
|
2016-07-21 12:35:59 -07:00 |
|
Daira Hopwood
|
e591c3aa81
|
Refactor _check_up/downloader_count.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
|
2016-07-21 12:35:59 -07:00 |
|
David Stainton
|
a043a31860
|
Add file conflict unit test
|
2016-07-21 12:35:59 -07:00 |
|
David Stainton
|
99d1339d38
|
Add basic bob upload test and fix conflict detect
|
2016-07-21 12:35:59 -07:00 |
|
David Stainton
|
ee3d9b19be
|
Fix bob's uploading test...
|
2016-07-21 12:35:59 -07:00 |
|
David Stainton
|
890e4622b9
|
Attempt to teach bob to upload a file
|
2016-07-21 12:35:59 -07:00 |
|
Daira Hopwood
|
f75dda7635
|
Avoid .format, since it is inconsistent between Python 2.6 and 2.7 (and the rest of Tahoe-LAFS doesn't use it).
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
|
2016-07-21 12:35:59 -07:00 |
|
Daira Hopwood
|
5a2b2e61c7
|
Fix test_alice_bob.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
|
2016-07-21 12:35:59 -07:00 |
|
Daira Hopwood
|
95e2961a2e
|
Advance Bob's clock after notifying.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
|
2016-07-21 12:35:59 -07:00 |
|
Daira Hopwood
|
6e5e8ddd80
|
test_alice_bob: use magic= argument to notify, rather than self.magicfolder.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
|
2016-07-21 12:35:59 -07:00 |
|
meejah
|
0d466ec1f9
|
add excluded check
|
2016-07-21 12:35:59 -07:00 |
|
meejah
|
c883977eb6
|
add the 'spurious' notifies
|
2016-07-21 12:35:59 -07:00 |
|
Daira Hopwood
|
c156581b73
|
Fix a pyflakes warning and check existence of file in Bob's local dir.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
|
2016-07-21 12:35:59 -07:00 |
|
meejah
|
d61b8ed39e
|
implement 'delete' functionality, with tests
|
2016-07-21 12:35:59 -07:00 |
|
Daira Hopwood
|
cec315da49
|
Add test that we don't write files outside the magic folder directory. refs ticket:2506
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
|
2016-07-21 12:35:59 -07:00 |
|
Daira Hopwood
|
f754938cc9
|
Ensure that errors from Alice-and-Bob tests are reported correctly if setup fails.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
|
2016-07-21 12:35:59 -07:00 |
|
Daira Hopwood
|
ed2d27e712
|
Cosmetics.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
|
2016-07-21 12:35:59 -07:00 |
|
Daira Hopwood
|
5f6783e382
|
Test creation of a subdirectory.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
|
2016-07-21 12:35:59 -07:00 |
|
Daira Hopwood
|
ee5245ed2c
|
Patch Downloader.REMOTE_SCAN_INTERVAL rather than setting it persistently.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
|
2016-07-21 12:35:59 -07:00 |
|
Daira Hopwood
|
a3fa1617c2
|
Refactoring to allow logging from _write_downloaded_file and _rename_conflicted_file.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
|
2016-07-21 12:35:59 -07:00 |
|
Daira Hopwood
|
fc3513d172
|
Refactor and fix race conditions in test_alice_bob.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
|
2016-07-21 12:35:59 -07:00 |
|
Daira Hopwood
|
8a6dae6d59
|
Make sure that test_move_tree waits until files have been uploaded as well as downloaded.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
|
2016-07-21 12:35:59 -07:00 |
|
David Stainton
|
2fcaa8c2b2
|
Teach uploader+downloader to use to db schema
here we attempt to fix all the unit tests as well...
however two tests still fail
|
2016-07-21 12:35:59 -07:00 |
|
Daira Hopwood
|
5754c01cb5
|
Add magicfolderdb.py.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
|
2016-07-21 12:35:59 -07:00 |
|
David Stainton
|
e2cee9ba2a
|
WIP
|
2016-07-21 12:35:59 -07:00 |
|