1 write to HttpClient
Microsoft.AspNetCore.Server.IntegrationTesting.IIS (1)
IISDeploymentResult.cs (1)
34HttpClient = CreateClient(new HttpClientHandler());
417 references to HttpClient
IIS.FunctionalTests (63)
src\Servers\IIS\IIS\test\Common.FunctionalTests\AspNetCorePortTests.cs (7)
64var responseText = await deploymentResult.HttpClient.GetStringAsync("/ServerAddresses"); 79var responseText = await deploymentResult.HttpClient.GetStringAsync("/ServerAddresses"); 95var response = await deploymentResult.HttpClient.GetAsync("/ServerAddresses"); 111var response = await deploymentResult.HttpClient.GetAsync("/Shutdown"); 118response = await deploymentResult.HttpClient.GetAsync("/HelloWorld"); 132response = await deploymentResult.HttpClient.GetAsync("/Shutdown"); 138response = await deploymentResult.HttpClient.GetAsync("/HelloWorld");
src\Servers\IIS\IIS\test\Common.FunctionalTests\BasicAuthTests.cs (1)
64var response = await deploymentResult.HttpClient.SendAsync(request);
src\Servers\IIS\IIS\test\Common.FunctionalTests\FrebTests.cs (5)
58await result.HttpClient.GetAsync("HelloWorld"); 74await result.HttpClient.GetAsync("HelloWorld"); 87await result.HttpClient.GetAsync("Throw"); 100using (var connection = new TestConnection(result.HttpClient.BaseAddress.Port)) 108await result.HttpClient.RetryRequestAsync("/WaitingRequestCount", async message => await message.Content.ReadAsStringAsync() == "1");
src\Servers\IIS\IIS\test\Common.FunctionalTests\GlobalVersionTests.cs (11)
52var response = await deploymentResult.HttpClient.GetAsync(_helloWorldRequest); 76var response = await deploymentResult.HttpClient.GetAsync(_helloWorldRequest); 99var response = await deploymentResult.HttpClient.GetAsync(_helloWorldRequest); 122var response = await deploymentResult.HttpClient.GetAsync(_helloWorldRequest); 145deploymentResult.HttpClient.DefaultRequestHeaders.Add("ANCMRHPath", newANCMPath); 146var response = await deploymentResult.HttpClient.GetAsync("CheckRequestHandlerVersion"); 166deploymentResult.HttpClient.DefaultRequestHeaders.Add("ANCMRHPath", originalANCMPath); 167var response = await deploymentResult.HttpClient.GetAsync("CheckRequestHandlerVersion"); 182deploymentResult.HttpClient.DefaultRequestHeaders.Add("ANCMRHPath", newANCMPath); 183response = await deploymentResult.HttpClient.GetAsync("CheckRequestHandlerVersion"); 199var response = await deploymentResult.HttpClient.GetAsync("HelloWorld");
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\FunctionalTestsBase.cs (1)
49return await result.HttpClient.GetStringAsync(path);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (1)
29var response = await deploymentResult.HttpClient.RetryRequestAsync(path, r => r.IsSuccessStatusCode);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISFunctionalTestBase.cs (2)
53var response = await deploymentResult.HttpClient.RetryRequestAsync("HelloWorld", r => r.StatusCode == HttpStatusCode.ServiceUnavailable); 68var response = await deploymentResult.HttpClient.RetryRequestAsync("HelloWorld", r => r.IsSuccessStatusCode);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISTestSiteFixture.cs (1)
60public HttpClient Client => DeploymentResult.HttpClient;
src\Servers\IIS\IIS\test\Common.FunctionalTests\Inprocess\HttpSysRequestInfoTests.cs (1)
35var response = await deploymentResult.HttpClient.GetAsync("/HttpSysRequestTimingInfo");
src\Servers\IIS\IIS\test\Common.FunctionalTests\Inprocess\MaxRequestBodySizeTests.cs (6)
44var result = await deploymentResult.HttpClient.PostAsync("/ReadRequestBody", new StringContent("test")); 64var result = await deploymentResult.HttpClient.PostAsync("/ReadRequestBody", new StringContent("test")); 87var result = await deploymentResult.HttpClient.PostAsync("/ReadRequestBodyLarger", new StringContent(new string('a', 100000000))); 108var result = await deploymentResult.HttpClient.PostAsync("/ReadRequestBodyLarger", new StringContent(new string('a', 10000))); 120using (var connection = new TestConnection(deploymentResult.HttpClient.BaseAddress.Port)) 154var result = await deploymentResult.HttpClient.PostAsync("/IncreaseRequestLimit", new StringContent("1"));
src\Servers\IIS\IIS\test\Common.FunctionalTests\Latin1Tests.cs (1)
82using (var connection = new TestConnection(deploymentResult.HttpClient.BaseAddress.Port))
src\Servers\IIS\IIS\test\Common.FunctionalTests\LoggingTests.cs (8)
118await deploymentResult.HttpClient.GetAsync("/"); 132await deploymentResult.HttpClient.GetAsync("/"); 148await deploymentResult.HttpClient.GetAsync("/"); 169var response = await deploymentResult.HttpClient.GetAsync("/"); 211var response = await deploymentResult.HttpClient.GetAsync(path); 245var response = await deploymentResult.HttpClient.GetAsync("Test"); 261var response = await deploymentResult.HttpClient.GetAsync("Test"); 275var response = await deploymentResult.HttpClient.GetAsync("Test");
src\Servers\IIS\IIS\test\Common.FunctionalTests\MaxRequestBodySizeTests.cs (6)
45var result = await deploymentResult.HttpClient.PostAsync("/ReadRequestBody", new StringContent("test")); 65var result = await deploymentResult.HttpClient.PostAsync("/ReadRequestBody", new StringContent("test")); 88var result = await deploymentResult.HttpClient.PostAsync("/ReadRequestBodyLarger", new StringContent(new string('a', 100000000))); 109var result = await deploymentResult.HttpClient.PostAsync("/ReadRequestBodyLarger", new StringContent(new string('a', 10000))); 121using (var connection = new TestConnection(deploymentResult.HttpClient.BaseAddress.Port)) 155var result = await deploymentResult.HttpClient.PostAsync("/IncreaseRequestLimit", new StringContent("1"));
src\Servers\IIS\IIS\test\Common.FunctionalTests\MultiApplicationTests.cs (6)
47var id1 = await result.HttpClient.GetStringAsync("/app1/ProcessId"); 48var id2 = await result.HttpClient.GetStringAsync("/app2/ProcessId"); 59var result1 = await result.HttpClient.GetAsync("/app1/HelloWorld"); 60var result2 = await result.HttpClient.GetAsync("/app2/HelloWorld"); 86var result1 = await result.HttpClient.GetAsync("/app1/HelloWorld"); 87var result2 = await result.HttpClient.GetAsync("/app2/HelloWorld");
src\Servers\IIS\IIS\test\Common.FunctionalTests\RequestResponseTests.cs (1)
609Assert.Equal(_fixture.DeploymentResult.ContentRoot, await _fixture.DeploymentResult.HttpClient.GetStringAsync("/CurrentDirectory"));
src\Servers\IIS\IIS\test\IIS.Shared.FunctionalTests\StdOutRedirectionTests.cs (5)
45var response = await deploymentResult.HttpClient.GetAsync("/HelloWorld"); 69var response = await deploymentResult.HttpClient.GetAsync("/HelloWorld"); 99var response = await deploymentResult.HttpClient.GetAsync("/HelloWorld"); 125var response = await deploymentResult.HttpClient.GetAsync("/HelloWorld"); 152var response = await deploymentResult.HttpClient.GetAsync("/HelloWorld");
IIS.LongTests (65)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\FunctionalTestsBase.cs (1)
49return await result.HttpClient.GetStringAsync(path);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (1)
29var response = await deploymentResult.HttpClient.RetryRequestAsync(path, r => r.IsSuccessStatusCode);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISFunctionalTestBase.cs (2)
53var response = await deploymentResult.HttpClient.RetryRequestAsync("HelloWorld", r => r.StatusCode == HttpStatusCode.ServiceUnavailable); 68var response = await deploymentResult.HttpClient.RetryRequestAsync("HelloWorld", r => r.IsSuccessStatusCode);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISTestSiteFixture.cs (1)
60public HttpClient Client => DeploymentResult.HttpClient;
src\Servers\IIS\IIS\test\Common.LongTests\ShutdownTests.cs (25)
48Assert.Equal("Hello World", await deploymentResult.HttpClient.GetStringAsync("/HelloWorld")); 68await deploymentResult.HttpClient.GetAsync(path); 144var result = await deploymentResult.HttpClient.GetAsync("/"); 163var result = await deploymentResult.HttpClient.GetAsync("/"); 181var result = await deploymentResult.HttpClient.GetAsync("/"); 201var result = await deploymentResult.HttpClient.GetAsync("/HelloWorld"); 208var connection = new TestConnection(deploymentResult.HttpClient.BaseAddress.Port); 225var statusConnection = new TestConnection(deploymentResult.HttpClient.BaseAddress.Port); 277var result = await deploymentResult.HttpClient.GetAsync("/HelloWorld"); 288using var res = await deploymentResult.HttpClient.GetAsync("/HelloWorld"); 314var result = await deploymentResult.HttpClient.GetAsync("/HelloWorld"); 325using var res = await deploymentResult.HttpClient.GetAsync("/HelloWorld"); 411var load = Helpers.StressLoad(deploymentResult.HttpClient, "/HelloWorld", response => 471var processBefore = await deploymentResult.HttpClient.GetStringAsync("/ProcessId"); 478await deploymentResult.HttpClient.RetryRequestAsync("/ProcessId", async r => await r.Content.ReadAsStringAsync() != processBefore); 489var processBefore = await deploymentResult.HttpClient.GetStringAsync("/ProcessId"); 498await deploymentResult.HttpClient.RetryRequestAsync("/ProcessId", async r => await r.Content.ReadAsStringAsync() == processBefore); 509var processBefore = await deploymentResult.HttpClient.GetStringAsync("/ProcessId"); 518await deploymentResult.HttpClient.RetryRequestAsync("/ProcessId", async r => await r.Content.ReadAsStringAsync() == processBefore); 530var processBefore = await deploymentResult.HttpClient.GetStringAsync("/ProcessId"); 537await deploymentResult.HttpClient.RetryRequestAsync("/ProcessId", async r => await r.Content.ReadAsStringAsync() == processBefore); 559await deploymentResult.HttpClient.RetryRequestAsync("/HelloWorld", r => r.Headers.Server.ToString().StartsWith("Microsoft", StringComparison.Ordinal)); 574var load = Helpers.StressLoad(deploymentResult.HttpClient, "/HelloWorld", response => 614var response = await deploymentResult.HttpClient.GetAsync("/Abort").TimeoutAfter(TimeoutExtensions.DefaultTimeoutValue); 641var response = await deploymentResult.HttpClient.GetAsync("/Abort").TimeoutAfter(TimeoutExtensions.DefaultTimeoutValue);
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (35)
68var response = await deploymentResult.HttpClient.GetAsync("HelloWorld"); 177var response = await deploymentResult.HttpClient.GetAsync("/HelloWorld"); 228var response = await deploymentResult.HttpClient.GetAsync("/"); 246var response = await deploymentResult.HttpClient.GetAsync("/"); 263var response = await deploymentResult.HttpClient.GetAsync("/HelloWorld"); 427var response = await deploymentResult.HttpClient.GetAsync("/HelloWorld"); 479var response = await deploymentResult.HttpClient.GetAsync("/"); 512var response = await deploymentResult.HttpClient.GetAsync("/"); 537var response = await deploymentResult.HttpClient.GetAsync("HelloWorld"); 559var result = await deploymentResult.HttpClient.GetAsync("/HelloWorld"); 604Assert.Equal(expectedArguments, await result.HttpClient.GetStringAsync("/CommandLineArgs")); 675Assert.Equal(expectedArguments, await result.HttpClient.GetStringAsync("/CommandLineArgs")); 713Assert.Equal(deploymentResult.ContentRoot, await deploymentResult.HttpClient.GetStringAsync("/ContentRootPath")); 714Assert.Equal(deploymentResult.ContentRoot + "\\wwwroot", await deploymentResult.HttpClient.GetStringAsync("/WebRootPath")); 715Assert.Equal(Path.GetDirectoryName(deploymentResult.HostProcess.MainModule.FileName), await deploymentResult.HttpClient.GetStringAsync("/CurrentDirectory")); 716Assert.Equal(deploymentResult.ContentRoot + "\\", await deploymentResult.HttpClient.GetStringAsync("/BaseDirectory")); 717Assert.Equal(deploymentResult.ContentRoot + "\\", await deploymentResult.HttpClient.GetStringAsync("/ASPNETCORE_IIS_PHYSICAL_PATH")); 772var result = await deploymentResult.HttpClient.GetAsync("/"); 796var result = await deploymentResult.HttpClient.GetAsync("/"); 819var result = await deploymentResult.HttpClient.GetAsync("/"); 844var result = await deploymentResult.HttpClient.GetAsync("/"); 866var result = await deploymentResult.HttpClient.GetAsync("/"); 887var result = await deploymentResult.HttpClient.GetAsync("/StartupHook"); 905var result = await deploymentResult.HttpClient.GetAsync("/StartupHook"); 918var result = await deploymentResult.HttpClient.GetAsync("/StackSize"); 930var result = await deploymentResult.HttpClient.GetAsync("/StackSizeLarge"); 974var response = await deploymentResult.HttpClient.GetAsync("/OnCompletedThrows"); 1060var response = await deploymentResult.HttpClient.GetAsync("/HelloWorld"); 1115var response = await deploymentResult.HttpClient.GetAsync("HelloWorld"); 1138var response = await deploymentResult.HttpClient.GetAsync("HelloWorld"); 1436var response = await deploymentResult.HttpClient.GetAsync("ConnectionClose"); 1500return await deploymentResult.HttpClient.GetAsync("HelloWorld"); 1505var response = await deploymentResult.HttpClient.GetAsync("/HelloWorld"); 1579response = await deploymentResult.HttpClient.GetAsync("/HelloWorld"); 1594response = await deploymentResult.HttpClient.GetAsync("/HelloWorld");
IIS.NewHandler.FunctionalTests (66)
NewHandlerTests.cs (1)
27var response = await result.HttpClient.GetAsync("/HelloWorld");
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\FunctionalTestsBase.cs (1)
49return await result.HttpClient.GetStringAsync(path);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (1)
29var response = await deploymentResult.HttpClient.RetryRequestAsync(path, r => r.IsSuccessStatusCode);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISFunctionalTestBase.cs (2)
53var response = await deploymentResult.HttpClient.RetryRequestAsync("HelloWorld", r => r.StatusCode == HttpStatusCode.ServiceUnavailable); 68var response = await deploymentResult.HttpClient.RetryRequestAsync("HelloWorld", r => r.IsSuccessStatusCode);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISTestSiteFixture.cs (1)
60public HttpClient Client => DeploymentResult.HttpClient;
src\Servers\IIS\IIS\test\Common.LongTests\ShutdownTests.cs (25)
48Assert.Equal("Hello World", await deploymentResult.HttpClient.GetStringAsync("/HelloWorld")); 68await deploymentResult.HttpClient.GetAsync(path); 144var result = await deploymentResult.HttpClient.GetAsync("/"); 163var result = await deploymentResult.HttpClient.GetAsync("/"); 181var result = await deploymentResult.HttpClient.GetAsync("/"); 201var result = await deploymentResult.HttpClient.GetAsync("/HelloWorld"); 208var connection = new TestConnection(deploymentResult.HttpClient.BaseAddress.Port); 225var statusConnection = new TestConnection(deploymentResult.HttpClient.BaseAddress.Port); 277var result = await deploymentResult.HttpClient.GetAsync("/HelloWorld"); 288using var res = await deploymentResult.HttpClient.GetAsync("/HelloWorld"); 314var result = await deploymentResult.HttpClient.GetAsync("/HelloWorld"); 325using var res = await deploymentResult.HttpClient.GetAsync("/HelloWorld"); 411var load = Helpers.StressLoad(deploymentResult.HttpClient, "/HelloWorld", response => 471var processBefore = await deploymentResult.HttpClient.GetStringAsync("/ProcessId"); 478await deploymentResult.HttpClient.RetryRequestAsync("/ProcessId", async r => await r.Content.ReadAsStringAsync() != processBefore); 489var processBefore = await deploymentResult.HttpClient.GetStringAsync("/ProcessId"); 498await deploymentResult.HttpClient.RetryRequestAsync("/ProcessId", async r => await r.Content.ReadAsStringAsync() == processBefore); 509var processBefore = await deploymentResult.HttpClient.GetStringAsync("/ProcessId"); 518await deploymentResult.HttpClient.RetryRequestAsync("/ProcessId", async r => await r.Content.ReadAsStringAsync() == processBefore); 530var processBefore = await deploymentResult.HttpClient.GetStringAsync("/ProcessId"); 537await deploymentResult.HttpClient.RetryRequestAsync("/ProcessId", async r => await r.Content.ReadAsStringAsync() == processBefore); 559await deploymentResult.HttpClient.RetryRequestAsync("/HelloWorld", r => r.Headers.Server.ToString().StartsWith("Microsoft", StringComparison.Ordinal)); 574var load = Helpers.StressLoad(deploymentResult.HttpClient, "/HelloWorld", response => 614var response = await deploymentResult.HttpClient.GetAsync("/Abort").TimeoutAfter(TimeoutExtensions.DefaultTimeoutValue); 641var response = await deploymentResult.HttpClient.GetAsync("/Abort").TimeoutAfter(TimeoutExtensions.DefaultTimeoutValue);
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (35)
68var response = await deploymentResult.HttpClient.GetAsync("HelloWorld"); 177var response = await deploymentResult.HttpClient.GetAsync("/HelloWorld"); 228var response = await deploymentResult.HttpClient.GetAsync("/"); 246var response = await deploymentResult.HttpClient.GetAsync("/"); 263var response = await deploymentResult.HttpClient.GetAsync("/HelloWorld"); 427var response = await deploymentResult.HttpClient.GetAsync("/HelloWorld"); 479var response = await deploymentResult.HttpClient.GetAsync("/"); 512var response = await deploymentResult.HttpClient.GetAsync("/"); 537var response = await deploymentResult.HttpClient.GetAsync("HelloWorld"); 559var result = await deploymentResult.HttpClient.GetAsync("/HelloWorld"); 604Assert.Equal(expectedArguments, await result.HttpClient.GetStringAsync("/CommandLineArgs")); 675Assert.Equal(expectedArguments, await result.HttpClient.GetStringAsync("/CommandLineArgs")); 713Assert.Equal(deploymentResult.ContentRoot, await deploymentResult.HttpClient.GetStringAsync("/ContentRootPath")); 714Assert.Equal(deploymentResult.ContentRoot + "\\wwwroot", await deploymentResult.HttpClient.GetStringAsync("/WebRootPath")); 715Assert.Equal(Path.GetDirectoryName(deploymentResult.HostProcess.MainModule.FileName), await deploymentResult.HttpClient.GetStringAsync("/CurrentDirectory")); 716Assert.Equal(deploymentResult.ContentRoot + "\\", await deploymentResult.HttpClient.GetStringAsync("/BaseDirectory")); 717Assert.Equal(deploymentResult.ContentRoot + "\\", await deploymentResult.HttpClient.GetStringAsync("/ASPNETCORE_IIS_PHYSICAL_PATH")); 772var result = await deploymentResult.HttpClient.GetAsync("/"); 796var result = await deploymentResult.HttpClient.GetAsync("/"); 819var result = await deploymentResult.HttpClient.GetAsync("/"); 844var result = await deploymentResult.HttpClient.GetAsync("/"); 866var result = await deploymentResult.HttpClient.GetAsync("/"); 887var result = await deploymentResult.HttpClient.GetAsync("/StartupHook"); 905var result = await deploymentResult.HttpClient.GetAsync("/StartupHook"); 918var result = await deploymentResult.HttpClient.GetAsync("/StackSize"); 930var result = await deploymentResult.HttpClient.GetAsync("/StackSizeLarge"); 974var response = await deploymentResult.HttpClient.GetAsync("/OnCompletedThrows"); 1060var response = await deploymentResult.HttpClient.GetAsync("/HelloWorld"); 1115var response = await deploymentResult.HttpClient.GetAsync("HelloWorld"); 1138var response = await deploymentResult.HttpClient.GetAsync("HelloWorld"); 1436var response = await deploymentResult.HttpClient.GetAsync("ConnectionClose"); 1500return await deploymentResult.HttpClient.GetAsync("HelloWorld"); 1505var response = await deploymentResult.HttpClient.GetAsync("/HelloWorld"); 1579response = await deploymentResult.HttpClient.GetAsync("/HelloWorld"); 1594response = await deploymentResult.HttpClient.GetAsync("/HelloWorld");
IIS.NewShim.FunctionalTests (66)
NewShimTests.cs (1)
25var response = await result.HttpClient.GetAsync("/HelloWorld");
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\FunctionalTestsBase.cs (1)
49return await result.HttpClient.GetStringAsync(path);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (1)
29var response = await deploymentResult.HttpClient.RetryRequestAsync(path, r => r.IsSuccessStatusCode);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISFunctionalTestBase.cs (2)
53var response = await deploymentResult.HttpClient.RetryRequestAsync("HelloWorld", r => r.StatusCode == HttpStatusCode.ServiceUnavailable); 68var response = await deploymentResult.HttpClient.RetryRequestAsync("HelloWorld", r => r.IsSuccessStatusCode);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISTestSiteFixture.cs (1)
60public HttpClient Client => DeploymentResult.HttpClient;
src\Servers\IIS\IIS\test\Common.LongTests\ShutdownTests.cs (25)
48Assert.Equal("Hello World", await deploymentResult.HttpClient.GetStringAsync("/HelloWorld")); 68await deploymentResult.HttpClient.GetAsync(path); 144var result = await deploymentResult.HttpClient.GetAsync("/"); 163var result = await deploymentResult.HttpClient.GetAsync("/"); 181var result = await deploymentResult.HttpClient.GetAsync("/"); 201var result = await deploymentResult.HttpClient.GetAsync("/HelloWorld"); 208var connection = new TestConnection(deploymentResult.HttpClient.BaseAddress.Port); 225var statusConnection = new TestConnection(deploymentResult.HttpClient.BaseAddress.Port); 277var result = await deploymentResult.HttpClient.GetAsync("/HelloWorld"); 288using var res = await deploymentResult.HttpClient.GetAsync("/HelloWorld"); 314var result = await deploymentResult.HttpClient.GetAsync("/HelloWorld"); 325using var res = await deploymentResult.HttpClient.GetAsync("/HelloWorld"); 411var load = Helpers.StressLoad(deploymentResult.HttpClient, "/HelloWorld", response => 471var processBefore = await deploymentResult.HttpClient.GetStringAsync("/ProcessId"); 478await deploymentResult.HttpClient.RetryRequestAsync("/ProcessId", async r => await r.Content.ReadAsStringAsync() != processBefore); 489var processBefore = await deploymentResult.HttpClient.GetStringAsync("/ProcessId"); 498await deploymentResult.HttpClient.RetryRequestAsync("/ProcessId", async r => await r.Content.ReadAsStringAsync() == processBefore); 509var processBefore = await deploymentResult.HttpClient.GetStringAsync("/ProcessId"); 518await deploymentResult.HttpClient.RetryRequestAsync("/ProcessId", async r => await r.Content.ReadAsStringAsync() == processBefore); 530var processBefore = await deploymentResult.HttpClient.GetStringAsync("/ProcessId"); 537await deploymentResult.HttpClient.RetryRequestAsync("/ProcessId", async r => await r.Content.ReadAsStringAsync() == processBefore); 559await deploymentResult.HttpClient.RetryRequestAsync("/HelloWorld", r => r.Headers.Server.ToString().StartsWith("Microsoft", StringComparison.Ordinal)); 574var load = Helpers.StressLoad(deploymentResult.HttpClient, "/HelloWorld", response => 614var response = await deploymentResult.HttpClient.GetAsync("/Abort").TimeoutAfter(TimeoutExtensions.DefaultTimeoutValue); 641var response = await deploymentResult.HttpClient.GetAsync("/Abort").TimeoutAfter(TimeoutExtensions.DefaultTimeoutValue);
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (35)
68var response = await deploymentResult.HttpClient.GetAsync("HelloWorld"); 177var response = await deploymentResult.HttpClient.GetAsync("/HelloWorld"); 228var response = await deploymentResult.HttpClient.GetAsync("/"); 246var response = await deploymentResult.HttpClient.GetAsync("/"); 263var response = await deploymentResult.HttpClient.GetAsync("/HelloWorld"); 427var response = await deploymentResult.HttpClient.GetAsync("/HelloWorld"); 479var response = await deploymentResult.HttpClient.GetAsync("/"); 512var response = await deploymentResult.HttpClient.GetAsync("/"); 537var response = await deploymentResult.HttpClient.GetAsync("HelloWorld"); 559var result = await deploymentResult.HttpClient.GetAsync("/HelloWorld"); 604Assert.Equal(expectedArguments, await result.HttpClient.GetStringAsync("/CommandLineArgs")); 675Assert.Equal(expectedArguments, await result.HttpClient.GetStringAsync("/CommandLineArgs")); 713Assert.Equal(deploymentResult.ContentRoot, await deploymentResult.HttpClient.GetStringAsync("/ContentRootPath")); 714Assert.Equal(deploymentResult.ContentRoot + "\\wwwroot", await deploymentResult.HttpClient.GetStringAsync("/WebRootPath")); 715Assert.Equal(Path.GetDirectoryName(deploymentResult.HostProcess.MainModule.FileName), await deploymentResult.HttpClient.GetStringAsync("/CurrentDirectory")); 716Assert.Equal(deploymentResult.ContentRoot + "\\", await deploymentResult.HttpClient.GetStringAsync("/BaseDirectory")); 717Assert.Equal(deploymentResult.ContentRoot + "\\", await deploymentResult.HttpClient.GetStringAsync("/ASPNETCORE_IIS_PHYSICAL_PATH")); 772var result = await deploymentResult.HttpClient.GetAsync("/"); 796var result = await deploymentResult.HttpClient.GetAsync("/"); 819var result = await deploymentResult.HttpClient.GetAsync("/"); 844var result = await deploymentResult.HttpClient.GetAsync("/"); 866var result = await deploymentResult.HttpClient.GetAsync("/"); 887var result = await deploymentResult.HttpClient.GetAsync("/StartupHook"); 905var result = await deploymentResult.HttpClient.GetAsync("/StartupHook"); 918var result = await deploymentResult.HttpClient.GetAsync("/StackSize"); 930var result = await deploymentResult.HttpClient.GetAsync("/StackSizeLarge"); 974var response = await deploymentResult.HttpClient.GetAsync("/OnCompletedThrows"); 1060var response = await deploymentResult.HttpClient.GetAsync("/HelloWorld"); 1115var response = await deploymentResult.HttpClient.GetAsync("HelloWorld"); 1138var response = await deploymentResult.HttpClient.GetAsync("HelloWorld"); 1436var response = await deploymentResult.HttpClient.GetAsync("ConnectionClose"); 1500return await deploymentResult.HttpClient.GetAsync("HelloWorld"); 1505var response = await deploymentResult.HttpClient.GetAsync("/HelloWorld"); 1579response = await deploymentResult.HttpClient.GetAsync("/HelloWorld"); 1594response = await deploymentResult.HttpClient.GetAsync("/HelloWorld");
IIS.ShadowCopy.Tests (24)
ShadowCopyTests.cs (19)
26var response = await deploymentResult.HttpClient.GetAsync("Wow!"); 52var response = await deploymentResult.HttpClient.GetAsync("Wow!"); 83var response = await deploymentResult.HttpClient.GetAsync("Wow!"); 118var response = await deploymentResult.HttpClient.GetAsync("Wow!"); 137response = await deploymentResult.HttpClient.GetAsync("Wow!"); 154var response = await deploymentResult.HttpClient.GetAsync("Wow!"); 168response = await deploymentResult.HttpClient.GetAsync("Wow!"); 183var response = await deploymentResult.HttpClient.GetAsync("Wow!"); 194response = await deploymentResult.HttpClient.GetAsync("Wow!"); 210var response = await deploymentResult.HttpClient.GetAsync("Wow!"); 219response = await deploymentResult.HttpClient.GetAsync("Wow!"); 233response = await deploymentResult.HttpClient.GetAsync("Wow!"); 252var response = await deploymentResult.HttpClient.GetAsync("Wow!"); 261response = await deploymentResult.HttpClient.GetAsync("Wow!"); 275response = await deploymentResult.HttpClient.GetAsync("Wow!"); 294var response = await deploymentResult.HttpClient.GetAsync("Wow!"); 309response = await deploymentResult.HttpClient.GetAsync("Wow!"); 324var response = await deploymentResult.HttpClient.GetAsync("Wow!"); 339response = await deploymentResult.HttpClient.GetAsync("Wow!");
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\FunctionalTestsBase.cs (1)
49return await result.HttpClient.GetStringAsync(path);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (1)
29var response = await deploymentResult.HttpClient.RetryRequestAsync(path, r => r.IsSuccessStatusCode);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISFunctionalTestBase.cs (2)
53var response = await deploymentResult.HttpClient.RetryRequestAsync("HelloWorld", r => r.StatusCode == HttpStatusCode.ServiceUnavailable); 68var response = await deploymentResult.HttpClient.RetryRequestAsync("HelloWorld", r => r.IsSuccessStatusCode);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISTestSiteFixture.cs (1)
60public HttpClient Client => DeploymentResult.HttpClient;
IISExpress.FunctionalTests (132)
InProcess\AuthenticationTests.cs (4)
31var response = await deploymentResult.HttpClient.GetAsync("/AuthenticationAnonymous"); 37response = await deploymentResult.HttpClient.GetAsync("/AuthenticationRestricted"); 43response = await deploymentResult.HttpClient.GetAsync("/AuthenticationRestrictedNTLM"); 50response = await deploymentResult.HttpClient.GetAsync("/AuthenticationForbidden");
InProcess\IISExpressShutdownTests.cs (7)
33await deploymentResult.HttpClient.GetAsync("/Shutdown"); 41deploymentResult.HttpClient.Dispose(); 54var load = Helpers.StressLoad(deploymentResult.HttpClient, "/HelloWorld", response => 62await deploymentResult.HttpClient.GetAsync("/Shutdown"); 71deploymentResult.HttpClient.Dispose(); 84var response = await result.HttpClient.GetAsync("/HelloWorld"); 96var response = await result.HttpClient.GetAsync("/HelloWorld");
OutOfProcess\NtlmAuthentationTest.cs (2)
45var response = await result.HttpClient.GetAsync("/HelloWorld"); 51var httpClient = result.HttpClient;
src\Servers\IIS\IIS\test\Common.FunctionalTests\AspNetCorePortTests.cs (7)
64var responseText = await deploymentResult.HttpClient.GetStringAsync("/ServerAddresses"); 79var responseText = await deploymentResult.HttpClient.GetStringAsync("/ServerAddresses"); 95var response = await deploymentResult.HttpClient.GetAsync("/ServerAddresses"); 111var response = await deploymentResult.HttpClient.GetAsync("/Shutdown"); 118response = await deploymentResult.HttpClient.GetAsync("/HelloWorld"); 132response = await deploymentResult.HttpClient.GetAsync("/Shutdown"); 138response = await deploymentResult.HttpClient.GetAsync("/HelloWorld");
src\Servers\IIS\IIS\test\Common.FunctionalTests\BasicAuthTests.cs (1)
64var response = await deploymentResult.HttpClient.SendAsync(request);
src\Servers\IIS\IIS\test\Common.FunctionalTests\FrebTests.cs (5)
58await result.HttpClient.GetAsync("HelloWorld"); 74await result.HttpClient.GetAsync("HelloWorld"); 87await result.HttpClient.GetAsync("Throw"); 100using (var connection = new TestConnection(result.HttpClient.BaseAddress.Port)) 108await result.HttpClient.RetryRequestAsync("/WaitingRequestCount", async message => await message.Content.ReadAsStringAsync() == "1");
src\Servers\IIS\IIS\test\Common.FunctionalTests\GlobalVersionTests.cs (11)
52var response = await deploymentResult.HttpClient.GetAsync(_helloWorldRequest); 76var response = await deploymentResult.HttpClient.GetAsync(_helloWorldRequest); 99var response = await deploymentResult.HttpClient.GetAsync(_helloWorldRequest); 122var response = await deploymentResult.HttpClient.GetAsync(_helloWorldRequest); 145deploymentResult.HttpClient.DefaultRequestHeaders.Add("ANCMRHPath", newANCMPath); 146var response = await deploymentResult.HttpClient.GetAsync("CheckRequestHandlerVersion"); 166deploymentResult.HttpClient.DefaultRequestHeaders.Add("ANCMRHPath", originalANCMPath); 167var response = await deploymentResult.HttpClient.GetAsync("CheckRequestHandlerVersion"); 182deploymentResult.HttpClient.DefaultRequestHeaders.Add("ANCMRHPath", newANCMPath); 183response = await deploymentResult.HttpClient.GetAsync("CheckRequestHandlerVersion"); 199var response = await deploymentResult.HttpClient.GetAsync("HelloWorld");
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\FunctionalTestsBase.cs (1)
49return await result.HttpClient.GetStringAsync(path);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (1)
29var response = await deploymentResult.HttpClient.RetryRequestAsync(path, r => r.IsSuccessStatusCode);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISFunctionalTestBase.cs (2)
53var response = await deploymentResult.HttpClient.RetryRequestAsync("HelloWorld", r => r.StatusCode == HttpStatusCode.ServiceUnavailable); 68var response = await deploymentResult.HttpClient.RetryRequestAsync("HelloWorld", r => r.IsSuccessStatusCode);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISTestSiteFixture.cs (1)
60public HttpClient Client => DeploymentResult.HttpClient;
src\Servers\IIS\IIS\test\Common.FunctionalTests\Inprocess\HttpSysRequestInfoTests.cs (1)
35var response = await deploymentResult.HttpClient.GetAsync("/HttpSysRequestTimingInfo");
src\Servers\IIS\IIS\test\Common.FunctionalTests\Inprocess\MaxRequestBodySizeTests.cs (6)
44var result = await deploymentResult.HttpClient.PostAsync("/ReadRequestBody", new StringContent("test")); 64var result = await deploymentResult.HttpClient.PostAsync("/ReadRequestBody", new StringContent("test")); 87var result = await deploymentResult.HttpClient.PostAsync("/ReadRequestBodyLarger", new StringContent(new string('a', 100000000))); 108var result = await deploymentResult.HttpClient.PostAsync("/ReadRequestBodyLarger", new StringContent(new string('a', 10000))); 120using (var connection = new TestConnection(deploymentResult.HttpClient.BaseAddress.Port)) 154var result = await deploymentResult.HttpClient.PostAsync("/IncreaseRequestLimit", new StringContent("1"));
src\Servers\IIS\IIS\test\Common.FunctionalTests\Latin1Tests.cs (1)
82using (var connection = new TestConnection(deploymentResult.HttpClient.BaseAddress.Port))
src\Servers\IIS\IIS\test\Common.FunctionalTests\LoggingTests.cs (8)
118await deploymentResult.HttpClient.GetAsync("/"); 132await deploymentResult.HttpClient.GetAsync("/"); 148await deploymentResult.HttpClient.GetAsync("/"); 169var response = await deploymentResult.HttpClient.GetAsync("/"); 211var response = await deploymentResult.HttpClient.GetAsync(path); 245var response = await deploymentResult.HttpClient.GetAsync("Test"); 261var response = await deploymentResult.HttpClient.GetAsync("Test"); 275var response = await deploymentResult.HttpClient.GetAsync("Test");
src\Servers\IIS\IIS\test\Common.FunctionalTests\MaxRequestBodySizeTests.cs (6)
45var result = await deploymentResult.HttpClient.PostAsync("/ReadRequestBody", new StringContent("test")); 65var result = await deploymentResult.HttpClient.PostAsync("/ReadRequestBody", new StringContent("test")); 88var result = await deploymentResult.HttpClient.PostAsync("/ReadRequestBodyLarger", new StringContent(new string('a', 100000000))); 109var result = await deploymentResult.HttpClient.PostAsync("/ReadRequestBodyLarger", new StringContent(new string('a', 10000))); 121using (var connection = new TestConnection(deploymentResult.HttpClient.BaseAddress.Port)) 155var result = await deploymentResult.HttpClient.PostAsync("/IncreaseRequestLimit", new StringContent("1"));
src\Servers\IIS\IIS\test\Common.FunctionalTests\MultiApplicationTests.cs (6)
47var id1 = await result.HttpClient.GetStringAsync("/app1/ProcessId"); 48var id2 = await result.HttpClient.GetStringAsync("/app2/ProcessId"); 59var result1 = await result.HttpClient.GetAsync("/app1/HelloWorld"); 60var result2 = await result.HttpClient.GetAsync("/app2/HelloWorld"); 86var result1 = await result.HttpClient.GetAsync("/app1/HelloWorld"); 87var result2 = await result.HttpClient.GetAsync("/app2/HelloWorld");
src\Servers\IIS\IIS\test\Common.FunctionalTests\RequestResponseTests.cs (1)
609Assert.Equal(_fixture.DeploymentResult.ContentRoot, await _fixture.DeploymentResult.HttpClient.GetStringAsync("/CurrentDirectory"));
src\Servers\IIS\IIS\test\Common.LongTests\ShutdownTests.cs (25)
48Assert.Equal("Hello World", await deploymentResult.HttpClient.GetStringAsync("/HelloWorld")); 68await deploymentResult.HttpClient.GetAsync(path); 144var result = await deploymentResult.HttpClient.GetAsync("/"); 163var result = await deploymentResult.HttpClient.GetAsync("/"); 181var result = await deploymentResult.HttpClient.GetAsync("/"); 201var result = await deploymentResult.HttpClient.GetAsync("/HelloWorld"); 208var connection = new TestConnection(deploymentResult.HttpClient.BaseAddress.Port); 225var statusConnection = new TestConnection(deploymentResult.HttpClient.BaseAddress.Port); 277var result = await deploymentResult.HttpClient.GetAsync("/HelloWorld"); 288using var res = await deploymentResult.HttpClient.GetAsync("/HelloWorld"); 314var result = await deploymentResult.HttpClient.GetAsync("/HelloWorld"); 325using var res = await deploymentResult.HttpClient.GetAsync("/HelloWorld"); 411var load = Helpers.StressLoad(deploymentResult.HttpClient, "/HelloWorld", response => 471var processBefore = await deploymentResult.HttpClient.GetStringAsync("/ProcessId"); 478await deploymentResult.HttpClient.RetryRequestAsync("/ProcessId", async r => await r.Content.ReadAsStringAsync() != processBefore); 489var processBefore = await deploymentResult.HttpClient.GetStringAsync("/ProcessId"); 498await deploymentResult.HttpClient.RetryRequestAsync("/ProcessId", async r => await r.Content.ReadAsStringAsync() == processBefore); 509var processBefore = await deploymentResult.HttpClient.GetStringAsync("/ProcessId"); 518await deploymentResult.HttpClient.RetryRequestAsync("/ProcessId", async r => await r.Content.ReadAsStringAsync() == processBefore); 530var processBefore = await deploymentResult.HttpClient.GetStringAsync("/ProcessId"); 537await deploymentResult.HttpClient.RetryRequestAsync("/ProcessId", async r => await r.Content.ReadAsStringAsync() == processBefore); 559await deploymentResult.HttpClient.RetryRequestAsync("/HelloWorld", r => r.Headers.Server.ToString().StartsWith("Microsoft", StringComparison.Ordinal)); 574var load = Helpers.StressLoad(deploymentResult.HttpClient, "/HelloWorld", response => 614var response = await deploymentResult.HttpClient.GetAsync("/Abort").TimeoutAfter(TimeoutExtensions.DefaultTimeoutValue); 641var response = await deploymentResult.HttpClient.GetAsync("/Abort").TimeoutAfter(TimeoutExtensions.DefaultTimeoutValue);
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (35)
68var response = await deploymentResult.HttpClient.GetAsync("HelloWorld"); 177var response = await deploymentResult.HttpClient.GetAsync("/HelloWorld"); 228var response = await deploymentResult.HttpClient.GetAsync("/"); 246var response = await deploymentResult.HttpClient.GetAsync("/"); 263var response = await deploymentResult.HttpClient.GetAsync("/HelloWorld"); 427var response = await deploymentResult.HttpClient.GetAsync("/HelloWorld"); 479var response = await deploymentResult.HttpClient.GetAsync("/"); 512var response = await deploymentResult.HttpClient.GetAsync("/"); 537var response = await deploymentResult.HttpClient.GetAsync("HelloWorld"); 559var result = await deploymentResult.HttpClient.GetAsync("/HelloWorld"); 604Assert.Equal(expectedArguments, await result.HttpClient.GetStringAsync("/CommandLineArgs")); 675Assert.Equal(expectedArguments, await result.HttpClient.GetStringAsync("/CommandLineArgs")); 713Assert.Equal(deploymentResult.ContentRoot, await deploymentResult.HttpClient.GetStringAsync("/ContentRootPath")); 714Assert.Equal(deploymentResult.ContentRoot + "\\wwwroot", await deploymentResult.HttpClient.GetStringAsync("/WebRootPath")); 715Assert.Equal(Path.GetDirectoryName(deploymentResult.HostProcess.MainModule.FileName), await deploymentResult.HttpClient.GetStringAsync("/CurrentDirectory")); 716Assert.Equal(deploymentResult.ContentRoot + "\\", await deploymentResult.HttpClient.GetStringAsync("/BaseDirectory")); 717Assert.Equal(deploymentResult.ContentRoot + "\\", await deploymentResult.HttpClient.GetStringAsync("/ASPNETCORE_IIS_PHYSICAL_PATH")); 772var result = await deploymentResult.HttpClient.GetAsync("/"); 796var result = await deploymentResult.HttpClient.GetAsync("/"); 819var result = await deploymentResult.HttpClient.GetAsync("/"); 844var result = await deploymentResult.HttpClient.GetAsync("/"); 866var result = await deploymentResult.HttpClient.GetAsync("/"); 887var result = await deploymentResult.HttpClient.GetAsync("/StartupHook"); 905var result = await deploymentResult.HttpClient.GetAsync("/StartupHook"); 918var result = await deploymentResult.HttpClient.GetAsync("/StackSize"); 930var result = await deploymentResult.HttpClient.GetAsync("/StackSizeLarge"); 974var response = await deploymentResult.HttpClient.GetAsync("/OnCompletedThrows"); 1060var response = await deploymentResult.HttpClient.GetAsync("/HelloWorld"); 1115var response = await deploymentResult.HttpClient.GetAsync("HelloWorld"); 1138var response = await deploymentResult.HttpClient.GetAsync("HelloWorld"); 1436var response = await deploymentResult.HttpClient.GetAsync("ConnectionClose"); 1500return await deploymentResult.HttpClient.GetAsync("HelloWorld"); 1505var response = await deploymentResult.HttpClient.GetAsync("/HelloWorld"); 1579response = await deploymentResult.HttpClient.GetAsync("/HelloWorld"); 1594response = await deploymentResult.HttpClient.GetAsync("/HelloWorld");
UpgradeFeatureDetectionTests.cs (1)
74var response = await deploymentResult.HttpClient.GetAsync("UpgradeFeatureDetection");
Microsoft.AspNetCore.Server.IntegrationTesting.IIS (1)
IISDeploymentResult.cs (1)
48HttpClient.Dispose();