Daira Hopwood
|
e4082a45d3
|
Add counter for uploader.objects_not_uploaded.
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 |
|
meejah
|
946656b249
|
smoketest for magic-folder functionality
|
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
|
567668eb8c
|
Fix infinite loop in should_ignore_path for absolute paths.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
|
2016-07-21 12:35:59 -07:00 |
|
Daira Hopwood
|
5d5d804719
|
More debug logging.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
|
2016-07-21 12:35:59 -07:00 |
|
Daira Hopwood
|
57753a62bc
|
Unicode fix for do_join.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
|
2016-07-21 12:35:59 -07:00 |
|
Daira Hopwood
|
7d2f30643e
|
Minor cleanups to tests.
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
|
b56c3e06e4
|
Cosmetics.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
|
2016-07-21 12:35:59 -07:00 |
|
Daira Hopwood
|
2a7bb6f444
|
Eliminate duplicate parsing of invite code.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
|
2016-07-21 12:35:59 -07:00 |
|
Daira Hopwood
|
c28594268e
|
Remaining test fixes.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
|
2016-07-21 12:35:59 -07:00 |
|
Daira Hopwood
|
a5874070e3
|
Make sure that do_cli is only called with strs, and avoid unnecessary use of attributes in tests.
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
|
643a105991
|
URIs are strs.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
|
2016-07-21 12:35:59 -07:00 |
|
Daira Hopwood
|
59eede8e88
|
Aliases and nicknames are Unicode.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
|
2016-07-21 12:35:59 -07:00 |
|
Daira Hopwood
|
bb596b017d
|
Fix call to argv_to_abspath. Also rename localdir to local_dir.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
|
2016-07-21 12:35:59 -07:00 |
|
David Stainton
|
b32b61e727
|
Fix magic-folder cli tests
convert path to abs path when matching
strings in the generated config file.
|
2016-07-21 12:35:59 -07:00 |
|
David Stainton
|
a1beef34a7
|
Attempt to fix cli tests
|
2016-07-21 12:35:59 -07:00 |
|
Daira Hopwood
|
b2d494837c
|
Better but still broken tests.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
|
2016-07-21 12:35:59 -07:00 |
|
Daira Hopwood
|
903c6f1d6c
|
Fix check for initial '-' in argv_to_abspath.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
|
2016-07-21 12:35:59 -07:00 |
|
David Stainton
|
0789d295a6
|
Fix tests by submitting unicode args instead of str
|
2016-07-21 12:35:59 -07:00 |
|
David Stainton
|
16275cb8f6
|
Teach magic-folder join to use argv_to_abspath
- also we modify argv_to_abspath to through a usage error
if the name starts with a '-'
- add a test
currently the tests fail
|
2016-07-21 12:35:59 -07:00 |
|
David Stainton
|
941f67f3b0
|
Use argv_to_abspath for magic-folder join file path arg
|
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
|
8184ed4414
|
Watch for IN_CREATE events but filter them out for non-directories.
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
|
cbec939d86
|
Implement creating local directories in downloader.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
|
2016-07-21 12:35:59 -07:00 |
|
Daira Hopwood
|
60ab5a057a
|
Decode names in the scanned remote.
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
|
6cb41cadf5
|
Simplify and fix non-existent-file handling.
Also make the existent and non-existent cases as similar as possible,
with a view to merging them.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
|
2016-07-21 12:35:59 -07:00 |
|
Daira Hopwood
|
cb905d8d97
|
Logging/debugging improvements.
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
|
ac5730ea1c
|
Correct a call to did_upload_version in the downloader.
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 |
|
Daira Hopwood
|
28587b5b2a
|
Restore a call to increment files_uploaded that was mistakenly removed.
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
|
615859acc1
|
Remove magic-folder db code from backupdb.py
|
2016-07-21 12:35:59 -07:00 |
|
David Stainton
|
e2cee9ba2a
|
WIP
|
2016-07-21 12:35:59 -07:00 |
|
David Stainton
|
bc6fcc2901
|
Include brief summary of magic-folder CLI commands
|
2016-07-21 12:35:59 -07:00 |
|
David Stainton
|
09414bb379
|
Add link to our cli design doc
|
2016-07-21 12:35:59 -07:00 |
|
David Stainton
|
ddded9a026
|
Mention gc is not part of the otf grant and link to the gc ticket
|
2016-07-21 12:35:59 -07:00 |
|
David Stainton
|
97a1322378
|
Remove old obsolete/inaccurate statements
|
2016-07-21 12:35:59 -07:00 |
|
David Stainton
|
3c50764486
|
Minor comment correction for get_all_relpaths
|
2016-07-21 12:35:59 -07:00 |
|