moved probe classes to ::Probe:: namespace
[scpubgit/System-Introspector.git] / t / users.t
CommitLineData
a2598396 1use strictures 1;
2use Test::More;
3
afd7c030 4use System::Introspector::Probe::Users;
a2598396 5
afd7c030 6my $probe = System::Introspector::Probe::Users->new;
a2598396 7my $data = $probe->gather;
8
386a00c7 9ok((my $user = $data->{users}{ +getlogin }), '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;