Skip to content

Commit

Permalink
Added some new routes for testing services in azure rather than the f…
Browse files Browse the repository at this point in the history
…ree json api
  • Loading branch information
TomPallister committed Nov 26, 2016
1 parent b690122 commit 2103c60
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 2 deletions.
60 changes: 60 additions & 0 deletions test/Ocelot.ManualTest/configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
4 changes: 2 additions & 2 deletions test/Ocelot.ManualTest/web.config
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<middlewareConfiguration>
<configuration>

<!--
Configure your application settings in appsettings.json. Learn more at http://go.microsoft.com/fwlink/?LinkId=786380
Expand All @@ -11,4 +11,4 @@
</handlers>
<aspNetCore processPath="%LAUNCHER_PATH%" arguments="%LAUNCHER_ARGS%" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" forwardWindowsAuthToken="false"/>
</system.webServer>
</middlewareConfiguration>
</configuration>

0 comments on commit 2103c60

Please sign in to comment.