Update
This commit is contained in:
parent
f272d993de
commit
06a0d4f3e1
|
|
@ -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"
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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
|
||||
};
|
||||
|
||||
|
|
@ -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"
|
||||
};
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
"content": [
|
||||
"Http.config",
|
||||
"nginx.conf",
|
||||
"NtlmAuthentation.config"
|
||||
"NtlmAuthentication.config"
|
||||
],
|
||||
|
||||
"frameworks": {
|
||||
|
|
|
|||
Loading…
Reference in New Issue