Skip to content

Commit 8686a58

Browse files
committed
Cleanup tests and fix version information
1 parent 3aefbba commit 8686a58

File tree

7 files changed

+21
-28
lines changed

7 files changed

+21
-28
lines changed

src/Servers/IIS/build/native.targets

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<Project>
2-
<Import Project="$(RepositoryRoot)\version.props" />
32
<Target Name="CreateVersionHeader" BeforeTargets="PrepareForBuild">
43
<ItemGroup>
54
<VersionHeaderContents Include="// Copyright (c) .NET Foundation. All rights reserved." />

src/Servers/IIS/src/AspNetCoreModuleV1/AspNetCore/resource.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#define IDS_SERVER_ERROR 1001
88

99
// Next default values for new objects
10-
//
10+
//
1111
#ifdef APSTUDIO_INVOKED
1212
#ifndef APSTUDIO_READONLY_SYMBOLS
1313
#define _APS_NEXT_RESOURCE_VALUE 101

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

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,16 @@ public HelloWorldTests(ITestOutputHelper output) : base(output)
1919
{
2020
}
2121

22-
[Theory(Skip = "Full framework web.config generation is currently incorrect. See https://github.com/aspnet/websdk/pull/322")]
23-
[InlineData("V1")]
24-
[InlineData("V2")]
25-
public Task HelloWorld_IISExpress_Clr_X64_Portable(string ancmVersion)
22+
[Fact(Skip = "Full framework web.config generation is currently incorrect. See https://github.com/aspnet/websdk/pull/322")]
23+
public Task HelloWorld_IISExpress_Clr_X64_Portable()
2624
{
27-
return HelloWorld(RuntimeFlavor.Clr, ApplicationType.Portable, ancmVersion);
25+
return HelloWorld(RuntimeFlavor.Clr, ApplicationType.Portable, "V1");
2826
}
2927

30-
[Theory]
31-
[InlineData("V1")]
32-
public Task HelloWorld_IISExpress_CoreClr_X64_Portable(string ancmVersion)
28+
[Fact]
29+
public Task HelloWorld_IISExpress_CoreClr_X64_Portable()
3330
{
34-
return HelloWorld(RuntimeFlavor.CoreClr, ApplicationType.Portable, ancmVersion);
31+
return HelloWorld(RuntimeFlavor.CoreClr, ApplicationType.Portable, "V1");
3532
}
3633

3734
private async Task HelloWorld(RuntimeFlavor runtimeFlavor, ApplicationType applicationType, string ancmVersion)

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public HttpsTest(ITestOutputHelper output) : base(output)
2626
}
2727

2828
[Fact]
29-
public Task Https_HelloWorld_CLR_X64(string ancmVersion)
29+
public Task Https_HelloWorld_CLR_X64()
3030
{
3131
return HttpsHelloWorld(RuntimeFlavor.Clr, ApplicationType.Portable, port: 44396, "V1");
3232
}
@@ -96,29 +96,29 @@ private async Task HttpsHelloWorld(RuntimeFlavor runtimeFlavor, ApplicationType
9696
}
9797

9898
[Fact]
99-
public Task Https_HelloWorld_NoClientCert_CoreCLR_X64_Portable(string ancmVersion)
99+
public Task Https_HelloWorld_NoClientCert_CoreCLR_X64_Portable()
100100
{
101101
return HttpsHelloWorldCerts(RuntimeFlavor.CoreClr, ApplicationType.Portable , port: 44397, sendClientCert: false, "V1");
102102
}
103103

104104
[Fact]
105-
public Task Https_HelloWorld_NoClientCert_Clr_X64(string ancmVersion)
105+
public Task Https_HelloWorld_NoClientCert_Clr_X64()
106106
{
107107
return HttpsHelloWorldCerts(RuntimeFlavor.Clr, ApplicationType.Portable, port: 44398, sendClientCert: false, "V1");
108108
}
109109

