added lines_from_command util
[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
b535ee84 9ok((my $user = $data->{users}{ $> }), 'found own user');
a2598396 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');
b535ee84 13is($user->{ssh}{keys}{error}, undef, 'no ssh keys error');
a2598396 14
15done_testing;