From b70191fb82bef2346a931a3c645f5cb8132c8a79 Mon Sep 17 00:00:00 2001 From: Justin Kotalik Date: Fri, 29 Dec 2017 14:07:47 -0800 Subject: [PATCH] Specify configuration for functional tests --- test/IISIntegration.FunctionalTests/HelloWorldTest.cs | 8 +++++++- test/IISIntegration.FunctionalTests/HttpsTest.cs | 8 +++++++- .../NtlmAuthentationTest.cs | 8 +++++++- 3 files changed, 21 insertions(+), 3 deletions(-) diff --git a/test/IISIntegration.FunctionalTests/HelloWorldTest.cs b/test/IISIntegration.FunctionalTests/HelloWorldTest.cs index 82fd0b3be8..e11475cd89 100644 --- a/test/IISIntegration.FunctionalTests/HelloWorldTest.cs +++ b/test/IISIntegration.FunctionalTests/HelloWorldTest.cs @@ -47,7 +47,13 @@ namespace Microsoft.AspNetCore.Server.IISIntegration.FunctionalTests ServerConfigTemplateContent = (serverType == ServerType.IISExpress) ? File.ReadAllText("Http.config") : null, SiteName = "HttpTestSite", // This is configured in the Http.config TargetFramework = runtimeFlavor == RuntimeFlavor.Clr ? "net461" : "netcoreapp2.0", - ApplicationType = applicationType + ApplicationType = applicationType, + Configuration = +#if DEBUG + "Debug" +#else + "Release" +#endif }; using (var deployer = ApplicationDeployerFactory.Create(deploymentParameters, loggerFactory)) diff --git a/test/IISIntegration.FunctionalTests/HttpsTest.cs b/test/IISIntegration.FunctionalTests/HttpsTest.cs index fa15c4b6cd..804426f01c 100644 --- a/test/IISIntegration.FunctionalTests/HttpsTest.cs +++ b/test/IISIntegration.FunctionalTests/HttpsTest.cs @@ -55,7 +55,13 @@ namespace Microsoft.AspNetCore.Server.IISIntegration.FunctionalTests ServerConfigTemplateContent = (serverType == ServerType.IISExpress) ? File.ReadAllText("Https.config") : null, SiteName = "HttpsTestSite", // This is configured in the Https.config TargetFramework = runtimeFlavor == RuntimeFlavor.Clr ? "net461" : "netcoreapp2.0", - ApplicationType = applicationType + ApplicationType = applicationType, + Configuration = +#if DEBUG + "Debug" +#else + "Release" +#endif }; using (var deployer = ApplicationDeployerFactory.Create(deploymentParameters, loggerFactory)) diff --git a/test/IISIntegration.FunctionalTests/NtlmAuthentationTest.cs b/test/IISIntegration.FunctionalTests/NtlmAuthentationTest.cs index a19555b9d3..dd081ac4ec 100644 --- a/test/IISIntegration.FunctionalTests/NtlmAuthentationTest.cs +++ b/test/IISIntegration.FunctionalTests/NtlmAuthentationTest.cs @@ -60,7 +60,13 @@ namespace Microsoft.AspNetCore.Server.IISIntegration.FunctionalTests ApplicationType = applicationType, AdditionalPublishParameters = ApplicationType.Standalone == applicationType && RuntimeFlavor.CoreClr == runtimeFlavor ? "-r " + windowsRid - : null + : null, + Configuration = +#if DEBUG + "Debug" +#else + "Release" +#endif }; using (var deployer = ApplicationDeployerFactory.Create(deploymentParameters, loggerFactory))