Commit Graph

6256 Commits

Author SHA1 Message Date
David Stainton
c7e0fc52e3 revert previous additional blank line 2015-07-21 00:48:11 +01:00
David Stainton
12fc5e6161 wrap long import line 2015-07-21 00:48:11 +01:00
David Stainton
3b6f51abdc wrap long line and spell magic folder without hyphen 2015-07-21 00:48:11 +01:00
David Stainton
3612ca0504 Spell magic folder without the hyphen 2015-07-21 00:48:10 +01:00
David Stainton
847e8e99e9 wrap long line 2015-07-21 00:48:10 +01:00
David Stainton
48a8dfde4a replace bare asserts with usage error message 2015-07-21 00:48:10 +01:00
David Stainton
a7f22dff67 get rid of another diminish hack and force alias args to end with ':' 2015-07-21 00:48:10 +01:00
David Stainton
888089a689 get rid of terrible diminish cap hack 2015-07-21 00:48:10 +01:00
David Stainton
4e8d8e076a minor corrections 2015-07-21 00:48:10 +01:00
David Stainton
bec31e9810 slightly better error message 2015-07-21 00:48:10 +01:00
David Stainton
ccef5c4c44 change spelling module variable INVITE_SEPARATOR 2015-07-21 00:48:10 +01:00
David Stainton
f6567d4833 don't double increment version 2015-07-21 00:48:10 +01:00
David Stainton
d7d429deb3 start with version 0 2015-07-21 00:48:10 +01:00
David Stainton
3ea5031261 simplify _db_file_is_uploaded 2015-07-21 00:48:10 +01:00
David Stainton
0118c5105b better handle download failures 2015-07-21 00:48:10 +01:00
David Stainton
88155f466c remove superfluous plus sign 2015-07-21 00:48:10 +01:00
David Stainton
2d1e05ed4d fix remote scan procedure 2015-07-21 00:48:10 +01:00
David Stainton
f0cddcb8da replace calls to filter with list comprehension 2015-07-21 00:48:10 +01:00
David Stainton
3e571fc4cf simplify _should_download helper method 2015-07-21 00:48:10 +01:00
David Stainton
606b2aa029 rename ignore count to upload ignore count 2015-07-21 00:48:10 +01:00
David Stainton
11b218f8e5 remove superfluous constructor which the parent class already has 2015-07-21 00:48:10 +01:00
David Stainton
3f80101f68 Make backupdb schema evolution more visible 2015-07-21 00:48:10 +01:00
David Stainton
b82f66de07 alice bob test alice rewrite file 2015-07-21 00:48:10 +01:00
David Stainton
bdffc3c484 unlink old version of file from remote tahoe upload dirnode 2015-07-21 00:48:10 +01:00
David Stainton
21da540e5e for local fs scan compare local version with remote 2015-07-21 00:48:10 +01:00
David Stainton
3fb841adc4 Fix test_errors to check for exception message associated with
an invalid collective dircap.
2015-07-21 00:48:10 +01:00
Daira Hopwood
38a6d60f1a Remove workaround for collective_dircap and repair some tests.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2015-07-21 00:48:10 +01:00
Daira Hopwood
e61130395d Eliminate near-duplicate code in CLITestMixin.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2015-07-21 00:48:10 +01:00
Daira Hopwood
8f3fe4dffe Fix test_create_magic_folder_service (was test_create_magic_folder).
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2015-07-21 00:48:00 +01:00
Daira Hopwood
51f0c4de69 Add missing Deferred creation.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2015-07-21 00:42:35 +01:00
David Stainton
4b049fca56 fix references to notifier 2015-07-21 00:42:35 +01:00
David Stainton
4e714179f9 various pyflakes fixes 2015-07-21 00:42:35 +01:00
Daira Hopwood
7ee8ab4ac7 Add ready method to MockMagicFolder to partially fix a test.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2015-07-21 00:42:35 +01:00
Daira Hopwood
32cad77b95 Fixes to Magic Folder client initialization.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2015-07-21 00:42:35 +01:00
David Stainton
31d6430d10 remove some superfluous print statements 2015-07-21 00:42:35 +01:00
David Stainton
8cefb7a680 Fix Alice Bob mock test 2015-07-21 00:42:35 +01:00
David Stainton
4a798883be fix test_persistence 2015-07-21 00:42:35 +01:00
David Stainton
24d71f2f01 fix some tests 2015-07-21 00:42:35 +01:00
David Stainton
8a5c01cdab Fix version deletion propagation and test 2015-07-21 00:42:35 +01:00
David Stainton
5fe1e13120 Add version to magic folder db schema
- also update handling file addition and deletion events
to utilize local and remote version numbers in the uploader...

^ untested so far althought he basic Alice + Bob test continues to pass
2015-07-21 00:42:35 +01:00
David Stainton
bdb4527d85 Add rough naive downloader + remote scan
- makes the basic naive Alice + Bob unit test pass
-  `_should_download` is currently a stub function and
should be implemented
- handling of local+remote file versions is currently faked...
and should be implemented
2015-07-21 00:42:35 +01:00
David Stainton
5d154d2b7a Rename deque to upload deque
here we also rename the pending deque set
to pending upload deque..
2015-07-21 00:42:35 +01:00
David Stainton
239a8653af add partial remote scan implementation 2015-07-21 00:42:35 +01:00
David Stainton
10264dd988 Add magic-folder download callback 2015-07-21 00:42:35 +01:00
David Stainton
4db3adbbd1 Add test for Bob download callback 2015-07-21 00:42:35 +01:00
David Stainton
d1d43d72da Teach Alice to upload file for Alice+Bob test
note: this is not yet working for the mock test; the real
test passes.
2015-07-21 00:42:34 +01:00
David Stainton
df1c93629d teach setup_alice_and_bob to return results in deferred
- however it is terrible that i was unable to set local vars in the callbacks
so i had to use object attributes instead.
2015-07-21 00:42:34 +01:00
David Stainton
a5c0907580 Add cleanup to Alice+Bob test + bug fix
bug fix == don't clobber the alice bob magicfolder instances
2015-07-21 00:42:34 +01:00
David Stainton
a76d3546bc fix the rest of the unit tests 2015-07-21 00:42:34 +01:00
David Stainton
6490bc838b Fix magic-folder cli tests 2015-07-21 00:42:34 +01:00