This commit is contained in:
BrennanConroy 2016-03-24 08:46:06 -07:00
parent f272d993de
commit 06a0d4f3e1
6 changed files with 7 additions and 7 deletions

View File

@ -70,7 +70,7 @@ namespace ServerComparison.FunctionalTests
{
ApplicationBaseUriHint = applicationBaseUrl,
EnvironmentName = "HelloWorld", // Will pick the Start class named 'StartupHelloWorld',
ServerConfigTemplateContent = Helpers.GetConfigContent(serverType),
ServerConfigTemplateContent = Helpers.GetConfigContent(serverType, "Http.config", "nginx.conf"),
SiteName = "HttpTestSite", // This is configured in the Http.config
PublishTargetFramework = runtimeFlavor == RuntimeFlavor.Clr ? "dnx451" : "netstandardapp1.5"
};

View File

@ -13,16 +13,16 @@ namespace ServerComparison.FunctionalTests
return Path.GetFullPath(Path.Combine("..", "..", "..", "..", "..", "ServerComparison.TestSites"));
}
public static string GetConfigContent(ServerType serverType)
public static string GetConfigContent(ServerType serverType, string iisConfig, string nginxConfig)
{
string content = null;
if (serverType == ServerType.IISExpress)
{
content = File.ReadAllText("Http.config");
content = File.ReadAllText(iisConfig);
}
else if (serverType == ServerType.Nginx)
{
content = File.ReadAllText("nginx.conf");
content = File.ReadAllText(nginxConfig);
}
return content;

View File

@ -37,7 +37,7 @@ namespace ServerComparison.FunctionalTests
{
ApplicationBaseUriHint = applicationBaseUrl,
EnvironmentName = "NtlmAuthentication", // Will pick the Start class named 'StartupNtlmAuthentication'
ServerConfigTemplateContent = (serverType == ServerType.IISExpress) ? File.ReadAllText("NtlmAuthentation.config") : null,
ServerConfigTemplateContent = Helpers.GetConfigContent(serverType, "NtlmAuthentication.config", nginxConfig: null),
SiteName = "NtlmAuthenticationTestSite", // This is configured in the NtlmAuthentication.config
};

View File

@ -140,7 +140,7 @@ namespace ServerComparison.FunctionalTests
{
ApplicationBaseUriHint = applicationBaseUrl,
EnvironmentName = "Responses",
ServerConfigTemplateContent = Helpers.GetConfigContent(serverType),
ServerConfigTemplateContent = Helpers.GetConfigContent(serverType, "Http.config", "nginx.conf"),
SiteName = "HttpTestSite", // This is configured in the Http.config
PublishTargetFramework = runtimeFlavor == RuntimeFlavor.Clr ? "dnx451" : "netstandardapp1.5"
};

View File

@ -13,7 +13,7 @@
"content": [
"Http.config",
"nginx.conf",
"NtlmAuthentation.config"
"NtlmAuthentication.config"
],
"frameworks": {