This commit is contained in:
Chris Ross (ASP.NET) 2018-05-16 14:59:58 -07:00
Родитель b9114ae40a
Коммит 922b1ea8a3
2 изменённых файлов: 6 добавлений и 9 удалений

Просмотреть файл

@ -40,8 +40,7 @@ namespace Microsoft.AspNetCore.Server.HttpSys
Assert.Empty(response.Headers.WwwAuthenticate);
}
}
#if !NETCOREAPP2_0
// https://github.com/aspnet/ServerTests/issues/82
[ConditionalTheory]
[InlineData(AuthenticationSchemes.Negotiate)]
[InlineData(AuthenticationSchemes.NTLM)]
@ -107,7 +106,7 @@ namespace Microsoft.AspNetCore.Server.HttpSys
Assert.Equal("Negotiate, NTLM, basic", response.Headers.WwwAuthenticate.ToString(), StringComparer.OrdinalIgnoreCase);
}
}
#endif
[ConditionalTheory]
[InlineData(AuthenticationSchemes.Negotiate)]
[InlineData(AuthenticationSchemes.NTLM)]
@ -238,8 +237,7 @@ namespace Microsoft.AspNetCore.Server.HttpSys
Assert.Equal(HttpStatusCode.OK, response.StatusCode);
}
}
#if !NETCOREAPP2_0
// https://github.com/aspnet/ServerTests/issues/82
[ConditionalTheory]
[InlineData(AuthenticationSchemes.Negotiate)]
[InlineData(AuthenticationSchemes.NTLM)]
@ -329,7 +327,7 @@ namespace Microsoft.AspNetCore.Server.HttpSys
Assert.Equal(authTypeList.Count(), response.Headers.WwwAuthenticate.Count);
}
}
#endif
[ConditionalFact]
public async Task AuthTypes_Forbid_Forbidden()
{

Просмотреть файл

@ -40,8 +40,7 @@ namespace Microsoft.AspNetCore.Server.HttpSys.Listener
Assert.Empty(response.Headers.WwwAuthenticate);
}
}
#if !NETCOREAPP2_0
// https://github.com/aspnet/ServerTests/issues/82
[ConditionalTheory]
[InlineData(AuthenticationSchemes.Negotiate)]
[InlineData(AuthenticationSchemes.NTLM)]
@ -111,7 +110,7 @@ namespace Microsoft.AspNetCore.Server.HttpSys.Listener
Assert.Equal("Negotiate, NTLM, basic", response.Headers.WwwAuthenticate.ToString(), StringComparer.OrdinalIgnoreCase);
}
}
#endif
[ConditionalTheory]
[InlineData(AuthenticationSchemes.Negotiate)]
[InlineData(AuthenticationSchemes.NTLM)]