DiskUsage probe for getting df output
[scpubgit/System-Introspector.git] / t / users.t
CommitLineData
a2598396 1use strictures 1;
2use Test::More;
3
4use System::Introspector::Users;
5
6my $probe = System::Introspector::Users->new;
7my $data = $probe->gather;
8
9ok((my $user = $data->{ $> }), 'found own user');
10ok(defined($user->{ $_ }), "$_ is defined")
11 for qw( comment crontab gid groups home shell ssh uid username );
12ok(not(exists $user->{crontab}{error}), 'no crontab error');
13ok(not(exists $user->{ssh}{keys}{error}), 'no ssh keys error');
14
15done_testing;