Forward pipe to backend

Change-Id: Ia907f593d6ce4e329740c1e1a04c6eceaea92167
diff --git a/t/server/mock.pl b/t/server/mock.pl
index 38a3300..7d49de3 100644
--- a/t/server/mock.pl
+++ b/t/server/mock.pl
@@ -129,6 +129,7 @@
   $v->optional('count');
   $v->optional('context');
   $v->optional('offset');
+  $v->optional('pipe');
   $v->optional('cutoff')->in(qw/true false/);
 
   $c->app->log->debug('Receive request');
@@ -152,6 +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');
 
   # Get response based on query parameter
   my $response = $c->load_response('query_' . slugify(join('_', @slug_base)));
@@ -195,6 +197,10 @@
     }
   };
 
+  if ($v->param('pipe')) {
+    $response->{json}->{meta}->{pipe} = $v->param('pipe');
+  };
+
   # Set page parameter
   if ($v->param('page')) {
     $response->{json}->{meta}->{startIndex} = $v->param("startIndex");