diff --git a/t/ui/27-plugin_obs_rsync_obs_status.t b/t/ui/27-plugin_obs_rsync_obs_status.t index b1917e5b8927..be6efec649e2 100644 --- a/t/ui/27-plugin_obs_rsync_obs_status.t +++ b/t/ui/27-plugin_obs_rsync_obs_status.t @@ -97,10 +97,11 @@ my $server_process = sub { my $mock = Mojolicious->new; $mock->mode('test'); - my $www_authenticate = qq(Signature realm="Use your developer account",headers="(created)"); # uncoverable statement + my $www_authenticate = qq(Signature realm="Use your developer account",headers="(created)"); $mock->routes->get( '/build/ProjWithAuth/_result' => sub ($c) { - return $c->render(status => 200, text => $fake_response_by_project{Proj1}) if $c->req->headers->authorization; + return $c->render(status => 200, text => $fake_response_by_project{Proj1}) + if $c->req->headers->authorization; $c->res->headers->www_authenticate($www_authenticate); return $c->render(status => 401, text => 'login'); }); @@ -108,7 +109,8 @@ my $server_process = sub { $mock->routes->get( '/build/ProjTestingSignature/_result' => sub ($c) { my $client_auth_header = $c->req->headers->authorization // ''; - return $c->render(status => 200, text => $fake_response_by_project{Proj1}) if $auth_header_exact eq $client_auth_header; + return $c->render(status => 200, text => $fake_response_by_project{Proj1}) + if $auth_header_exact eq $client_auth_header; $c->res->headers->www_authenticate($www_authenticate); return $c->render(status => 401, text => 'login'); }); @@ -118,7 +120,7 @@ my $server_process = sub { "/build/$project/_result" => sub ($c) { my $pkg = $c->param('package'); return $c->render(status => 404) if !$pkg and $project ne 'Proj1'; - return $c->render(status => 200, text => $fake_response_by_project{$project}); # uncoverable statement + return $c->render(status => 200, text => $fake_response_by_project{$project}); }); } my $daemon = Mojo::Server::Daemon->new(app => $mock, listen => [$host]);