110110
#pragma warning disable xUnit1004 // Test methods should not be skipped
111111
[Fact(Skip = "Manual test only, selecting a client cert is non-determanistic on different machines.")]
112112
#pragma warning restore xUnit1004 // Test methods should not be skipped
113-
public Task Https_HelloWorld_ClientCert_Clr_X64(string ancmVersion)
113+
public Task Https_HelloWorld_ClientCert_Clr_X64()
114114
{
115115
return HttpsHelloWorldCerts(RuntimeFlavor.Clr, ApplicationType.Portable, port: 44301, sendClientCert: true, "V1");
116116
}
117117

118118
#pragma warning disable xUnit1004 // Test methods should not be skipped
119119
[Fact(Skip = "Manual test only, selecting a client cert is non-determanistic on different machines.")]
120120
#pragma warning restore xUnit1004 // Test methods should not be skipped
121-
public Task Https_HelloWorld_ClientCert_CoreCLR_X64_Portable(string ancmVersion)
121+
public Task Https_HelloWorld_ClientCert_CoreCLR_X64_Portable()
122122
{
123123
return HttpsHelloWorldCerts(RuntimeFlavor.CoreClr, ApplicationType.Portable, port: 44302, sendClientCert: true, "V1");
124124
}

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

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -25,20 +25,16 @@ public NtlmAuthenticationTests(ITestOutputHelper output) : base(output)
2525
{
2626
}
2727

28-
[Theory(Skip = "Full framework web.config generation is currently incorrect. See https://github.com/aspnet/websdk/pull/322")]
29-
[InlineData("V1")]
30-
[InlineData("V2")]
31-
public Task NtlmAuthentication_Clr_X64(string ancmVersion)
28+
[Fact(Skip = "Full framework web.config generation is currently incorrect. See https://github.com/aspnet/websdk/pull/322")]
29+
public Task NtlmAuthentication_Clr_X64_Portable()
3230
{
33-
return NtlmAuthentication(RuntimeFlavor.Clr, ApplicationType.Portable, port: 5051, ancmVersion);
31+
return NtlmAuthentication(RuntimeFlavor.Clr, ApplicationType.Portable, port: 5051, "V1");
3432
}
3533

36-
[Theory]
37-
[InlineData("V1")]
38-
[InlineData("V2")]
39-
public Task NtlmAuthentication_CoreClr_X64_Portable(string ancmVersion)
34+
[Fact]
35+
public Task NtlmAuthentication_CoreClr_X64_Portable()
4036
{
41-
return NtlmAuthentication(RuntimeFlavor.CoreClr, ApplicationType.Portable, port: 5052, ancmVersion);
37+
return NtlmAuthentication(RuntimeFlavor.CoreClr, ApplicationType.Portable, port: 5052, "V1");
4238
}
4339

4440
private async Task NtlmAuthentication(RuntimeFlavor runtimeFlavor, ApplicationType applicationType, int port, string ancmVersion)
@@ -59,7 +55,7 @@ private async Task NtlmAuthentication(RuntimeFlavor runtimeFlavor, ApplicationTy
5955
additionalPublishParameters += " -r " + windowsRid;
6056

6157
}
62-
58+
6359
var deploymentParameters = new DeploymentParameters(Helpers.GetOutOfProcessTestSitesPath(), serverType, runtimeFlavor, architecture)
6460
{
6561
ApplicationBaseUriHint = $"http://localhost:{port}",

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
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" />
1817
</ItemGroup>
1918

2019
</Project>

version.props

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111

1212
<!-- ANCM versioning is intentionally 10 + AspNetCoreMajorVersion because earlier versions of ANCM shipped as 8.x. -->
1313
<AspNetCoreModuleVersionMajor>1$(AspNetCoreMajorVersion)</AspNetCoreModuleVersionMajor>
14+
<AspNetCoreModuleVersionMinor>$(AspNetCoreMinorVersion)</AspNetCoreModuleVersionMinor>
15+
<AspNetCoreModuleVersionRevision>$(AspNetCorePatchVersion)</AspNetCoreModuleVersionRevision>
1416

1517
<VersionSuffix>$(PreReleaseLabel)-$(BuildNumber)</VersionSuffix>
1618
<BrandingVersionSuffix>$(PreReleaseBrandingLabel) Build $(BuildNumber)</BrandingVersionSuffix>

0 commit comments

Comments
 (0)