Remove nginx tests, specify IIS config

This commit is contained in:
Chris Ross (ASP.NET) 2018-05-16 16:22:48 -07:00
parent 0c5be39112
commit 63f4d609cd
5 changed files with 23 additions and 4 deletions

View File

@ -4,6 +4,8 @@ VisualStudioVersion = 15.0.26730.12
MinimumVisualStudioVersion = 15.0.26730.03
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{7D749BDA-4638-4517-B66A-D40DEDEEB141}"
ProjectSection(SolutionItems) = preProject
.appveyor.yml = .appveyor.yml
.travis.yml = .travis.yml
Directory.Build.props = Directory.Build.props
Directory.Build.targets = Directory.Build.targets
NuGet.config = NuGet.config

View File

@ -30,5 +30,18 @@ namespace E2ETests
return false;
}
}
public static string GetConfigContent(ServerType serverType, string iisConfig)
{
var applicationBasePath = AppContext.BaseDirectory;
string content = null;
if (serverType == ServerType.IISExpress)
{
content = File.ReadAllText(Path.Combine(applicationBasePath, iisConfig));
}
return content;
}
}
}

View File

@ -14,7 +14,7 @@ namespace E2ETests
public class OpenIdConnectTests : LoggedTest
{
public static TestMatrix TestVariants
=> TestMatrix.ForServers(ServerType.IISExpress, ServerType.Kestrel, ServerType.Nginx)
=> TestMatrix.ForServers(ServerType.IISExpress, ServerType.Kestrel)
.WithTfms(Tfm.NetCoreApp22, Tfm.NetCoreApp21, Tfm.NetCoreApp20, Tfm.Net461);
[ConditionalTheory]
@ -32,6 +32,8 @@ namespace E2ETests
ApplicationPath = Helpers.GetApplicationPath(),
PublishApplicationBeforeDeployment = true,
PreservePublishedApplicationForDebugging = Helpers.PreservePublishedApplicationForDebugging,
ServerConfigTemplateContent = Helpers.GetConfigContent(variant.Server, "Http.config"),
SiteName = "MusicStoreTestSite",
EnvironmentName = "OpenIdConnectTesting",
UserAdditionalCleanup = parameters =>
{

View File

@ -16,7 +16,7 @@ namespace E2ETests
public class PublishAndRunTests : LoggedTest
{
public static TestMatrix TestVariants
=> TestMatrix.ForServers(ServerType.IISExpress, ServerType.Kestrel, ServerType.Nginx, ServerType.HttpSys)
=> TestMatrix.ForServers(ServerType.IISExpress, ServerType.Kestrel, ServerType.HttpSys)
.WithTfms(Tfm.NetCoreApp22, Tfm.NetCoreApp21, Tfm.NetCoreApp20, Tfm.Net461)
.WithAllApplicationTypes()
.WithAllArchitectures()
@ -38,6 +38,8 @@ namespace E2ETests
ApplicationPath = Helpers.GetApplicationPath(),
PublishApplicationBeforeDeployment = true,
PreservePublishedApplicationForDebugging = Helpers.PreservePublishedApplicationForDebugging,
ServerConfigTemplateContent = Helpers.GetConfigContent(variant.Server, "Http.config"),
SiteName = "MusicStoreTestSite",
UserAdditionalCleanup = parameters =>
{
DbUtils.DropDatabase(musicStoreDbName, logger);

View File

@ -16,7 +16,7 @@ namespace E2ETests
public class SmokeTests : LoggedTest
{
public static TestMatrix TestVariants
=> TestMatrix.ForServers(ServerType.IISExpress, ServerType.Kestrel, ServerType.Nginx, ServerType.HttpSys)
=> TestMatrix.ForServers(ServerType.IISExpress, ServerType.Kestrel, ServerType.HttpSys)
.WithTfms(Tfm.NetCoreApp22, Tfm.NetCoreApp21, Tfm.NetCoreApp20, Tfm.Net461)
.WithAllApplicationTypes();
@ -34,7 +34,7 @@ namespace E2ETests
{
ApplicationPath = Helpers.GetApplicationPath(),
EnvironmentName = "SocialTesting",
ServerConfigTemplateContent = (variant.Server == ServerType.IISExpress) ? File.ReadAllText("Http.config") : null,
ServerConfigTemplateContent = Helpers.GetConfigContent(variant.Server, "Http.config"),
SiteName = "MusicStoreTestSite",
PublishApplicationBeforeDeployment = true,
PreservePublishedApplicationForDebugging = Helpers.PreservePublishedApplicationForDebugging,