mirror of
https://github.com/nsnail/Ocelot.git
synced 2025-04-23 00:32:50 +08:00
#603 return 502 on HttpRequestException
This commit is contained in:
parent
8985495f38
commit
cbb21a13b3
@ -35,7 +35,7 @@
|
||||
new FileHostAndPort
|
||||
{
|
||||
Host = "localhost",
|
||||
Port = 53876,
|
||||
Port = 53877,
|
||||
},
|
||||
},
|
||||
DownstreamScheme = "http",
|
||||
|
@ -89,7 +89,7 @@ namespace Ocelot.AcceptanceTests
|
||||
.And(x => _steps.GivenThereIsAConfiguration(configuration))
|
||||
.And(x => _steps.GivenOcelotIsRunning())
|
||||
.When(x => _steps.WhenIGetUrlOnTheApiGateway("/"))
|
||||
.Then(x => _steps.ThenTheStatusCodeShouldBe(HttpStatusCode.InternalServerError))
|
||||
.Then(x => _steps.ThenTheStatusCodeShouldBe(HttpStatusCode.BadGateway))
|
||||
.BDDfy();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user