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
David Stainton
14603bce7c
Clean up join tahoe config append
2015-07-21 00:42:34 +01:00
David Stainton
1e710187c4
Add complete usage functionality to create
2015-07-21 00:42:34 +01:00
David Stainton
9deae9b587
Append magic-folder config options to tahoe.cfg
2015-07-21 00:42:34 +01:00
David Stainton
1223cd5610
Implement most of the join command
2015-07-21 00:42:34 +01:00
David Stainton
632e5e1db0
Finish writing the invite implementation
2015-07-21 00:42:34 +01:00
David Stainton
2e96671a48
Fix options passed to mkdir from magic invite
...
- here we also clean up the magic folder cli unit tests
2015-07-21 00:42:34 +01:00
David Stainton
bf34685ae0
Sleepy time WIP almost got invite's mkdir working...
2015-07-21 00:42:34 +01:00
David Stainton
331dd8bd9d
Derive our own node-url, fixes magic-folder create test
2015-07-21 00:42:34 +01:00
David Stainton
cf38deebf7
Add rough create command - test FAILS still however
2015-07-21 00:42:34 +01:00
David Stainton
646fc94cb2
Add basic test for magic-folder create command
2015-07-21 00:42:34 +01:00
David Stainton
8f3c04ab8c
Add boiler plate for magic-folder subcommand
...
here we also:
- add the synopsis for the create command
- add the argument parser for the create command
2015-07-21 00:42:34 +01:00
David Stainton
b448905b50
Use Daira's fix to unblock CLI progress
2015-07-21 00:42:34 +01:00
David Stainton
68fac1ca24
WIP
2015-07-21 00:42:34 +01:00
David Stainton
a845fe6da3
Change behavior upon finding missing files
...
- Fix test test_magic_folder
- Do not throw exception for missing files...
- Check for entry in magic folder db; only write tahoe metadata
deleted=true if magic folder db entry for file exists.
2015-07-21 00:42:34 +01:00
David Stainton
7c937eabe7
Add check_file_db_exists to backupdb api
...
- this backupdb utility function checks to if a file's entry
exists in the db but does not stat the file on disk or otherwise
talk to the filesystem
2015-07-21 00:42:34 +01:00
David Stainton
8b20399796
handle local file deletion events
2015-07-21 00:42:34 +01:00
Daira Hopwood
e68b09b081
Rename drop-upload to Magic Folder. fixes ticket:2405
...
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2015-07-21 00:42:15 +01:00
Daira Hopwood
3120499069
Remove a debug print.
...
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2015-07-21 00:20:56 +01:00
Daira Hopwood
567cabc195
Remove unused code.
...
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2015-07-21 00:20:56 +01:00
Daira Hopwood
d2950aaf62
Fix test errors.
...
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2015-07-21 00:20:56 +01:00
David Stainton
5a8503a730
Minor code cleanup
2015-07-21 00:20:56 +01:00
David Stainton
899d8f5742
Add private config magic_folder_parent_dircap
...
- this commit also updates the tests
2015-07-21 00:20:56 +01:00