From 2103c60d4a3c92d429e312af3dce3c957e931dc2 Mon Sep 17 00:00:00 2001 From: TomPallister Date: Sat, 26 Nov 2016 11:44:06 +0000 Subject: [PATCH 1/2] Added some new routes for testing services in azure rather than the free json api --- test/Ocelot.ManualTest/configuration.json | 60 +++++++++++++++++++++++ test/Ocelot.ManualTest/web.config | 4 +- 2 files changed, 62 insertions(+), 2 deletions(-) diff --git a/test/Ocelot.ManualTest/configuration.json b/test/Ocelot.ManualTest/configuration.json index d39b2d71..c1aa8b44 100644 --- a/test/Ocelot.ManualTest/configuration.json +++ b/test/Ocelot.ManualTest/configuration.json @@ -77,6 +77,66 @@ "DownstreamTemplate": "http://jsonplaceholder.typicode.com/posts/{postId}", "UpstreamTemplate": "/posts/{postId}", "UpstreamHttpMethod": "Delete" + }, + { + "DownstreamTemplate": "http://products20161126090340.azurewebsites.net/api/products", + "UpstreamTemplate": "/products", + "UpstreamHttpMethod": "Get", + "FileCacheOptions": { "TtlSeconds": 15 } + }, + { + "DownstreamTemplate": "http://products20161126090340.azurewebsites.net/api/products/{productId}", + "UpstreamTemplate": "/products/{productId}", + "UpstreamHttpMethod": "Get", + "FileCacheOptions": { "TtlSeconds": 15 } + }, + { + "DownstreamTemplate": "http://products20161126090340.azurewebsites.net/api/products", + "UpstreamTemplate": "/products", + "UpstreamHttpMethod": "Post", + "FileCacheOptions": { "TtlSeconds": 15 } + }, + { + "DownstreamTemplate": "http://products20161126090340.azurewebsites.net/api/products/{productId}", + "UpstreamTemplate": "/products/{productId}", + "UpstreamHttpMethod": "Put", + "FileCacheOptions": { "TtlSeconds": 15 } + }, + { + "DownstreamTemplate": "http://products20161126090340.azurewebsites.net/api/products/{productId}", + "UpstreamTemplate": "/products/{productId}", + "UpstreamHttpMethod": "Delete", + "FileCacheOptions": { "TtlSeconds": 15 } + }, + { + "DownstreamTemplate": "http://customers20161126090811.azurewebsites.net/api/customers", + "UpstreamTemplate": "/customers", + "UpstreamHttpMethod": "Get", + "FileCacheOptions": { "TtlSeconds": 15 } + }, + { + "DownstreamTemplate": "http://customers20161126090811.azurewebsites.net/api/customers/{customerId}", + "UpstreamTemplate": "/customers/{customerId}", + "UpstreamHttpMethod": "Get", + "FileCacheOptions": { "TtlSeconds": 15 } + }, + { + "DownstreamTemplate": "http://customers20161126090811.azurewebsites.net/api/customers", + "UpstreamTemplate": "/customers", + "UpstreamHttpMethod": "Post", + "FileCacheOptions": { "TtlSeconds": 15 } + }, + { + "DownstreamTemplate": "http://customers20161126090811.azurewebsites.net/api/customers/{customerId}", + "UpstreamTemplate": "/customers/{customerId}", + "UpstreamHttpMethod": "Put", + "FileCacheOptions": { "TtlSeconds": 15 } + }, + { + "DownstreamTemplate": "http://customers20161126090811.azurewebsites.net/api/customers/{customerId}", + "UpstreamTemplate": "/customers/{customerId}", + "UpstreamHttpMethod": "Delete", + "FileCacheOptions": { "TtlSeconds": 15 } } ], "GlobalConfiguration": { diff --git a/test/Ocelot.ManualTest/web.config b/test/Ocelot.ManualTest/web.config index 894788ec..dc0514fc 100644 --- a/test/Ocelot.ManualTest/web.config +++ b/test/Ocelot.ManualTest/web.config @@ -1,5 +1,5 @@  - +