]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/log
tahoe-lafs/tahoe-lafs.git
9 years agoremove debugging print statements
David Stainton [Wed, 29 Jul 2015 00:52:27 +0000 (17:52 -0700)]
remove debugging print statements

9 years agoFix alice bob test
David Stainton [Wed, 29 Jul 2015 00:46:46 +0000 (17:46 -0700)]
Fix alice bob test

9 years agoTeach downloader to stop when told to stop
David Stainton [Wed, 29 Jul 2015 00:02:51 +0000 (17:02 -0700)]
Teach downloader to stop when told to stop

9 years agoAdd logic to only add object to download queue when appropriate
David Stainton [Tue, 28 Jul 2015 18:09:35 +0000 (11:09 -0700)]
Add logic to only add object to download queue when appropriate

9 years agowip
David Stainton [Tue, 28 Jul 2015 00:00:39 +0000 (17:00 -0700)]
wip

9 years agoTry to fix some tests - WIP.
Daira Hopwood [Mon, 27 Jul 2015 16:51:40 +0000 (17:51 +0100)]
Try to fix some tests - WIP.

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
9 years agoRename and refactor path variables to be more consistent.
Daira Hopwood [Mon, 27 Jul 2015 16:51:25 +0000 (17:51 +0100)]
Rename and refactor path variables to be more consistent.

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
9 years agoWIP - fix some bugs
David Stainton [Fri, 24 Jul 2015 22:12:57 +0000 (15:12 -0700)]
WIP - fix some bugs

9 years agoRefactor MagicFolder into Uploader and Downloader classes (WIP). refs ticket:2477
Daira Hopwood [Thu, 23 Jul 2015 23:27:26 +0000 (00:27 +0100)]
Refactor MagicFolder into Uploader and Downloader classes (WIP). refs ticket:2477

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
9 years agoSimplify and document the type of MagicFolder._download_scan_batch. 1710.test-alice-and-bob.3
Daira Hopwood [Thu, 23 Jul 2015 22:15:24 +0000 (23:15 +0100)]
Simplify and document the type of MagicFolder._download_scan_batch.

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
9 years agoRemove redundant call to abspath_expanduser_unicode.
Daira Hopwood [Thu, 23 Jul 2015 21:53:16 +0000 (22:53 +0100)]
Remove redundant call to abspath_expanduser_unicode.

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
9 years agoReduce code duplication and make sure errors from delegate commands are output.
Daira Hopwood [Mon, 20 Jul 2015 22:46:03 +0000 (23:46 +0100)]
Reduce code duplication and make sure errors from delegate commands are output.

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
9 years agoChange INVITE_SEPARATOR to '+'.
Daira Hopwood [Mon, 20 Jul 2015 22:03:02 +0000 (23:03 +0100)]
Change INVITE_SEPARATOR to '+'.

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
9 years agoRename MagicFolderCLITestMixin to MagicFolderTestMixin.
Daira Hopwood [Mon, 20 Jul 2015 22:01:44 +0000 (23:01 +0100)]
Rename MagicFolderCLITestMixin to MagicFolderTestMixin.

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
9 years agoFix tests.
Daira Hopwood [Mon, 20 Jul 2015 17:13:08 +0000 (18:13 +0100)]
Fix tests.

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
9 years agoAdd checks (that currently fail) for version in local db.
Daira Hopwood [Mon, 20 Jul 2015 16:31:39 +0000 (17:31 +0100)]
Add checks (that currently fail) for version in local db.

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
9 years agoUse relative paths in magic folder db.
Daira Hopwood [Mon, 20 Jul 2015 16:30:56 +0000 (17:30 +0100)]
Use relative paths in magic folder db.

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
9 years agoWIP
Daira Hopwood [Mon, 20 Jul 2015 16:27:57 +0000 (17:27 +0100)]
WIP

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
9 years agoFix some pyflakes errors and warnings.
Daira Hopwood [Thu, 16 Jul 2015 17:41:44 +0000 (18:41 +0100)]
Fix some pyflakes errors and warnings.

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
9 years agoRepair backupdb.
Daira Hopwood [Thu, 16 Jul 2015 16:55:02 +0000 (17:55 +0100)]
Repair backupdb.

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
9 years agofix bug in test_errors and add test
David Stainton [Wed, 15 Jul 2015 23:54:26 +0000 (16:54 -0700)]
fix bug in test_errors and add test

