Skip to content
This repository was archived by the owner on Nov 1, 2018. It is now read-only.

Commit 2c08f72

Browse files
committed
Only add auth to tests that use it
1 parent 88c8ff5 commit 2c08f72

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

test/Microsoft.AspNetCore.Server.IISIntegration.Tests/IISMiddlewareTests.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ public async Task MiddlewareSkippedIfTokenIsMissing()
2525
.UseSetting("PORT", "12345")
2626
.UseSetting("APPL_PATH", "/")
2727
.UseIISIntegration()
28-
.ConfigureServices(services => services.AddAuthentication())
2928
.Configure(app =>
3029
{
3130
app.Run(context =>
@@ -55,7 +54,6 @@ public async Task MiddlewareRejectsRequestIfTokenHeaderIsMissing()
5554
.UseSetting("PORT", "12345")
5655
.UseSetting("APPL_PATH", "/")
5756
.UseIISIntegration()
58-
.ConfigureServices(services => services.AddAuthentication())
5957
.Configure(app =>
6058
{
6159
app.Run(context =>
@@ -82,7 +80,6 @@ public void UrlDelayRegisteredAndPreferHostingUrlsSet()
8280
.UseSetting("PORT", "12345")
8381
.UseSetting("APPL_PATH", "/")
8482
.UseIISIntegration()
85-
.ConfigureServices(services => services.AddAuthentication())
8683
.Configure(app =>
8784
{
8885
app.Run(context => Task.FromResult(0));
@@ -106,7 +103,6 @@ public void PathBaseHiddenFromServer()
106103
.UseSetting("PORT", "12345")
107104
.UseSetting("APPL_PATH", "/pathBase")
108105
.UseIISIntegration()
109-
.ConfigureServices(services => services.AddAuthentication())
110106
.Configure(app =>
111107
{
112108
app.Run(context => Task.FromResult(0));
@@ -126,7 +122,6 @@ public async Task AddsUsePathBaseMiddlewareWhenPathBaseSpecified()
126122
.UseSetting("PORT", "12345")
127123
.UseSetting("APPL_PATH", "/pathbase")
128124
.UseIISIntegration()
129-
.ConfigureServices(services => services.AddAuthentication())
130125
.Configure(app =>
131126
{
132127
app.Run(context =>

0 commit comments

Comments
 (0)