use strict;
use warnings;
-use Test::More tests => 2;
+use Test::More tests => 5;
use Data::Dump qw(dump);
use lib 'lib';
use_ok 'CloudStore::Gearman';
-ok my $o = CloudStore::Gearman->gearman_do( 'narada_s1_quota_get' => 2001 );
+my $hostname = `hostname -s`;
+chomp $hostname;
+
+my $user = $ARGV[0] || 2001;
+
+ok my $o = CloudStore::Gearman->gearman_do( $hostname . '_s1_quota_get' => $user ), 'quota_get';
diag dump $o;
+cmp_ok $o, '=~', qr/^(\d+)\s+(\d+)$/, 'format: used quota';
+ok $o = CloudStore::Gearman->gearman_do( 'user_usage' => $user ), 'user_usage';
+diag dump $o;
+
+ok $o = CloudStore::Gearman->gearman_do( $hostname . '_s1_torrent_list' ), 'torrent_list';
+diag dump $o;