- test that we report the correct error when
a write cap is passed as a collective dircap

9 years agoadd kw arg to _get_count for tests
David Stainton [Wed, 15 Jul 2015 23:16:33 +0000 (16:16 -0700)]
add kw arg to _get_count for tests

9 years agomake test_magic_folder use non-ascii chars in nickname
David Stainton [Wed, 15 Jul 2015 22:43:53 +0000 (15:43 -0700)]
make test_magic_folder use non-ascii chars in nickname

9 years agoMake alice bob test use non-ascii chars in nicknames
David Stainton [Wed, 15 Jul 2015 22:37:40 +0000 (15:37 -0700)]
Make alice bob test use non-ascii chars in nicknames

9 years agoadd comments and blank lines to make setup_alice_and_bob more readable
David Stainton [Wed, 15 Jul 2015 22:33:33 +0000 (15:33 -0700)]
add comments and blank lines to make setup_alice_and_bob more readable

9 years agorename to do_invite and do_join for tests
David Stainton [Wed, 15 Jul 2015 22:29:52 +0000 (15:29 -0700)]
rename to do_invite and do_join for tests

9 years agorename to do_create_magic_folder for tests
David Stainton [Wed, 15 Jul 2015 22:23:09 +0000 (15:23 -0700)]
rename to do_create_magic_folder for tests

9 years agorevert previous additional blank line
David Stainton [Wed, 15 Jul 2015 22:16:52 +0000 (15:16 -0700)]
revert previous additional blank line

9 years agowrap long import line
David Stainton [Wed, 15 Jul 2015 22:15:33 +0000 (15:15 -0700)]
wrap long import line

9 years agowrap long line and spell magic folder without hyphen
David Stainton [Wed, 15 Jul 2015 22:14:18 +0000 (15:14 -0700)]
wrap long line and spell magic folder without hyphen

9 years agoSpell magic folder without the hyphen
David Stainton [Wed, 15 Jul 2015 22:11:26 +0000 (15:11 -0700)]
Spell magic folder without the hyphen

9 years agowrap long line
David Stainton [Wed, 15 Jul 2015 22:09:40 +0000 (15:09 -0700)]
wrap long line

9 years agoreplace bare asserts with usage error message
David Stainton [Wed, 15 Jul 2015 22:07:24 +0000 (15:07 -0700)]
replace bare asserts with usage error message

9 years agoget rid of another diminish hack and force alias args to end with ':'
David Stainton [Wed, 15 Jul 2015 21:22:15 +0000 (14:22 -0700)]
get rid of another diminish hack and force alias args to end with ':'

9 years agoget rid of terrible diminish cap hack
David Stainton [Wed, 15 Jul 2015 20:57:58 +0000 (13:57 -0700)]
get rid of terrible diminish cap hack

9 years agominor corrections
David Stainton [Wed, 15 Jul 2015 19:35:10 +0000 (12:35 -0700)]
minor corrections

9 years agoslightly better error message
David Stainton [Wed, 15 Jul 2015 19:32:53 +0000 (12:32 -0700)]
slightly better error message

9 years agochange spelling module variable INVITE_SEPARATOR
David Stainton [Wed, 15 Jul 2015 19:30:05 +0000 (12:30 -0700)]
change spelling module variable INVITE_SEPARATOR

9 years agodon't double increment version
David Stainton [Wed, 15 Jul 2015 19:24:00 +0000 (12:24 -0700)]
don't double increment version

