use strict;
use warnings;
-use Test::More tests => 25;
+use Test::More tests => 26;
use Data::Dump qw(dump);
use lib 'lib';
use_ok 'CloudStore::API';
-$ENV{PORT}=6500;
-$ENV{SLICE}='/tmp/';
+ok my $o = CloudStore::API->new('s1'), 'new';
-ok my $o = CloudStore::API->new, 'new';
-
-cmp_ok $o->create_user('md5@example.com','md5sum',0), '==', 2000, 'create_user md5';
+cmp_ok $o->create_user('md5@example.com','md5sum',0), 'eq', 'u2000', 'create_user md5';
ok my $info = $o->user_info( 'md5' ), 'user_info';
diag dump $info;
usage $uid;
usage $uid2;
+ok $o->send_file( $uid2 => 'dir1/dir2/bar.txt', 2004 => 'bar.txt' ), 'send_file cross-slice';
+
ok $o->delete( $uid, 'foo.txt' );
usage $uid;