moved probe classes to ::Probe:: namespace
[scpubgit/System-Introspector.git] / t / groups.t
CommitLineData
9daad8a7 1use strictures 1;
2use Test::More;
3
afd7c030 4use System::Introspector::Probe::Groups;
9daad8a7 5
afd7c030 6my $probe = System::Introspector::Probe::Groups->new;
bca4cd05 7
8my $result = $probe->gather;
9ok $result, 'received data';
10my $data = $result->{groups};
11ok $data, 'received groups data';
9daad8a7 12
13ok scalar(keys %$data), 'received group data';
14ok not(grep { not defined $_->{gid} } values %$data), 'all have gid';
15ok not(grep { not defined $_->{name} } values %$data), 'all have name';
16ok not(grep { not defined $_->{users} } values %$data), 'all have users';
17
18done_testing;