9 years agostart with version 0
David Stainton [Wed, 15 Jul 2015 19:21:54 +0000 (12:21 -0700)]
start with version 0

9 years agosimplify _db_file_is_uploaded
David Stainton [Wed, 15 Jul 2015 19:19:08 +0000 (12:19 -0700)]
simplify _db_file_is_uploaded

9 years agobetter handle download failures
David Stainton [Wed, 15 Jul 2015 19:18:05 +0000 (12:18 -0700)]
better handle download failures

9 years agoremove superfluous plus sign
David Stainton [Wed, 15 Jul 2015 19:15:25 +0000 (12:15 -0700)]
remove superfluous plus sign

9 years agofix remote scan procedure
David Stainton [Wed, 15 Jul 2015 19:14:12 +0000 (12:14 -0700)]
fix remote scan procedure

9 years agoreplace calls to filter with list comprehension
David Stainton [Tue, 14 Jul 2015 23:43:49 +0000 (16:43 -0700)]
replace calls to filter with list comprehension

9 years agosimplify _should_download helper method
David Stainton [Tue, 14 Jul 2015 23:41:16 +0000 (16:41 -0700)]
simplify _should_download helper method

9 years agorename ignore count to upload ignore count
David Stainton [Tue, 14 Jul 2015 23:39:26 +0000 (16:39 -0700)]
rename ignore count to upload ignore count

9 years agoremove superfluous constructor which the parent class already has
David Stainton [Tue, 14 Jul 2015 23:36:11 +0000 (16:36 -0700)]
remove superfluous constructor which the parent class already has

9 years agoMake backupdb schema evolution more visible
David Stainton [Tue, 14 Jul 2015 23:34:27 +0000 (16:34 -0700)]
Make backupdb schema evolution more visible

9 years agoalice bob test alice rewrite file
David Stainton [Tue, 14 Jul 2015 21:54:09 +0000 (14:54 -0700)]
alice bob test alice rewrite file

9 years agounlink old version of file from remote tahoe upload dirnode
David Stainton [Tue, 14 Jul 2015 20:29:17 +0000 (13:29 -0700)]
unlink old version of file from remote tahoe upload dirnode

9 years agofor local fs scan compare local version with remote
David Stainton [Tue, 14 Jul 2015 10:58:35 +0000 (03:58 -0700)]
for local fs scan compare local version with remote

9 years agoFix test_errors to check for exception message associated with
David Stainton [Mon, 13 Jul 2015 19:59:31 +0000 (12:59 -0700)]
Fix test_errors to check for exception message associated with
an invalid collective dircap.

9 years agoRemove workaround for collective_dircap and repair some tests.
Daira Hopwood [Mon, 13 Jul 2015 17:08:45 +0000 (18:08 +0100)]
Remove workaround for collective_dircap and repair some tests.

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
9 years agoEliminate near-duplicate code in CLITestMixin.
Daira Hopwood [Mon, 13 Jul 2015 17:07:52 +0000 (18:07 +0100)]
Eliminate near-duplicate code in CLITestMixin.

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
9 years agoFix test_create_magic_folder_service (was test_create_magic_folder).
Daira Hopwood [Mon, 20 Jul 2015 23:48:00 +0000 (00:48 +0100)]
Fix test_create_magic_folder_service (was test_create_magic_folder).

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
9 years agoAdd missing Deferred creation.
Daira Hopwood [Thu, 9 Jul 2015 22:40:05 +0000 (23:40 +0100)]
Add missing Deferred creation.

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
9 years agofix references to notifier
David Stainton [Wed, 8 Jul 2015 20:13:49 +0000 (13:13 -0700)]
fix references to notifier

9 years agovarious pyflakes fixes
David Stainton [Wed, 8 Jul 2015 17:09:15 +0000 (10:09 -0700)]
various pyflakes fixes

