Skip to content

Commit 60be6a5

Browse files
committed
Feedback
1 parent 670b9f8 commit 60be6a5

File tree

7 files changed

+20
-68
lines changed

7 files changed

+20
-68
lines changed

src/Servers/IIS/build/repo.props

Lines changed: 0 additions & 23 deletions
This file was deleted.

src/Servers/IIS/build/repo.targets

Lines changed: 0 additions & 8 deletions
This file was deleted.

src/Servers/IIS/test/IISIntegration.FunctionalTests/OutOfProcess/HttpsTest.cs

Lines changed: 13 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,16 @@ public HttpsTest(ITestOutputHelper output) : base(output)
2525
{
2626
}
2727

28-
[Theory]
29-
[InlineData("V1")]
28+
[Fact]
3029
public Task Https_HelloWorld_CLR_X64(string ancmVersion)
3130
{
32-
return HttpsHelloWorld(RuntimeFlavor.Clr, ApplicationType.Portable, port: 44396, ancmVersion);
31+
return HttpsHelloWorld(RuntimeFlavor.Clr, ApplicationType.Portable, port: 44396, "V1");
3332
}
3433

35-
[Theory]
36-
[InlineData("V1")]
37-
public Task Https_HelloWorld_CoreCLR_X64_Portable(string ancmVersion)
34+
[Fact]
35+
public Task Https_HelloWorld_CoreCLR_X64_Portable()
3836
{
39-
return HttpsHelloWorld(RuntimeFlavor.CoreClr, ApplicationType.Portable, port: 44394, ancmVersion);
37+
return HttpsHelloWorld(RuntimeFlavor.CoreClr, ApplicationType.Portable, port: 44394, "V1");
4038
}
4139

4240
private async Task HttpsHelloWorld(RuntimeFlavor runtimeFlavor, ApplicationType applicationType, int port, string ancmVersion)
@@ -97,36 +95,32 @@ private async Task HttpsHelloWorld(RuntimeFlavor runtimeFlavor, ApplicationType
9795
}
9896
}
9997

100-
[Theory]
101-
[InlineData("V1")]
98+
[Fact]
10299
public Task Https_HelloWorld_NoClientCert_CoreCLR_X64_Portable(string ancmVersion)
103100
{
104-
return HttpsHelloWorldCerts(RuntimeFlavor.CoreClr, ApplicationType.Portable , port: 44397, sendClientCert: false, ancmVersion);
101+
return HttpsHelloWorldCerts(RuntimeFlavor.CoreClr, ApplicationType.Portable , port: 44397, sendClientCert: false, "V1");
105102
}
106103

107-
[Theory]
108-
[InlineData("V1")]
104+
[Fact]
109105
public Task Https_HelloWorld_NoClientCert_Clr_X64(string ancmVersion)
110106
{
111-
return HttpsHelloWorldCerts(RuntimeFlavor.Clr, ApplicationType.Portable, port: 44398, sendClientCert: false, ancmVersion);
107+
return HttpsHelloWorldCerts(RuntimeFlavor.Clr, ApplicationType.Portable, port: 44398, sendClientCert: false, "V1");
112108
}
113109

114110
#pragma warning disable xUnit1004 // Test methods should not be skipped
115-
[Theory(Skip = "Manual test only, selecting a client cert is non-determanistic on different machines.")]
116-
[InlineData("V1")]
111+
[Fact(Skip = "Manual test only, selecting a client cert is non-determanistic on different machines.")]
117112
#pragma warning restore xUnit1004 // Test methods should not be skipped
118113
public Task Https_HelloWorld_ClientCert_Clr_X64(string ancmVersion)
119114
{
120-
return HttpsHelloWorldCerts(RuntimeFlavor.Clr, ApplicationType.Portable, port: 44301, sendClientCert: true, ancmVersion);
115+
return HttpsHelloWorldCerts(RuntimeFlavor.Clr, ApplicationType.Portable, port: 44301, sendClientCert: true, "V1");
121116
}
122117

123118
#pragma warning disable xUnit1004 // Test methods should not be skipped
124-
[Theory(Skip = "Manual test only, selecting a client cert is non-determanistic on different machines.")]
125-
[InlineData("V1")]
119+
[Fact(Skip = "Manual test only, selecting a client cert is non-determanistic on different machines.")]
126120
#pragma warning restore xUnit1004 // Test methods should not be skipped
127121
public Task Https_HelloWorld_ClientCert_CoreCLR_X64_Portable(string ancmVersion)
128122
{
129-
return HttpsHelloWorldCerts(RuntimeFlavor.CoreClr, ApplicationType.Portable, port: 44302, sendClientCert: true, ancmVersion);
123+
return HttpsHelloWorldCerts(RuntimeFlavor.CoreClr, ApplicationType.Portable, port: 44302, sendClientCert: true, "V1");
130124
}
131125

132126
private async Task HttpsHelloWorldCerts(RuntimeFlavor runtimeFlavor, ApplicationType applicationType, int port, bool sendClientCert, string ancmVersion)

src/Servers/IIS/test/testassets/OutOfProcessWebSite/OutOfProcessWebSite.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
<Reference Include="Microsoft.Extensions.Configuration.EnvironmentVariables" />
1515
<Reference Include="Microsoft.Extensions.Configuration.Json" />
1616
<Reference Include="Microsoft.Extensions.Logging.Console" />
17+
<Reference Include="xunit" />
1718
</ItemGroup>
1819

1920
</Project>

src/Servers/IIS/test/testassets/OutOfProcessWebSite/StartupNtlmAuthentication.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
using Microsoft.AspNetCore.Http;
99
using Microsoft.AspNetCore.Server.IISIntegration;
1010
using Microsoft.Extensions.Logging;
11+
using Xunit;
1112

1213
namespace TestSites
1314
{
@@ -46,6 +47,7 @@ public void Configure(IApplicationBuilder app, ILoggerFactory loggerFactory)
4647
{
4748
if (context.User.Identity.IsAuthenticated)
4849
{
50+
Assert.IsType<WindowsPrincipal>(context.User);
4951
return context.Response.WriteAsync(context.User.Identity.AuthenticationType);
5052
}
5153
else

src/Servers/IIS/version.props

Lines changed: 0 additions & 18 deletions
This file was deleted.

version.props

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
<BuildNumber Condition="'$(BuildNumber)' == ''">t000</BuildNumber>
99
<VersionPrefix>$(AspNetCoreMajorVersion).$(AspNetCoreMinorVersion).$(AspNetCorePatchVersion)</VersionPrefix>
1010
<ExperimentalVersionPrefix>0.1.$(AspNetCorePatchVersion)</ExperimentalVersionPrefix>
11+
12+
<!-- ANCM versioning is intentionally 10 + AspNetCoreMajorVersion because earlier versions of ANCM shipped as 8.x. -->
13+
<AspNetCoreModuleVersionMajor>1$(AspNetCoreMajorVersion)</AspNetCoreModuleVersionMajor>
14+
1115
<VersionSuffix>$(PreReleaseLabel)-$(BuildNumber)</VersionSuffix>
1216
<BrandingVersionSuffix>$(PreReleaseBrandingLabel) Build $(BuildNumber)</BrandingVersionSuffix>
1317

0 commit comments

Comments
 (0)