Skip to content

Commit

Permalink
wip: test disabled groups
Browse files Browse the repository at this point in the history
  • Loading branch information
frankiejol committed Apr 18, 2024
1 parent 4be3179 commit e9bfd13
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions t/mojo/15_list_bases.t
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ sub _list_machines_user($base) {
is($@, '') or return;

my ($base_f) = grep { $_->{id} == $base->id } @$bases0;
ok($base_f) or die "Expecting ".$base->name." in listing";
ok($base_f) or croak "Expecting ".$base->name." in listing";

return $base_f;
}
Expand Down Expand Up @@ -140,11 +140,11 @@ sub test_list_machines_group($vm_name) {
is ($user->allowed_access($base->id),0) or exit;
is ($user->allowed_access_group($base->id),0) or exit;

test_list_match($base,0);
test_list_fail($base);

# access previous clone
$t->get_ok("/machine/view/".$id_clone.".html")
->status_is(200);
->status_is(403);

# but will not be able to clone
$t->get_ok("/machine/clone/".$base->id.".html")
Expand Down

0 comments on commit e9bfd13

Please sign in to comment.