9 years agoAdd ready method to MockMagicFolder to partially fix a test.
Daira Hopwood [Mon, 20 Jul 2015 23:29:14 +0000 (00:29 +0100)]
Add ready method to MockMagicFolder to partially fix a test.

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
9 years agoFixes to Magic Folder client initialization.
Daira Hopwood [Mon, 6 Jul 2015 23:34:17 +0000 (00:34 +0100)]
Fixes to Magic Folder client initialization.

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
9 years agoremove some superfluous print statements
David Stainton [Mon, 6 Jul 2015 20:11:18 +0000 (13:11 -0700)]
remove some superfluous print statements

9 years agoFix Alice Bob mock test
David Stainton [Mon, 6 Jul 2015 20:10:20 +0000 (13:10 -0700)]
Fix Alice Bob mock test

9 years agofix test_persistence
David Stainton [Fri, 3 Jul 2015 02:52:21 +0000 (19:52 -0700)]
fix test_persistence

9 years agofix some tests
David Stainton [Fri, 3 Jul 2015 01:14:24 +0000 (18:14 -0700)]
fix some tests

9 years agoFix version deletion propagation and test
David Stainton [Thu, 2 Jul 2015 22:50:49 +0000 (15:50 -0700)]
Fix version deletion propagation and test

9 years agoAdd version to magic folder db schema
David Stainton [Thu, 2 Jul 2015 18:49:13 +0000 (11:49 -0700)]
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

9 years agoAdd rough naive downloader + remote scan
David Stainton [Thu, 2 Jul 2015 04:11:05 +0000 (21:11 -0700)]
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

9 years agoRename deque to upload deque
David Stainton [Wed, 1 Jul 2015 18:01:55 +0000 (11:01 -0700)]
Rename deque to upload deque

here we also rename the pending deque set
to pending upload deque..

9 years agoadd partial remote scan implementation
David Stainton [Wed, 1 Jul 2015 02:38:19 +0000 (19:38 -0700)]
add partial remote scan implementation

9 years agoAdd magic-folder download callback
David Stainton [Wed, 1 Jul 2015 00:33:37 +0000 (17:33 -0700)]
Add magic-folder download callback

9 years agoAdd test for Bob download callback
David Stainton [Tue, 30 Jun 2015 23:03:28 +0000 (16:03 -0700)]
Add test for Bob download callback

9 years agoTeach Alice to upload file for Alice+Bob test
David Stainton [Tue, 30 Jun 2015 21:58:20 +0000 (14:58 -0700)]
Teach Alice to upload file for Alice+Bob test

note: this is not yet working for the mock test; the real
test passes.

9 years agoteach setup_alice_and_bob to return results in deferred
David Stainton [Tue, 30 Jun 2015 01:08:53 +0000 (18:08 -0700)]
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.

9 years agoAdd cleanup to Alice+Bob test + bug fix
David Stainton [Mon, 29 Jun 2015 23:23:18 +0000 (16:23 -0700)]
Add cleanup to Alice+Bob test + bug fix

bug fix == don't clobber the alice bob magicfolder instances

9 years agofix the rest of the unit tests
David Stainton [Mon, 29 Jun 2015 22:38:07 +0000 (15:38 -0700)]
fix the rest of the unit tests

9 years agoFix magic-folder cli tests
David Stainton [Mon, 29 Jun 2015 20:47:38 +0000 (13:47 -0700)]
Fix magic-folder cli tests

9 years agoAdd helper to setup Alice and Bob magic-folders
David Stainton [Sat, 27 Jun 2015 02:47:17 +0000 (19:47 -0700)]
Add helper to setup Alice and Bob magic-folders

this will help us write unit tests with multiple writers
to the magic-folder...

9 years agoAdd test to list remote collective dir
David Stainton [Fri, 26 Jun 2015 19:14:14 +0000 (12:14 -0700)]
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.

