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
David Stainton
9378c5f1d4
Add helper to setup Alice and Bob magic-folders
...
this will help us write unit tests with multiple writers
to the magic-folder...
2015-07-21 00:42:34 +01:00
David Stainton
378756d130
Add test to list remote collective dir
...
here you can see that i've avoided tampering with many of our
unit tests by making collective_dirnode conditional.
instead perhaps our unit tests should fail if collective_cap
is blank.
2015-07-21 00:42:34 +01:00
David Stainton
ea48edf682
Remove/clean code duplication for CLI unit tests
2015-07-21 00:42:34 +01:00
David Stainton
6046abbb39
Fix magic-folder Persistence test
...
here we teach this test to create invite join
a magic-folder using the CLI... and then we go
on to fix various bugs.
2015-07-21 00:42:34 +01:00
David Stainton
a2ed2965e3
Teach magic-folder tests to use CLI for creating magic folder config
2015-07-21 00:42:34 +01:00
David Stainton
a3d79bcd6d
minor corrections to use of deferred from last commit
2015-07-21 00:42:34 +01:00
David Stainton
035f7cf55d
Teach magic-folder cli tests to test join results
...
- test if the client's dmd's readonly cap is present in the collective
readonly cap
2015-07-21 00:42:34 +01:00
David Stainton
e8de9c3299
Change return values to constants either 0 or -1
2015-07-21 00:42:34 +01:00
David Stainton
868c658d05
Test return vals and fix join return val
2015-07-21 00:42:34 +01:00
David Stainton
d384d4edca
Test that join adds tahoe config options
2015-07-21 00:42:34 +01:00