mirror of
https://github.com/nsnail/Ocelot.git
synced 2025-06-19 09:48:16 +08:00
tidy up and no longer hard code admin area...still one int test failing before we start looking at rebuilding auth stuff
This commit is contained in:
@ -134,11 +134,8 @@ namespace Ocelot.AcceptanceTests
|
||||
.AddJsonFile("configuration.json")
|
||||
.AddEnvironmentVariables();
|
||||
|
||||
IServiceCollection serviceCollection = new ServiceCollection();
|
||||
var configuration = builder.Build();
|
||||
|
||||
_webHostBuilder = new WebHostBuilder();
|
||||
|
||||
_webHostBuilder.ConfigureServices(s =>
|
||||
{
|
||||
s.AddSingleton(_webHostBuilder);
|
||||
@ -158,7 +155,6 @@ namespace Ocelot.AcceptanceTests
|
||||
};
|
||||
|
||||
s.AddOcelot(configuration, settings);
|
||||
serviceCollection = s;
|
||||
})
|
||||
.ConfigureLogging(l =>
|
||||
{
|
||||
@ -167,7 +163,7 @@ namespace Ocelot.AcceptanceTests
|
||||
})
|
||||
.Configure(a =>
|
||||
{
|
||||
a.UseOcelot(ocelotMiddlewareConfig, serviceCollection).Wait();
|
||||
a.UseOcelot(ocelotMiddlewareConfig).Wait();
|
||||
}));
|
||||
|
||||
_ocelotClient = _ocelotServer.CreateClient();
|
||||
|
Reference in New Issue
Block a user