Added simple search fixture to fake server
Change-Id: I65a5fcc80820d6eb61a2deab1748e25ab1354dc3
diff --git a/lib/Kalamar.pm b/lib/Kalamar.pm
index 2db406a..c35ed27 100644
--- a/lib/Kalamar.pm
+++ b/lib/Kalamar.pm
@@ -71,12 +71,15 @@
$self->log->info('Mount test server');
+ my $mount_point = '/api/v0.1/';
+
$self->plugin(Mount => {
- '/api/v0.1' => $self->home->child('lib/Kalamar/Apps/test_backend.pl')
+ $mount_point => $self->home->child('lib/Kalamar/Apps/test_backend.pl')
});
- # Fix api endpoint
- $self->config('Kalamar')->{api} = "/api/v0.1/";
+ # Fix api endpoints
+ $self->config('Kalamar')->{api} = $mount_point;
+ $self->config('Search')->{api} = $mount_point;
};
# Client notifications