Enable experimental proxy via configuration option 'experimental_proxy'
Change-Id: I3c5532d661327e3be50153d1360f96b524c91f29
diff --git a/t/proxy.t b/t/proxy.t
index 84f029e..f30e049 100644
--- a/t/proxy.t
+++ b/t/proxy.t
@@ -13,7 +13,8 @@
my $t = Test::Mojo->new('Kalamar' => {
Kalamar => {
- plugins => ['Auth']
+ plugins => ['Auth'],
+ experimental_proxy => 1
}
});
@@ -32,12 +33,6 @@
# Globally set server
$t->app->ua->server->app($t->app);
-my $r = $t->app->routes;
-
-# API proxy route
-$r->any('/api/v#apiv' => [apiv => ['1.0']])->to('Proxy#pass');
-$r->any('/api/v#apiv/*path' => [apiv => ['1.0']])->to('Proxy#pass');
-
$t->get_ok('/realapi/v1.0')
->status_is(200)
->content_is('Fake server available')