218 references to ServerType
IIS.FunctionalTests (14)
DeployerSelector.cs (2)
10public static ServerType ServerType => ServerType.IIS;
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\AppVerifier.cs (3)
15public static IDisposable Disable(ServerType serverType, int code) 22case ServerType.IISExpress: 25case ServerType.IIS:
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\EventLogHelpers.cs (1)
134(deploymentResult.DeploymentParameters.ServerType == ServerType.IISExpress ? "Express " : "") +
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\FunctionalTestsBase.cs (1)
24if (parameters.ServerType == ServerType.IISExpress &&
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (3)
69if (result.DeploymentParameters.ServerType == ServerType.IISExpress) 162if (deploymentResult.DeploymentParameters.ServerType == ServerType.IISExpress) 176if (deploymentResult.DeploymentParameters.ServerType == ServerType.IIS)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISSubAppSiteFixture.cs (1)
16if (deploymentParameters.ServerType == IntegrationTesting.ServerType.IIS)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Inprocess\MaxRequestBodySizeTests.cs (1)
159if (deploymentParameters.ServerType == ServerType.IISExpress)
src\Servers\IIS\IIS\test\Common.FunctionalTests\LoggingTests.cs (1)
299if (deploymentParameters.ServerType == ServerType.IISExpress)
src\Servers\IIS\IIS\test\Common.FunctionalTests\MaxRequestBodySizeTests.cs (1)
160if (deploymentParameters.ServerType == ServerType.IISExpress)
IIS.LongTests (16)
DeployerSelector.cs (2)
10public static ServerType ServerType => ServerType.IIS;
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\AppVerifier.cs (3)
15public static IDisposable Disable(ServerType serverType, int code) 22case ServerType.IISExpress: 25case ServerType.IIS:
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\EventLogHelpers.cs (1)
134(deploymentResult.DeploymentParameters.ServerType == ServerType.IISExpress ? "Express " : "") +
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\FunctionalTestsBase.cs (1)
24if (parameters.ServerType == ServerType.IISExpress &&
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (3)
69if (result.DeploymentParameters.ServerType == ServerType.IISExpress) 162if (deploymentResult.DeploymentParameters.ServerType == ServerType.IISExpress) 176if (deploymentResult.DeploymentParameters.ServerType == ServerType.IIS)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISSubAppSiteFixture.cs (1)
16if (deploymentParameters.ServerType == IntegrationTesting.ServerType.IIS)
src\Servers\IIS\IIS\test\Common.LongTests\ShutdownTests.cs (2)
269if (deploymentParameters.ServerType == ServerType.IISExpress) 306if (deploymentParameters.ServerType == ServerType.IISExpress)
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (3)
302if (deploymentParameters.ServerType == ServerType.IISExpress) 729var eventPrefix = deploymentParameters.ServerType == ServerType.IISExpress ? "" : "Global\\"; 979if (deploymentParameters.ServerType == ServerType.IISExpress)
IIS.Microbenchmarks (1)
StartupTimeBenchmark.cs (1)
27ServerType.IISExpress,
IIS.NewHandler.FunctionalTests (16)
DeployerSelector.cs (2)
10public static ServerType ServerType => ServerType.IIS;
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\AppVerifier.cs (3)
15public static IDisposable Disable(ServerType serverType, int code) 22case ServerType.IISExpress: 25case ServerType.IIS:
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\EventLogHelpers.cs (1)
134(deploymentResult.DeploymentParameters.ServerType == ServerType.IISExpress ? "Express " : "") +
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\FunctionalTestsBase.cs (1)
24if (parameters.ServerType == ServerType.IISExpress &&
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (3)
69if (result.DeploymentParameters.ServerType == ServerType.IISExpress) 162if (deploymentResult.DeploymentParameters.ServerType == ServerType.IISExpress) 176if (deploymentResult.DeploymentParameters.ServerType == ServerType.IIS)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISSubAppSiteFixture.cs (1)
16if (deploymentParameters.ServerType == IntegrationTesting.ServerType.IIS)
src\Servers\IIS\IIS\test\Common.LongTests\ShutdownTests.cs (2)
269if (deploymentParameters.ServerType == ServerType.IISExpress) 306if (deploymentParameters.ServerType == ServerType.IISExpress)
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (3)
302if (deploymentParameters.ServerType == ServerType.IISExpress) 729var eventPrefix = deploymentParameters.ServerType == ServerType.IISExpress ? "" : "Global\\"; 979if (deploymentParameters.ServerType == ServerType.IISExpress)
IIS.NewShim.FunctionalTests (16)
DeployerSelector.cs (2)
10public static ServerType ServerType => ServerType.IIS;
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\AppVerifier.cs (3)
15public static IDisposable Disable(ServerType serverType, int code) 22case ServerType.IISExpress: 25case ServerType.IIS:
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\EventLogHelpers.cs (1)
134(deploymentResult.DeploymentParameters.ServerType == ServerType.IISExpress ? "Express " : "") +
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\FunctionalTestsBase.cs (1)
24if (parameters.ServerType == ServerType.IISExpress &&
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (3)
69if (result.DeploymentParameters.ServerType == ServerType.IISExpress) 162if (deploymentResult.DeploymentParameters.ServerType == ServerType.IISExpress) 176if (deploymentResult.DeploymentParameters.ServerType == ServerType.IIS)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISSubAppSiteFixture.cs (1)
16if (deploymentParameters.ServerType == IntegrationTesting.ServerType.IIS)
src\Servers\IIS\IIS\test\Common.LongTests\ShutdownTests.cs (2)
269if (deploymentParameters.ServerType == ServerType.IISExpress) 306if (deploymentParameters.ServerType == ServerType.IISExpress)
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (3)
302if (deploymentParameters.ServerType == ServerType.IISExpress) 729var eventPrefix = deploymentParameters.ServerType == ServerType.IISExpress ? "" : "Global\\"; 979if (deploymentParameters.ServerType == ServerType.IISExpress)
IIS.ShadowCopy.Tests (11)
DeployerSelector.cs (2)
10public static ServerType ServerType => ServerType.IIS;
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\AppVerifier.cs (3)
15public static IDisposable Disable(ServerType serverType, int code) 22case ServerType.IISExpress: 25case ServerType.IIS:
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\EventLogHelpers.cs (1)
134(deploymentResult.DeploymentParameters.ServerType == ServerType.IISExpress ? "Express " : "") +
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\FunctionalTestsBase.cs (1)
24if (parameters.ServerType == ServerType.IISExpress &&
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (3)
69if (result.DeploymentParameters.ServerType == ServerType.IISExpress) 162if (deploymentResult.DeploymentParameters.ServerType == ServerType.IISExpress) 176if (deploymentResult.DeploymentParameters.ServerType == ServerType.IIS)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISSubAppSiteFixture.cs (1)
16if (deploymentParameters.ServerType == IntegrationTesting.ServerType.IIS)
IISExpress.FunctionalTests (19)
DeployerSelector.cs (2)
10public static ServerType ServerType => ServerType.IISExpress;
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\AppVerifier.cs (3)
15public static IDisposable Disable(ServerType serverType, int code) 22case ServerType.IISExpress: 25case ServerType.IIS:
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\EventLogHelpers.cs (1)
134(deploymentResult.DeploymentParameters.ServerType == ServerType.IISExpress ? "Express " : "") +
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\FunctionalTestsBase.cs (1)
24if (parameters.ServerType == ServerType.IISExpress &&
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (3)
69if (result.DeploymentParameters.ServerType == ServerType.IISExpress) 162if (deploymentResult.DeploymentParameters.ServerType == ServerType.IISExpress) 176if (deploymentResult.DeploymentParameters.ServerType == ServerType.IIS)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISSubAppSiteFixture.cs (1)
16if (deploymentParameters.ServerType == IntegrationTesting.ServerType.IIS)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Inprocess\MaxRequestBodySizeTests.cs (1)
159if (deploymentParameters.ServerType == ServerType.IISExpress)
src\Servers\IIS\IIS\test\Common.FunctionalTests\LoggingTests.cs (1)
299if (deploymentParameters.ServerType == ServerType.IISExpress)
src\Servers\IIS\IIS\test\Common.FunctionalTests\MaxRequestBodySizeTests.cs (1)
160if (deploymentParameters.ServerType == ServerType.IISExpress)
src\Servers\IIS\IIS\test\Common.LongTests\ShutdownTests.cs (2)
269if (deploymentParameters.ServerType == ServerType.IISExpress) 306if (deploymentParameters.ServerType == ServerType.IISExpress)
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (3)
302if (deploymentParameters.ServerType == ServerType.IISExpress) 729var eventPrefix = deploymentParameters.ServerType == ServerType.IISExpress ? "" : "Global\\"; 979if (deploymentParameters.ServerType == ServerType.IISExpress)
Microsoft.AspNetCore.FunctionalTests (2)
WebHostFunctionalTests.cs (2)
154var deploymentParameters = new DeploymentParameters(Path.Combine(GetTestSitesPath(), applicationName), ServerType.IISExpress, RuntimeFlavor.CoreClr, RuntimeArchitecture.x64) 209var deploymentParameters = new DeploymentParameters(Path.Combine(GetTestSitesPath(), applicationName), ServerType.Kestrel, RuntimeFlavor.CoreClr, RuntimeArchitectures.Current)
Microsoft.AspNetCore.Hosting.FunctionalTests (3)
LinkedApplicationTests.cs (1)
27ServerType.Kestrel,
ShutdownTests.cs (1)
52ServerType.Kestrel,
WebHostBuilderTests.cs (1)
14public static TestMatrix TestVariants => TestMatrix.ForServers(ServerType.Kestrel)
Microsoft.AspNetCore.Server.HttpSys.NonHelixTests (1)
DelegateOutOfProcTests.cs (1)
31ServerType.HttpSys,
Microsoft.AspNetCore.Server.IntegrationTesting (50)
Common\DeploymentParameters.cs (2)
51ServerType serverType, 98public ServerType ServerType { get; set; }
Common\TestUriHelper.cs (6)
10public static Uri BuildTestUri(ServerType serverType) 15public static Uri BuildTestUri(ServerType serverType, string hint) 18var statusMessagesEnabled = (serverType == ServerType.Kestrel); 23internal static Uri BuildTestUri(ServerType serverType, string scheme, string hint, bool statusMessagesEnabled) 27if (serverType == ServerType.Kestrel && statusMessagesEnabled) 36else if (serverType == ServerType.HttpSys)
Common\TestUrlHelper.cs (1)
9public static string GetTestUrl(ServerType serverType)
Deployers\ApplicationDeployer.cs (1)
32if (DeploymentParameters.ServerType == ServerType.None)
Deployers\ApplicationDeployerFactory.cs (5)
27case ServerType.IISExpress: 28case ServerType.IIS: 30case ServerType.HttpSys: 31case ServerType.Kestrel: 33case ServerType.Nginx:
Deployers\NginxDeployer.cs (1)
56var redirectUri = TestUriHelper.BuildTestUri(ServerType.Nginx);
Deployers\RemoteWindowsDeployer\RemoteWindowsDeployer.cs (7)
29if (_deploymentParameters.ServerType != ServerType.IIS 30&& _deploymentParameters.ServerType != ServerType.Kestrel 31&& _deploymentParameters.ServerType != ServerType.HttpSys) 34$" Supported server types are {nameof(ServerType.Kestrel)}, {nameof(ServerType.IIS)} and {nameof(ServerType.HttpSys)}"); 85if (_deploymentParameters.ServerType == ServerType.IIS)
Deployers\RemoteWindowsDeployer\RemoteWindowsDeploymentParameters.cs (1)
11ServerType serverType,
Deployers\SelfHostDeployer.cs (1)
115var server = DeploymentParameters.ServerType == ServerType.HttpSys
TestMatrix.cs (20)
11public IList<ServerType> Servers { get; set; } = new List<ServerType>(); 21public static TestMatrix ForServers(params ServerType[] types) 135foreach (var server in Servers) 143private static string SkipIfServerIsNotSupportedOnThisOS(ServerType server) 148case ServerType.IIS: 149case ServerType.IISExpress: 150case ServerType.HttpSys: 153case ServerType.Kestrel: 155case ServerType.Nginx: 166private void VaryByTfm(List<TestVariant> variants, ServerType server, string skip) 182private static bool CheckTfmIsSupportedForServer(string tfm, ServerType server) 185return !(Tfm.Matches(Tfm.Net462, tfm) && ServerType.Nginx == server); 198private void VaryByApplicationType(List<TestVariant> variants, ServerType server, string tfm, string skip) 220private void VaryByArchitecture(List<TestVariant> variants, ServerType server, string tfm, string skip, ApplicationType type) 230if (server == ServerType.IISExpress || server == ServerType.IIS) 261private static bool IsArchitectureSupportedOnServer(RuntimeArchitecture arch, ServerType server) 264return !(arch == RuntimeArchitecture.x86 && ServerType.Nginx == server); 267private void VaryByAncmHostingModel(IList<TestVariant> variants, ServerType server, string tfm, ApplicationType type, RuntimeArchitecture arch, string skip)
TestVariant.cs (5)
10public ServerType Server { get; set; } 24if (Server == ServerType.IISExpress || Server == ServerType.IIS) 34info.AddValue(nameof(Server), Server, typeof(ServerType)); 44Server = info.GetValue<ServerType>(nameof(Server));
Microsoft.AspNetCore.Server.IntegrationTesting.IIS (6)
ApplicationDeployerFactory.cs (2)
27case ServerType.IISExpress: 29case ServerType.IIS:
IISDeployer.cs (1)
110var uri = TestUriHelper.BuildTestUri(ServerType.IIS, DeploymentParameters.ApplicationBaseUriHint);
IISDeploymentParameterExtensions.cs (1)
228if (parameters.ServerType == ServerType.IIS)
IISDeploymentParameters.cs (1)
21ServerType serverType,
IISExpressDeployer.cs (1)
160var uri = TestUriHelper.BuildTestUri(ServerType.IISExpress, DeploymentParameters.ApplicationBaseUriHint);
Microsoft.AspNetCore.StaticFiles.FunctionalTests (12)
FallbackStaticFileTest.cs (2)
33.UseUrls(TestUrlHelper.GetTestUrl(ServerType.Kestrel)) 86.UseUrls(TestUrlHelper.GetTestUrl(ServerType.Kestrel))
StaticFileMiddlewareTests.cs (10)
30.UseUrls(TestUrlHelper.GetTestUrl(ServerType.Kestrel)) 53.UseUrls(TestUrlHelper.GetTestUrl(ServerType.Kestrel)) 99.UseUrls(TestUrlHelper.GetTestUrl(ServerType.Kestrel)) 144.UseUrls(TestUrlHelper.GetTestUrl(ServerType.Kestrel)) 186.UseUrls(TestUrlHelper.GetTestUrl(ServerType.Kestrel)) 224return ClientDisconnect_NoWriteExceptionThrown(ServerType.Kestrel); 232return ClientDisconnect_NoWriteExceptionThrown(ServerType.HttpSys); 235private async Task ClientDisconnect_NoWriteExceptionThrown(ServerType serverType) 269if (serverType == ServerType.HttpSys) 273else if (serverType == ServerType.Kestrel)
Microsoft.AspNetCore.WebSockets.ConformanceTests (10)
Autobahn\AutobahnExpectations.cs (2)
13public ServerType Server { get; } 16public AutobahnExpectations(ServerType server, bool ssl, string environment)
Autobahn\AutobahnServerResult.cs (3)
11public ServerType Server { get; } 27Server = (ServerType)Enum.Parse(typeof(ServerType), splat[0]);
Autobahn\AutobahnTester.cs (2)
126public async Task DeployTestAndAddToSpec(ServerType server, bool ssl, string environment, CancellationToken cancellationToken, Action<AutobahnExpectations> expectationConfig = null) 141ServerConfigTemplateContent = (server == ServerType.IISExpress) ? File.ReadAllText(configPath) : null,
AutobahnTests.cs (3)
60await tester.DeployTestAndAddToSpec(ServerType.Kestrel, ssl: false, environment: "ManagedSockets", cancellationToken: cts.Token); 61await tester.DeployTestAndAddToSpec(ServerType.Kestrel, ssl: true, environment: "ManagedSockets", cancellationToken: cts.Token); 68await tester.DeployTestAndAddToSpec(ServerType.HttpSys, ssl: false, environment: "ManagedSockets", cancellationToken: cts.Token);
ServerComparison.FunctionalTests (41)
HelloWorldTest.cs (14)
26=> TestMatrix.ForServers(ServerType.IISExpress, ServerType.Kestrel, ServerType.Nginx, ServerType.HttpSys) 39variant.Server == ServerType.Nginx ? LogLevel.Trace : LogLevel.Debug, // https://github.com/aspnet/ServerTests/issues/144 49if (variant.Server == ServerType.Nginx) 54if (variant.Server == ServerType.IISExpress) 87case ServerType.HttpSys: 90case ServerType.Nginx: 93case ServerType.Kestrel: 96case ServerType.IIS: 97case ServerType.IISExpress: 115=> TestMatrix.ForServers(ServerType.Kestrel, ServerType.HttpSys)
NtlmAuthenticationTest.cs (4)
24=> TestMatrix.ForServers(ServerType.IISExpress, ServerType.HttpSys, ServerType.Kestrel) 70if (variant.Server == ServerType.Kestrel)
ResponseCompressionTests.cs (16)
36=> TestMatrix.ForServers(ServerType.IISExpress, ServerType.Kestrel, ServerType.Nginx, ServerType.HttpSys) 48=> TestMatrix.ForServers(ServerType.IISExpress, ServerType.Nginx) 60=> TestMatrix.ForServers(ServerType.IISExpress, ServerType.Kestrel, ServerType.HttpSys) // No pass-through compression for nginx 72=> TestMatrix.ForServers(ServerType.IISExpress, ServerType.Kestrel, ServerType.Nginx, ServerType.HttpSys) 90variant.Server == ServerType.Nginx ? LogLevel.Trace : LogLevel.Debug, // https://github.com/aspnet/ServerTests/issues/144 101if (variant.Server == ServerType.Nginx) 107else if (variant.Server == ServerType.IISExpress && !hostCompression)
ResponseTests.cs (7)
28=> TestMatrix.ForServers(/* ServerType.IISExpress, https://github.com/dotnet/aspnetcore/issues/6168, */ ServerType.Kestrel, ServerType.Nginx, ServerType.HttpSys) 54=> TestMatrix.ForServers(ServerType.Kestrel, ServerType.HttpSys) 83variant.Server == ServerType.Nginx ? LogLevel.Trace : LogLevel.Debug, // https://github.com/aspnet/ServerTests/issues/144 94if (variant.Server == ServerType.Nginx)