Skip to content

Commit

Permalink
Handle optional rodsadmin group
Browse files Browse the repository at this point in the history
  • Loading branch information
kjsanger committed Oct 13, 2023
1 parent f954f8d commit c0463b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions t/lib/WTSI/NPG/iRODSTest.pm
Original file line number Diff line number Diff line change
Expand Up @@ -231,14 +231,14 @@ sub list_groups : Test(1) {
my $irods = WTSI::NPG::iRODS->new(environment => \%ENV,
strict_baton_version => 0);

ok(grep { /^rodsadmin$/ } $irods->list_groups, 'Listed the rodsadmin group');
ok(grep { /^public/ } $irods->list_groups, 'Listed the public group');
}

sub group_exists : Test(2) {
my $irods = WTSI::NPG::iRODS->new(environment => \%ENV,
strict_baton_version => 0);

ok($irods->group_exists('rodsadmin'), 'The rodsadmin group exists');
ok($irods->group_exists('public'), 'The public group exists');
ok(!$irods->group_exists('no_such_group'), 'An absent group does not exist');
}

Expand Down

0 comments on commit c0463b7

Please sign in to comment.