Skip to content

Commit 209d451

Browse files
committed
Updating proxy e2e tests
1 parent ae5f655 commit 209d451

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

test/WebJobs.Script.Tests.E2E/Functions/wwwroot/proxies.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
},
4949
"catchAll": {
5050
"matchCondition": {
51-
"route": "api/{*path}"
51+
"route": "api/proxy/{*path}"
5252
},
5353
"backendUri": "http://localhost/api/Ping",
5454
"requestOverrides": {
@@ -57,7 +57,7 @@
5757
},
5858
"catchAllRoutes": {
5959
"matchCondition": {
60-
"route": "/{*path}"
60+
"route": "/proxy/{*path}"
6161
},
6262
"backendUri": "http://localhost/myroute",
6363
"requestOverrides": {

test/WebJobs.Script.Tests.E2E/ProxyEndToEndTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public async Task CatchAllApis()
8989
{
9090
using (var client = CreateClient())
9191
{
92-
HttpResponseMessage response = await client.GetAsync($"api/blahblah?code={_fixture.FunctionDefaultKey}");
92+
HttpResponseMessage response = await client.GetAsync($"api/proxy/blahblah?code={_fixture.FunctionDefaultKey}");
9393

9494
string content = await response.Content.ReadAsStringAsync();
9595
_fixture.Assert.Equals("200", response.StatusCode.ToString("D"));
@@ -103,7 +103,7 @@ public async Task CatchAll()
103103
{
104104
using (var client = CreateClient())
105105
{
106-
HttpResponseMessage response = await client.GetAsync($"blahblah?code={_fixture.FunctionDefaultKey}");
106+
HttpResponseMessage response = await client.GetAsync($"proxy/blahblah?code={_fixture.FunctionDefaultKey}");
107107

108108
string content = await response.Content.ReadAsStringAsync();
109109
_fixture.Assert.Equals("200", response.StatusCode.ToString("D"));

0 commit comments

Comments
 (0)