Fix pipes behaviour in mock server to be consistent with Kustvakt

Change-Id: I11c5c1b1d725f5b5d0de9a44e20edc0a9528db64
diff --git a/lib/Kalamar/Plugin/Auth.pm b/lib/Kalamar/Plugin/Auth.pm
index 7f45281..8b4fecc 100644
--- a/lib/Kalamar/Plugin/Auth.pm
+++ b/lib/Kalamar/Plugin/Auth.pm
@@ -227,7 +227,7 @@
 
         # Everything is fine
         my $access_token  = $json->{access_token};
-        my $token_type    =  $json->{token_type};
+        my $token_type    = $json->{token_type};
         my $refresh_token = $json->{refresh_token};
         my $expires_in    = $json->{"expires_in"} // $EXPECTED_EXPIRATION_IN;
         my $auth          = $token_type . ' ' . $access_token;
diff --git a/t/query.t b/t/query.t
index 4cf5a06..37bcdcb 100644
--- a/t/query.t
+++ b/t/query.t
@@ -270,7 +270,7 @@
 $t->get_ok('/?q=baum&pipe=glemm')
   ->status_is(200)
   ->text_is('#error','')
-  ->content_like(qr/\"pipe\":"glemm"/)
+  ->content_like(qr/\"pipes\":"glemm"/)
   ;
 
 
diff --git a/t/server/mock.pl b/t/server/mock.pl
index 7d49de3..31bd494 100644
--- a/t/server/mock.pl
+++ b/t/server/mock.pl
@@ -129,7 +129,7 @@
   $v->optional('count');
   $v->optional('context');
   $v->optional('offset');
-  $v->optional('pipe');
+  $v->optional('pipes');
   $v->optional('cutoff')->in(qw/true false/);
 
   $c->app->log->debug('Receive request');
@@ -153,7 +153,7 @@
   push @slug_base, 'c' . $v->param('count') if defined $v->param('count');
   push @slug_base, 'co' . $v->param('cutoff') if defined $v->param('cutoff');
   push @slug_base, 'cq' if defined $v->param('cq');
-  push @slug_base, 'p' . $v->param('pipe') if defined $v->param('pipe');
+  push @slug_base, 'p' . $v->param('pipes') if defined $v->param('pipes');
 
   # Get response based on query parameter
   my $response = $c->load_response('query_' . slugify(join('_', @slug_base)));
@@ -197,8 +197,8 @@
     }
   };
 
-  if ($v->param('pipe')) {
-    $response->{json}->{meta}->{pipe} = $v->param('pipe');
+  if ($v->param('pipes')) {
+    $response->{json}->{meta}->{pipes} = $v->param('pipes');
   };
 
   # Set page parameter