First working query example with promise based backend
Change-Id: Iee7360d123dc09876d942a32013077d78ea50b91
diff --git a/t/fixtures/fake_backend.pl b/t/fixtures/fake_backend.pl
index 73b4561..e7fc518 100644
--- a/t/fixtures/fake_backend.pl
+++ b/t/fixtures/fake_backend.pl
@@ -54,6 +54,7 @@
shift->render(text => 'Fake server available');
};
+
# Search fixtures
get '/search' => sub {
my $c = shift;
@@ -64,6 +65,8 @@
$v->optional('count');
$v->optional('context');
+ $c->app->log->debug('Receive request');
+
# Response q=x&ql=cosmas3
if ($v->param('ql') && $v->param('ql') eq 'cosmas3') {
return $c->render(
@@ -93,9 +96,12 @@
$response->{json}->{meta}->{startIndex} = $v->param("startIndex");
};
-
# Simple search fixture
- return $c->render(%$response);
+ $c->render(%$response);
+
+ $c->app->log->debug('Rendered result');
+
+ return 1;
};