ServerTests 766 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234
  1. commit 619d3585854ac311986c44715012d10e45a932a6
  2. Author: Nate McMaster <[email protected]>
  3. Date: Fri Nov 16 17:04:26 2018 -0800
  4. Upgrade test projects to netcoreapp3.0 (aspnet/ServerTests#152)
  5. diff --git a/Directory.Build.targets b/Directory.Build.targets
  6. index 78626b773ea..7a09b207eb1 100644
  7. --- a/Directory.Build.targets
  8. +++ b/Directory.Build.targets
  9. @@ -1,10 +1,5 @@
  10. <Project>
  11. <PropertyGroup>
  12. - <RuntimeFrameworkVersion Condition=" '$(TargetFramework)' == 'netcoreapp2.0' ">$(MicrosoftNETCoreApp20PackageVersion)</RuntimeFrameworkVersion>
  13. - <RuntimeFrameworkVersion Condition=" '$(TargetFramework)' == 'netcoreapp2.1' ">$(MicrosoftNETCoreApp21PackageVersion)</RuntimeFrameworkVersion>
  14. - <RuntimeFrameworkVersion Condition=" '$(TargetFramework)' == 'netcoreapp2.2' ">$(MicrosoftNETCoreApp22PackageVersion)</RuntimeFrameworkVersion>
  15. - <NETStandardImplicitPackageVersion Condition=" '$(TargetFramework)' == 'netstandard2.0' ">$(NETStandardLibrary20PackageVersion)</NETStandardImplicitPackageVersion>
  16. - <!-- aspnet/BuildTools#662 Don't police what version of NetCoreApp we use -->
  17. - <NETCoreAppMaximumVersion>99.9</NETCoreAppMaximumVersion>
  18. + <RuntimeFrameworkVersion Condition=" '$(TargetFramework)' == 'netcoreapp3.0' ">$(MicrosoftNETCoreAppPackageVersion)</RuntimeFrameworkVersion>
  19. </PropertyGroup>
  20. </Project>
  21. diff --git a/build/dependencies.props b/build/dependencies.props
  22. index ecdb7f31930..04df3411189 100644
  23. --- a/build/dependencies.props
  24. +++ b/build/dependencies.props
  25. @@ -3,27 +3,24 @@
  26. <MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
  27. </PropertyGroup>
  28. <PropertyGroup Label="Package Versions">
  29. - <InternalAspNetCoreSdkPackageVersion>3.0.0-alpha1-20181004.7</InternalAspNetCoreSdkPackageVersion>
  30. - <MicrosoftAspNetCoreAspNetCoreModulePackageVersion>3.0.0-alpha1-10584</MicrosoftAspNetCoreAspNetCoreModulePackageVersion>
  31. - <MicrosoftAspNetCoreAspNetCoreModuleV2PackageVersion>3.0.0-alpha1-10584</MicrosoftAspNetCoreAspNetCoreModuleV2PackageVersion>
  32. - <MicrosoftAspNetCoreResponseCompressionPackageVersion>3.0.0-alpha1-10584</MicrosoftAspNetCoreResponseCompressionPackageVersion>
  33. - <MicrosoftAspNetCoreServerHttpSysPackageVersion>3.0.0-alpha1-10584</MicrosoftAspNetCoreServerHttpSysPackageVersion>
  34. - <MicrosoftAspNetCoreServerIISIntegrationPackageVersion>3.0.0-alpha1-10584</MicrosoftAspNetCoreServerIISIntegrationPackageVersion>
  35. - <MicrosoftAspNetCoreServerIISPackageVersion>3.0.0-alpha1-10584</MicrosoftAspNetCoreServerIISPackageVersion>
  36. - <MicrosoftAspNetCoreServerIntegrationTestingIISPackageVersion>3.0.0-alpha1-10584</MicrosoftAspNetCoreServerIntegrationTestingIISPackageVersion>
  37. - <MicrosoftAspNetCoreServerKestrelPackageVersion>3.0.0-alpha1-10584</MicrosoftAspNetCoreServerKestrelPackageVersion>
  38. - <MicrosoftAspNetCoreWebUtilitiesPackageVersion>3.0.0-alpha1-10584</MicrosoftAspNetCoreWebUtilitiesPackageVersion>
  39. - <MicrosoftExtensionsConfigurationCommandLinePackageVersion>3.0.0-alpha1-10584</MicrosoftExtensionsConfigurationCommandLinePackageVersion>
  40. - <MicrosoftExtensionsConfigurationJsonPackageVersion>3.0.0-alpha1-10584</MicrosoftExtensionsConfigurationJsonPackageVersion>
  41. - <MicrosoftExtensionsLoggingConsolePackageVersion>3.0.0-alpha1-10584</MicrosoftExtensionsLoggingConsolePackageVersion>
  42. - <MicrosoftExtensionsLoggingPackageVersion>3.0.0-alpha1-10584</MicrosoftExtensionsLoggingPackageVersion>
  43. - <MicrosoftExtensionsLoggingTestingPackageVersion>3.0.0-alpha1-10584</MicrosoftExtensionsLoggingTestingPackageVersion>
  44. - <MicrosoftNETCoreApp20PackageVersion>2.0.9</MicrosoftNETCoreApp20PackageVersion>
  45. - <MicrosoftNETCoreApp21PackageVersion>2.1.3</MicrosoftNETCoreApp21PackageVersion>
  46. - <MicrosoftNETCoreApp22PackageVersion>2.2.0-preview2-26905-02</MicrosoftNETCoreApp22PackageVersion>
  47. - <MicrosoftNetHttpHeadersPackageVersion>3.0.0-alpha1-10584</MicrosoftNetHttpHeadersPackageVersion>
  48. + <InternalAspNetCoreSdkPackageVersion>3.0.0-build-20181114.5</InternalAspNetCoreSdkPackageVersion>
  49. + <MicrosoftAspNetCoreAspNetCoreModulePackageVersion>3.0.0-alpha1-10742</MicrosoftAspNetCoreAspNetCoreModulePackageVersion>
  50. + <MicrosoftAspNetCoreAspNetCoreModuleV2PackageVersion>3.0.0-alpha1-10742</MicrosoftAspNetCoreAspNetCoreModuleV2PackageVersion>
  51. + <MicrosoftAspNetCoreResponseCompressionPackageVersion>3.0.0-alpha1-10742</MicrosoftAspNetCoreResponseCompressionPackageVersion>
  52. + <MicrosoftAspNetCoreServerHttpSysPackageVersion>3.0.0-alpha1-10742</MicrosoftAspNetCoreServerHttpSysPackageVersion>
  53. + <MicrosoftAspNetCoreServerIISIntegrationPackageVersion>3.0.0-alpha1-10742</MicrosoftAspNetCoreServerIISIntegrationPackageVersion>
  54. + <MicrosoftAspNetCoreServerIISPackageVersion>3.0.0-alpha1-10742</MicrosoftAspNetCoreServerIISPackageVersion>
  55. + <MicrosoftAspNetCoreServerIntegrationTestingIISPackageVersion>3.0.0-alpha1-10742</MicrosoftAspNetCoreServerIntegrationTestingIISPackageVersion>
  56. + <MicrosoftAspNetCoreServerKestrelPackageVersion>3.0.0-alpha1-10742</MicrosoftAspNetCoreServerKestrelPackageVersion>
  57. + <MicrosoftAspNetCoreWebUtilitiesPackageVersion>3.0.0-alpha1-10742</MicrosoftAspNetCoreWebUtilitiesPackageVersion>
  58. + <MicrosoftExtensionsConfigurationCommandLinePackageVersion>3.0.0-preview-181113-11</MicrosoftExtensionsConfigurationCommandLinePackageVersion>
  59. + <MicrosoftExtensionsConfigurationJsonPackageVersion>3.0.0-preview-181113-11</MicrosoftExtensionsConfigurationJsonPackageVersion>
  60. + <MicrosoftExtensionsLoggingConsolePackageVersion>3.0.0-preview-181113-11</MicrosoftExtensionsLoggingConsolePackageVersion>
  61. + <MicrosoftExtensionsLoggingPackageVersion>3.0.0-preview-181113-11</MicrosoftExtensionsLoggingPackageVersion>
  62. + <MicrosoftExtensionsLoggingTestingPackageVersion>3.0.0-preview-181113-11</MicrosoftExtensionsLoggingTestingPackageVersion>
  63. + <MicrosoftNETCoreAppPackageVersion>3.0.0-preview1-26907-05</MicrosoftNETCoreAppPackageVersion>
  64. + <MicrosoftNetHttpHeadersPackageVersion>3.0.0-alpha1-10742</MicrosoftNetHttpHeadersPackageVersion>
  65. <MicrosoftNETTestSdkPackageVersion>15.6.1</MicrosoftNETTestSdkPackageVersion>
  66. - <NETStandardLibrary20PackageVersion>2.0.3</NETStandardLibrary20PackageVersion>
  67. <SerilogExtensionsLoggingPackageVersion>1.4.0</SerilogExtensionsLoggingPackageVersion>
  68. <SerilogSinksFilePackageVersion>4.0.0</SerilogSinksFilePackageVersion>
  69. <XunitPackageVersion>2.3.1</XunitPackageVersion>
  70. diff --git a/build/repo.props b/build/repo.props
  71. index 69884077643..164db6503fe 100644
  72. --- a/build/repo.props
  73. +++ b/build/repo.props
  74. @@ -1,9 +1,6 @@
  75. <Project>
  76. <Import Project="dependencies.props" />
  77. - <ItemGroup>
  78. - <ExcludeFromTest Include="$(RepositoryRoot)test\ServerComparison.TestSites\ServerComparison.TestSites.csproj" />
  79. - </ItemGroup>
  80. <PropertyGroup>
  81. <!-- These properties are use by the automation that updates dependencies.props -->
  82. <LineupPackageId>Internal.AspNetCore.Universe.Lineup</LineupPackageId>
  83. @@ -11,7 +8,7 @@
  84. </PropertyGroup>
  85. <ItemGroup>
  86. - <DotNetCoreRuntime Include="$(MicrosoftNETCoreApp22PackageVersion)" />
  87. - <DotNetCoreRuntime Condition="'$(OS)' == 'Windows_NT'" Include="$(MicrosoftNETCoreApp22PackageVersion)" Arch="x86" />
  88. + <DotNetCoreRuntime Include="$(MicrosoftNETCoreAppPackageVersion)" />
  89. + <DotNetCoreRuntime Condition="'$(OS)' == 'Windows_NT'" Include="$(MicrosoftNETCoreAppPackageVersion)" Arch="x86" />
  90. </ItemGroup>
  91. </Project>
  92. diff --git a/korebuild-lock.txt b/korebuild-lock.txt
  93. index 591cfd52ffb..73613543d0a 100644
  94. --- a/korebuild-lock.txt
  95. +++ b/korebuild-lock.txt
  96. @@ -1,2 +1,2 @@
  97. -version:3.0.0-alpha1-20181004.7
  98. -commithash:27fabdaf2b1d4753c3d2749581694ca65d78f7f2
  99. +version:3.0.0-build-20181114.5
  100. +commithash:880e9a204d4ee4a18dfd83c9fb05a192a28bca60
  101. diff --git a/test/Directory.Build.props b/test/Directory.Build.props
  102. deleted file mode 100644
  103. index a0100197c91..00000000000
  104. --- a/test/Directory.Build.props
  105. +++ /dev/null
  106. @@ -1,9 +0,0 @@
  107. -<Project>
  108. - <Import Project="..\Directory.Build.props" />
  109. -
  110. - <PropertyGroup>
  111. - <DeveloperBuildTestTfms>netcoreapp2.2</DeveloperBuildTestTfms>
  112. - <StandardTestTfms>$(DeveloperBuildTestTfms)</StandardTestTfms>
  113. - <StandardTestTfms Condition=" '$(DeveloperBuild)' != 'true' AND '$(OS)' == 'Windows_NT' ">$(StandardTestTfms);net461</StandardTestTfms>
  114. - </PropertyGroup>
  115. -</Project>
  116. diff --git a/test/ServerComparison.FunctionalTests/HelloWorldTest.cs b/test/ServerComparison.FunctionalTests/HelloWorldTest.cs
  117. index d19607e90da..a23952e86e3 100644
  118. --- a/test/ServerComparison.FunctionalTests/HelloWorldTest.cs
  119. +++ b/test/ServerComparison.FunctionalTests/HelloWorldTest.cs
  120. @@ -21,7 +21,7 @@ namespace ServerComparison.FunctionalTests
  121. public static TestMatrix TestVariants
  122. => TestMatrix.ForServers(ServerType.IISExpress, ServerType.Kestrel, ServerType.Nginx, ServerType.HttpSys)
  123. - .WithTfms(Tfm.NetCoreApp22, Tfm.Net461)
  124. + .WithTfms(Tfm.NetCoreApp30)
  125. .WithAllApplicationTypes()
  126. .WithAllAncmVersions()
  127. .WithAllHostingModels()
  128. diff --git a/test/ServerComparison.FunctionalTests/NtlmAuthenticationTest.cs b/test/ServerComparison.FunctionalTests/NtlmAuthenticationTest.cs
  129. index 7d471625910..d64e16ada02 100644
  130. --- a/test/ServerComparison.FunctionalTests/NtlmAuthenticationTest.cs
  131. +++ b/test/ServerComparison.FunctionalTests/NtlmAuthenticationTest.cs
  132. @@ -22,7 +22,7 @@ namespace ServerComparison.FunctionalTests
  133. public static TestMatrix TestVariants
  134. => TestMatrix.ForServers(ServerType.IISExpress, ServerType.HttpSys)
  135. - .WithTfms(Tfm.NetCoreApp22, Tfm.Net461)
  136. + .WithTfms(Tfm.NetCoreApp30)
  137. .WithAllAncmVersions()
  138. .WithAllHostingModels();
  139. diff --git a/test/ServerComparison.FunctionalTests/ResponseCompressionTests.cs b/test/ServerComparison.FunctionalTests/ResponseCompressionTests.cs
  140. index 8c57f03d8bd..e654d13d860 100644
  141. --- a/test/ServerComparison.FunctionalTests/ResponseCompressionTests.cs
  142. +++ b/test/ServerComparison.FunctionalTests/ResponseCompressionTests.cs
  143. @@ -33,7 +33,7 @@ namespace ServerComparison.FunctionalTests
  144. public static TestMatrix NoCompressionTestVariants
  145. => TestMatrix.ForServers(ServerType.IISExpress, ServerType.Kestrel, ServerType.Nginx, ServerType.HttpSys)
  146. - .WithTfms(Tfm.NetCoreApp22, Tfm.Net461)
  147. + .WithTfms(Tfm.NetCoreApp30)
  148. .WithAllAncmVersions()
  149. .WithAllHostingModels();
  150. @@ -46,7 +46,7 @@ namespace ServerComparison.FunctionalTests
  151. public static TestMatrix HostCompressionTestVariants
  152. => TestMatrix.ForServers(ServerType.IISExpress, ServerType.Nginx)
  153. - .WithTfms(Tfm.NetCoreApp22, Tfm.Net461)
  154. + .WithTfms(Tfm.NetCoreApp30)
  155. .WithAllAncmVersions()
  156. .WithAllHostingModels();
  157. @@ -59,7 +59,7 @@ namespace ServerComparison.FunctionalTests
  158. public static TestMatrix AppCompressionTestVariants
  159. => TestMatrix.ForServers(ServerType.IISExpress, ServerType.Kestrel, ServerType.HttpSys) // No pass-through compression for nginx
  160. - .WithTfms(Tfm.NetCoreApp22, Tfm.Net461)
  161. + .WithTfms(Tfm.NetCoreApp30)
  162. .WithAllAncmVersions()
  163. .WithAllHostingModels();
  164. @@ -72,7 +72,7 @@ namespace ServerComparison.FunctionalTests
  165. public static TestMatrix HostAndAppCompressionTestVariants
  166. => TestMatrix.ForServers(ServerType.IISExpress, ServerType.Kestrel, ServerType.Nginx, ServerType.HttpSys)
  167. - .WithTfms(Tfm.NetCoreApp22, Tfm.Net461)
  168. + .WithTfms(Tfm.NetCoreApp30)
  169. .WithAllAncmVersions()
  170. .WithAllHostingModels();
  171. diff --git a/test/ServerComparison.FunctionalTests/ResponseTests.cs b/test/ServerComparison.FunctionalTests/ResponseTests.cs
  172. index f19065d09b3..33aeb659de6 100644
  173. --- a/test/ServerComparison.FunctionalTests/ResponseTests.cs
  174. +++ b/test/ServerComparison.FunctionalTests/ResponseTests.cs
  175. @@ -26,7 +26,7 @@ namespace ServerComparison.FunctionalTests
  176. public static TestMatrix TestVariants
  177. => TestMatrix.ForServers(ServerType.IISExpress, ServerType.Kestrel, ServerType.Nginx, ServerType.HttpSys)
  178. - .WithTfms(Tfm.NetCoreApp22)
  179. + .WithTfms(Tfm.NetCoreApp30)
  180. .WithAllAncmVersions()
  181. .WithAllHostingModels();
  182. @@ -53,7 +53,7 @@ namespace ServerComparison.FunctionalTests
  183. public static TestMatrix SelfhostTestVariants
  184. => TestMatrix.ForServers(ServerType.Kestrel, ServerType.HttpSys)
  185. - .WithTfms(Tfm.NetCoreApp22);
  186. + .WithTfms(Tfm.NetCoreApp30);
  187. // Connection Close tests do not work through reverse proxies
  188. [ConditionalTheory]
  189. diff --git a/test/ServerComparison.FunctionalTests/ServerComparison.FunctionalTests.csproj b/test/ServerComparison.FunctionalTests/ServerComparison.FunctionalTests.csproj
  190. index 54b15b9c07a..804152d5895 100644
  191. --- a/test/ServerComparison.FunctionalTests/ServerComparison.FunctionalTests.csproj
  192. +++ b/test/ServerComparison.FunctionalTests/ServerComparison.FunctionalTests.csproj
  193. @@ -1,8 +1,7 @@
  194. <Project Sdk="Microsoft.NET.Sdk">
  195. <PropertyGroup>
  196. - <!-- Use 2.2 to run the tests. The tests will select their own TFMs for the test application when publishing -->
  197. - <TargetFramework>netcoreapp2.2</TargetFramework>
  198. + <TargetFramework>netcoreapp3.0</TargetFramework>
  199. </PropertyGroup>
  200. <ItemGroup>
  201. diff --git a/test/ServerComparison.TestSites/ServerComparison.TestSites.csproj b/test/ServerComparison.TestSites/ServerComparison.TestSites.csproj
  202. index c58b620932b..1e9df504e68 100644
  203. --- a/test/ServerComparison.TestSites/ServerComparison.TestSites.csproj
  204. +++ b/test/ServerComparison.TestSites/ServerComparison.TestSites.csproj
  205. @@ -1,7 +1,7 @@
  206. <Project Sdk="Microsoft.NET.Sdk.Web">
  207. <PropertyGroup>
  208. - <TargetFrameworks Condition="">$(StandardTestTfms)</TargetFrameworks>
  209. + <TargetFramework>netcoreapp3.0</TargetFramework>
  210. <RuntimeIdentifiers>win7-x86;win7-x64;linux-x64;osx-x64</RuntimeIdentifiers>
  211. </PropertyGroup>