Minor cleanup

This commit is contained in:
Klaas Freitag 2014-04-01 16:14:12 +02:00
parent fa453296c9
commit cba160706a

View file

@ -42,10 +42,11 @@ print "Created share with id <$shareId>\n";
assert( $shareId > 0 );
my $sharee = { user => configValue('share_user'),
passwd => configValue('share_passwd'),
url => server() };
# put a couple of files into the shared directory in the sharer account
glob_put( 'sharing/*', $share_dir, { user => configValue('share_user'),
passwd => configValue('share_passwd'),
url => server() });
glob_put( 'sharing/*', $share_dir, $sharee);
# now user kf has a new directory in shared.
@ -54,11 +55,13 @@ printInfo("Initial sync, sync stuff down.");
csync( server()."Shared" );
assertLocalAndRemoteDir( 'Shared', 0, server() );
# Local file to a read/write share should be synced up
printInfo("Put a file into the share.");
createLocalFile( localDir(). $share_dir . "/foobar.txt", 8094 );
csync( server()."Shared" );
assertLocalAndRemoteDir( 'Shared', 0, server() );
printInfo("Remove a Share.");
removeShare($shareId, $share_dir);
cleanup();