9 years agoRemove/clean code duplication for CLI unit tests
David Stainton [Thu, 25 Jun 2015 21:27:14 +0000 (14:27 -0700)]
Remove/clean code duplication for CLI unit tests

9 years agoFix magic-folder Persistence test
David Stainton [Wed, 24 Jun 2015 23:45:01 +0000 (16:45 -0700)]
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.

9 years agoTeach magic-folder tests to use CLI for creating magic folder config
David Stainton [Wed, 24 Jun 2015 21:22:34 +0000 (14:22 -0700)]
Teach magic-folder tests to use CLI for creating magic folder config

9 years agominor corrections to use of deferred from last commit
David Stainton [Wed, 24 Jun 2015 19:50:36 +0000 (12:50 -0700)]
minor corrections to use of deferred from last commit

9 years agoTeach magic-folder cli tests to test join results
David Stainton [Tue, 23 Jun 2015 23:57:51 +0000 (16:57 -0700)]
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

9 years agoChange return values to constants either 0 or -1
David Stainton [Tue, 23 Jun 2015 21:16:21 +0000 (14:16 -0700)]
Change return values to constants either 0 or -1

9 years agoTest return vals and fix join return val
David Stainton [Tue, 23 Jun 2015 21:00:22 +0000 (14:00 -0700)]
Test return vals and fix join return val

9 years agoTest that join adds tahoe config options
David Stainton [Tue, 23 Jun 2015 19:34:18 +0000 (12:34 -0700)]
Test that join adds tahoe config options

9 years agoClean up join tahoe config append
David Stainton [Tue, 23 Jun 2015 18:32:47 +0000 (11:32 -0700)]
Clean up join tahoe config append

9 years agoAdd complete usage functionality to create
David Stainton [Tue, 23 Jun 2015 09:19:45 +0000 (02:19 -0700)]
Add complete usage functionality to create

9 years agoAppend magic-folder config options to tahoe.cfg
David Stainton [Tue, 23 Jun 2015 08:01:48 +0000 (01:01 -0700)]
Append magic-folder config options to tahoe.cfg

9 years agoImplement most of the join command
David Stainton [Tue, 23 Jun 2015 06:29:02 +0000 (23:29 -0700)]
Implement most of the join command

9 years agoFinish writing the invite implementation
David Stainton [Tue, 23 Jun 2015 03:40:55 +0000 (20:40 -0700)]
Finish writing the invite implementation

9 years agoFix options passed to mkdir from magic invite
David Stainton [Mon, 22 Jun 2015 22:09:57 +0000 (15:09 -0700)]
Fix options passed to mkdir from magic invite

- here we also clean up the magic folder cli unit tests

9 years agoSleepy time WIP almost got invite's mkdir working...
David Stainton [Fri, 19 Jun 2015 09:50:49 +0000 (02:50 -0700)]
Sleepy time WIP almost got invite's mkdir working...

9 years agoDerive our own node-url, fixes magic-folder create test
David Stainton [Fri, 19 Jun 2015 06:01:55 +0000 (23:01 -0700)]
Derive our own node-url, fixes magic-folder create test

9 years agoAdd rough create command - test FAILS still however
David Stainton [Thu, 18 Jun 2015 19:29:01 +0000 (12:29 -0700)]
Add rough create command - test FAILS still however

9 years agoAdd basic test for magic-folder create command
David Stainton [Thu, 18 Jun 2015 18:38:51 +0000 (11:38 -0700)]
Add basic test for magic-folder create command

9 years agoAdd boiler plate for magic-folder subcommand
David Stainton [Thu, 18 Jun 2015 17:50:47 +0000 (10:50 -0700)]
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

9 years agoUse Daira's fix to unblock CLI progress
David Stainton [Thu, 18 Jun 2015 17:31:28 +0000 (10:31 -0700)]
Use Daira's fix to unblock CLI progress

9 years agoWIP
David Stainton [Fri, 12 Jun 2015 08:42:02 +0000 (01:42 -0700)]
WIP