1 write to HttpClient
Microsoft.AspNetCore.Server.IntegrationTesting.IIS (1)
IISDeploymentResult.cs (1)
34
HttpClient
= CreateClient(new HttpClientHandler());
419 references to HttpClient
IIS.FunctionalTests (64)
src\Servers\IIS\IIS\test\Common.FunctionalTests\AspNetCorePortTests.cs (7)
63
var responseText = await deploymentResult.
HttpClient
.GetStringAsync("/ServerAddresses");
78
var responseText = await deploymentResult.
HttpClient
.GetStringAsync("/ServerAddresses");
94
var response = await deploymentResult.
HttpClient
.GetAsync("/ServerAddresses");
110
var response = await deploymentResult.
HttpClient
.GetAsync("/Shutdown");
117
response = await deploymentResult.
HttpClient
.GetAsync("/HelloWorld");
131
response = await deploymentResult.
HttpClient
.GetAsync("/Shutdown");
137
response = await deploymentResult.
HttpClient
.GetAsync("/HelloWorld");
src\Servers\IIS\IIS\test\Common.FunctionalTests\BasicAuthTests.cs (1)
63
var response = await deploymentResult.
HttpClient
.SendAsync(request);
src\Servers\IIS\IIS\test\Common.FunctionalTests\FrebTests.cs (5)
57
await result.
HttpClient
.GetAsync("HelloWorld");
73
await result.
HttpClient
.GetAsync("HelloWorld");
86
await result.
HttpClient
.GetAsync("Throw");
99
using (var connection = new TestConnection(result.
HttpClient
.BaseAddress.Port))
107
await result.
HttpClient
.RetryRequestAsync("/WaitingRequestCount", async message => await message.Content.ReadAsStringAsync() == "1");
src\Servers\IIS\IIS\test\Common.FunctionalTests\GlobalVersionTests.cs (11)
51
var response = await deploymentResult.
HttpClient
.GetAsync(_helloWorldRequest);
75
var response = await deploymentResult.
HttpClient
.GetAsync(_helloWorldRequest);
98
var response = await deploymentResult.
HttpClient
.GetAsync(_helloWorldRequest);
121
var response = await deploymentResult.
HttpClient
.GetAsync(_helloWorldRequest);
144
deploymentResult.
HttpClient
.DefaultRequestHeaders.Add("ANCMRHPath", newANCMPath);
145
var response = await deploymentResult.
HttpClient
.GetAsync("CheckRequestHandlerVersion");
165
deploymentResult.
HttpClient
.DefaultRequestHeaders.Add("ANCMRHPath", originalANCMPath);
166
var response = await deploymentResult.
HttpClient
.GetAsync("CheckRequestHandlerVersion");
181
deploymentResult.
HttpClient
.DefaultRequestHeaders.Add("ANCMRHPath", newANCMPath);
182
response = await deploymentResult.
HttpClient
.GetAsync("CheckRequestHandlerVersion");
198
var response = await deploymentResult.
HttpClient
.GetAsync("HelloWorld");
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\FunctionalTestsBase.cs (1)
49
return await result.
HttpClient
.GetStringAsync(path);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (1)
29
var response = await deploymentResult.
HttpClient
.RetryRequestAsync(path, r => r.IsSuccessStatusCode);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISFunctionalTestBase.cs (2)
53
var response = await deploymentResult.
HttpClient
.RetryRequestAsync("HelloWorld", r => r.StatusCode == HttpStatusCode.ServiceUnavailable);
68
var response = await deploymentResult.
HttpClient
.RetryRequestAsync("HelloWorld", r => r.IsSuccessStatusCode);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISTestSiteFixture.cs (1)
60
public HttpClient Client => DeploymentResult.
HttpClient
;
src\Servers\IIS\IIS\test\Common.FunctionalTests\Inprocess\HttpSysRequestInfoTests.cs (1)
35
var response = await deploymentResult.
HttpClient
.GetAsync("/HttpSysRequestTimingInfo");
src\Servers\IIS\IIS\test\Common.FunctionalTests\Inprocess\MaxRequestBodySizeTests.cs (6)
44
var result = await deploymentResult.
HttpClient
.PostAsync("/ReadRequestBody", new StringContent("test"));
64
var result = await deploymentResult.
HttpClient
.PostAsync("/ReadRequestBody", new StringContent("test"));
87
var result = await deploymentResult.
HttpClient
.PostAsync("/ReadRequestBodyLarger", new StringContent(new string('a', 100000000)));
108
var result = await deploymentResult.
HttpClient
.PostAsync("/ReadRequestBodyLarger", new StringContent(new string('a', 10000)));
120
using (var connection = new TestConnection(deploymentResult.
HttpClient
.BaseAddress.Port))
154
var result = await deploymentResult.
HttpClient
.PostAsync("/IncreaseRequestLimit", new StringContent("1"));
src\Servers\IIS\IIS\test\Common.FunctionalTests\Latin1Tests.cs (1)
82
using (var connection = new TestConnection(deploymentResult.
HttpClient
.BaseAddress.Port))
src\Servers\IIS\IIS\test\Common.FunctionalTests\LoggingTests.cs (8)
117
await deploymentResult.
HttpClient
.GetAsync("/");
131
await deploymentResult.
HttpClient
.GetAsync("/");
147
await deploymentResult.
HttpClient
.GetAsync("/");
168
var response = await deploymentResult.
HttpClient
.GetAsync("/");
210
var response = await deploymentResult.
HttpClient
.GetAsync(path);
244
var response = await deploymentResult.
HttpClient
.GetAsync("Test");
260
var response = await deploymentResult.
HttpClient
.GetAsync("Test");
274
var response = await deploymentResult.
HttpClient
.GetAsync("Test");
src\Servers\IIS\IIS\test\Common.FunctionalTests\MaxRequestBodySizeTests.cs (6)
44
var result = await deploymentResult.
HttpClient
.PostAsync("/ReadRequestBody", new StringContent("test"));
64
var result = await deploymentResult.
HttpClient
.PostAsync("/ReadRequestBody", new StringContent("test"));
87
var result = await deploymentResult.
HttpClient
.PostAsync("/ReadRequestBodyLarger", new StringContent(new string('a', 100000000)));
108
var result = await deploymentResult.
HttpClient
.PostAsync("/ReadRequestBodyLarger", new StringContent(new string('a', 10000)));
120
using (var connection = new TestConnection(deploymentResult.
HttpClient
.BaseAddress.Port))
154
var result = await deploymentResult.
HttpClient
.PostAsync("/IncreaseRequestLimit", new StringContent("1"));
src\Servers\IIS\IIS\test\Common.FunctionalTests\MultiApplicationTests.cs (6)
46
var id1 = await result.
HttpClient
.GetStringAsync("/app1/ProcessId");
47
var id2 = await result.
HttpClient
.GetStringAsync("/app2/ProcessId");
58
var result1 = await result.
HttpClient
.GetAsync("/app1/HelloWorld");
59
var result2 = await result.
HttpClient
.GetAsync("/app2/HelloWorld");
85
var result1 = await result.
HttpClient
.GetAsync("/app1/HelloWorld");
86
var result2 = await result.
HttpClient
.GetAsync("/app2/HelloWorld");
src\Servers\IIS\IIS\test\Common.FunctionalTests\RequestResponseTests.cs (1)
608
Assert.Equal(_fixture.DeploymentResult.ContentRoot, await _fixture.DeploymentResult.
HttpClient
.GetStringAsync("/CurrentDirectory"));
src\Servers\IIS\IIS\test\Common.FunctionalTests\WindowsAuthTests.cs (1)
88
var request = HttpWebRequest.CreateHttp($"{deploymentResult.
HttpClient
.BaseAddress}Auth");
src\Servers\IIS\IIS\test\IIS.Shared.FunctionalTests\StdOutRedirectionTests.cs (5)
44
var response = await deploymentResult.
HttpClient
.GetAsync("/HelloWorld");
68
var response = await deploymentResult.
HttpClient
.GetAsync("/HelloWorld");
98
var response = await deploymentResult.
HttpClient
.GetAsync("/HelloWorld");
124
var response = await deploymentResult.
HttpClient
.GetAsync("/HelloWorld");
151
var response = await deploymentResult.
HttpClient
.GetAsync("/HelloWorld");
IIS.LongTests (65)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\FunctionalTestsBase.cs (1)
49
return await result.
HttpClient
.GetStringAsync(path);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (1)
29
var response = await deploymentResult.
HttpClient
.RetryRequestAsync(path, r => r.IsSuccessStatusCode);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISFunctionalTestBase.cs (2)
53
var response = await deploymentResult.
HttpClient
.RetryRequestAsync("HelloWorld", r => r.StatusCode == HttpStatusCode.ServiceUnavailable);
68
var response = await deploymentResult.
HttpClient
.RetryRequestAsync("HelloWorld", r => r.IsSuccessStatusCode);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISTestSiteFixture.cs (1)
60
public HttpClient Client => DeploymentResult.
HttpClient
;
src\Servers\IIS\IIS\test\Common.LongTests\ShutdownTests.cs (25)
47
Assert.Equal("Hello World", await deploymentResult.
HttpClient
.GetStringAsync("/HelloWorld"));
67
await deploymentResult.
HttpClient
.GetAsync(path);
143
var result = await deploymentResult.
HttpClient
.GetAsync("/");
162
var result = await deploymentResult.
HttpClient
.GetAsync("/");
180
var result = await deploymentResult.
HttpClient
.GetAsync("/");
200
var result = await deploymentResult.
HttpClient
.GetAsync("/HelloWorld");
207
var connection = new TestConnection(deploymentResult.
HttpClient
.BaseAddress.Port);
224
var statusConnection = new TestConnection(deploymentResult.
HttpClient
.BaseAddress.Port);
276
var result = await deploymentResult.
HttpClient
.GetAsync("/HelloWorld");
287
using var res = await deploymentResult.
HttpClient
.GetAsync("/HelloWorld");
313
var result = await deploymentResult.
HttpClient
.GetAsync("/HelloWorld");
324
using var res = await deploymentResult.
HttpClient
.GetAsync("/HelloWorld");
409
var load = Helpers.StressLoad(deploymentResult.
HttpClient
, "/HelloWorld", response =>
469
var processBefore = await deploymentResult.
HttpClient
.GetStringAsync("/ProcessId");
476
await deploymentResult.
HttpClient
.RetryRequestAsync("/ProcessId", async r => await r.Content.ReadAsStringAsync() != processBefore);
487
var processBefore = await deploymentResult.
HttpClient
.GetStringAsync("/ProcessId");
496
await deploymentResult.
HttpClient
.RetryRequestAsync("/ProcessId", async r => await r.Content.ReadAsStringAsync() == processBefore);
507
var processBefore = await deploymentResult.
HttpClient
.GetStringAsync("/ProcessId");
516
await deploymentResult.
HttpClient
.RetryRequestAsync("/ProcessId", async r => await r.Content.ReadAsStringAsync() == processBefore);
528
var processBefore = await deploymentResult.
HttpClient
.GetStringAsync("/ProcessId");
535
await deploymentResult.
HttpClient
.RetryRequestAsync("/ProcessId", async r => await r.Content.ReadAsStringAsync() == processBefore);
557
await deploymentResult.
HttpClient
.RetryRequestAsync("/HelloWorld", r => r.Headers.Server.ToString().StartsWith("Microsoft", StringComparison.Ordinal));
571
var load = Helpers.StressLoad(deploymentResult.
HttpClient
, "/HelloWorld", response =>
611
var response = await deploymentResult.
HttpClient
.GetAsync("/Abort").TimeoutAfter(TimeoutExtensions.DefaultTimeoutValue);
638
var response = await deploymentResult.
HttpClient
.GetAsync("/Abort").TimeoutAfter(TimeoutExtensions.DefaultTimeoutValue);
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (35)
67
var response = await deploymentResult.
HttpClient
.GetAsync("HelloWorld");
176
var response = await deploymentResult.
HttpClient
.GetAsync("/HelloWorld");
227
var response = await deploymentResult.
HttpClient
.GetAsync("/");
245
var response = await deploymentResult.
HttpClient
.GetAsync("/");
262
var response = await deploymentResult.
HttpClient
.GetAsync("/HelloWorld");
426
var response = await deploymentResult.
HttpClient
.GetAsync("/HelloWorld");
478
var response = await deploymentResult.
HttpClient
.GetAsync("/");
511
var response = await deploymentResult.
HttpClient
.GetAsync("/");
536
var response = await deploymentResult.
HttpClient
.GetAsync("HelloWorld");
558
var result = await deploymentResult.
HttpClient
.GetAsync("/HelloWorld");
603
Assert.Equal(expectedArguments, await result.
HttpClient
.GetStringAsync("/CommandLineArgs"));
674
Assert.Equal(expectedArguments, await result.
HttpClient
.GetStringAsync("/CommandLineArgs"));
713
Assert.Equal(deploymentResult.ContentRoot, await deploymentResult.
HttpClient
.GetStringAsync("/ContentRootPath"));
714
Assert.Equal(deploymentResult.ContentRoot + "\\wwwroot", await deploymentResult.
HttpClient
.GetStringAsync("/WebRootPath"));
715
Assert.Equal(Path.GetDirectoryName(deploymentResult.HostProcess.MainModule.FileName), await deploymentResult.
HttpClient
.GetStringAsync("/CurrentDirectory"));
716
Assert.Equal(deploymentResult.ContentRoot + "\\", await deploymentResult.
HttpClient
.GetStringAsync("/BaseDirectory"));
717
Assert.Equal(deploymentResult.ContentRoot + "\\", await deploymentResult.
HttpClient
.GetStringAsync("/ASPNETCORE_IIS_PHYSICAL_PATH"));
772
var result = await deploymentResult.
HttpClient
.GetAsync("/");
796
var result = await deploymentResult.
HttpClient
.GetAsync("/");
819
var result = await deploymentResult.
HttpClient
.GetAsync("/");
844
var result = await deploymentResult.
HttpClient
.GetAsync("/");
866
var result = await deploymentResult.
HttpClient
.GetAsync("/");
887
var result = await deploymentResult.
HttpClient
.GetAsync("/StartupHook");
905
var result = await deploymentResult.
HttpClient
.GetAsync("/StartupHook");
918
var result = await deploymentResult.
HttpClient
.GetAsync("/StackSize");
930
var result = await deploymentResult.
HttpClient
.GetAsync("/StackSizeLarge");
974
var response = await deploymentResult.
HttpClient
.GetAsync("/OnCompletedThrows");
1060
var response = await deploymentResult.
HttpClient
.GetAsync("/HelloWorld");
1115
var response = await deploymentResult.
HttpClient
.GetAsync("HelloWorld");
1138
var response = await deploymentResult.
HttpClient
.GetAsync("HelloWorld");
1436
var response = await deploymentResult.
HttpClient
.GetAsync("ConnectionClose");
1500
return await deploymentResult.
HttpClient
.GetAsync("HelloWorld");
1505
var response = await deploymentResult.
HttpClient
.GetAsync("/HelloWorld");
1579
response = await deploymentResult.
HttpClient
.GetAsync("/HelloWorld");
1594
response = await deploymentResult.
HttpClient
.GetAsync("/HelloWorld");
IIS.NewHandler.FunctionalTests (66)
NewHandlerTests.cs (1)
26
var response = await result.
HttpClient
.GetAsync("/HelloWorld");
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\FunctionalTestsBase.cs (1)
49
return await result.
HttpClient
.GetStringAsync(path);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (1)
29
var response = await deploymentResult.
HttpClient
.RetryRequestAsync(path, r => r.IsSuccessStatusCode);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISFunctionalTestBase.cs (2)
53
var response = await deploymentResult.
HttpClient
.RetryRequestAsync("HelloWorld", r => r.StatusCode == HttpStatusCode.ServiceUnavailable);
68
var response = await deploymentResult.
HttpClient
.RetryRequestAsync("HelloWorld", r => r.IsSuccessStatusCode);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISTestSiteFixture.cs (1)
60
public HttpClient Client => DeploymentResult.
HttpClient
;
src\Servers\IIS\IIS\test\Common.LongTests\ShutdownTests.cs (25)
47
Assert.Equal("Hello World", await deploymentResult.
HttpClient
.GetStringAsync("/HelloWorld"));
67
await deploymentResult.
HttpClient
.GetAsync(path);
143
var result = await deploymentResult.
HttpClient
.GetAsync("/");
162
var result = await deploymentResult.
HttpClient
.GetAsync("/");
180
var result = await deploymentResult.
HttpClient
.GetAsync("/");
200
var result = await deploymentResult.
HttpClient
.GetAsync("/HelloWorld");
207
var connection = new TestConnection(deploymentResult.
HttpClient
.BaseAddress.Port);
224
var statusConnection = new TestConnection(deploymentResult.
HttpClient
.BaseAddress.Port);
276
var result = await deploymentResult.
HttpClient
.GetAsync("/HelloWorld");
287
using var res = await deploymentResult.
HttpClient
.GetAsync("/HelloWorld");
313
var result = await deploymentResult.
HttpClient
.GetAsync("/HelloWorld");
324
using var res = await deploymentResult.
HttpClient
.GetAsync("/HelloWorld");
409
var load = Helpers.StressLoad(deploymentResult.
HttpClient
, "/HelloWorld", response =>
469
var processBefore = await deploymentResult.
HttpClient
.GetStringAsync("/ProcessId");
476
await deploymentResult.
HttpClient
.RetryRequestAsync("/ProcessId", async r => await r.Content.ReadAsStringAsync() != processBefore);
487
var processBefore = await deploymentResult.
HttpClient
.GetStringAsync("/ProcessId");
496
await deploymentResult.
HttpClient
.RetryRequestAsync("/ProcessId", async r => await r.Content.ReadAsStringAsync() == processBefore);
507
var processBefore = await deploymentResult.
HttpClient
.GetStringAsync("/ProcessId");
516
await deploymentResult.
HttpClient
.RetryRequestAsync("/ProcessId", async r => await r.Content.ReadAsStringAsync() == processBefore);
528
var processBefore = await deploymentResult.
HttpClient
.GetStringAsync("/ProcessId");
535
await deploymentResult.
HttpClient
.RetryRequestAsync("/ProcessId", async r => await r.Content.ReadAsStringAsync() == processBefore);
557
await deploymentResult.
HttpClient
.RetryRequestAsync("/HelloWorld", r => r.Headers.Server.ToString().StartsWith("Microsoft", StringComparison.Ordinal));
571
var load = Helpers.StressLoad(deploymentResult.
HttpClient
, "/HelloWorld", response =>
611
var response = await deploymentResult.
HttpClient
.GetAsync("/Abort").TimeoutAfter(TimeoutExtensions.DefaultTimeoutValue);
638
var response = await deploymentResult.
HttpClient
.GetAsync("/Abort").TimeoutAfter(TimeoutExtensions.DefaultTimeoutValue);
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (35)
67
var response = await deploymentResult.
HttpClient
.GetAsync("HelloWorld");
176
var response = await deploymentResult.
HttpClient
.GetAsync("/HelloWorld");
227
var response = await deploymentResult.
HttpClient
.GetAsync("/");
245
var response = await deploymentResult.
HttpClient
.GetAsync("/");
262
var response = await deploymentResult.
HttpClient
.GetAsync("/HelloWorld");
426
var response = await deploymentResult.
HttpClient
.GetAsync("/HelloWorld");
478
var response = await deploymentResult.
HttpClient
.GetAsync("/");
511
var response = await deploymentResult.
HttpClient
.GetAsync("/");
536
var response = await deploymentResult.
HttpClient
.GetAsync("HelloWorld");
558
var result = await deploymentResult.
HttpClient
.GetAsync("/HelloWorld");
603
Assert.Equal(expectedArguments, await result.
HttpClient
.GetStringAsync("/CommandLineArgs"));
674
Assert.Equal(expectedArguments, await result.
HttpClient
.GetStringAsync("/CommandLineArgs"));
713
Assert.Equal(deploymentResult.ContentRoot, await deploymentResult.
HttpClient
.GetStringAsync("/ContentRootPath"));
714
Assert.Equal(deploymentResult.ContentRoot + "\\wwwroot", await deploymentResult.
HttpClient
.GetStringAsync("/WebRootPath"));
715
Assert.Equal(Path.GetDirectoryName(deploymentResult.HostProcess.MainModule.FileName), await deploymentResult.
HttpClient
.GetStringAsync("/CurrentDirectory"));
716
Assert.Equal(deploymentResult.ContentRoot + "\\", await deploymentResult.
HttpClient
.GetStringAsync("/BaseDirectory"));
717
Assert.Equal(deploymentResult.ContentRoot + "\\", await deploymentResult.
HttpClient
.GetStringAsync("/ASPNETCORE_IIS_PHYSICAL_PATH"));
772
var result = await deploymentResult.
HttpClient
.GetAsync("/");
796
var result = await deploymentResult.
HttpClient
.GetAsync("/");
819
var result = await deploymentResult.
HttpClient
.GetAsync("/");
844
var result = await deploymentResult.
HttpClient
.GetAsync("/");
866
var result = await deploymentResult.
HttpClient
.GetAsync("/");
887
var result = await deploymentResult.
HttpClient
.GetAsync("/StartupHook");
905
var result = await deploymentResult.
HttpClient
.GetAsync("/StartupHook");
918
var result = await deploymentResult.
HttpClient
.GetAsync("/StackSize");
930
var result = await deploymentResult.
HttpClient
.GetAsync("/StackSizeLarge");
974
var response = await deploymentResult.
HttpClient
.GetAsync("/OnCompletedThrows");
1060
var response = await deploymentResult.
HttpClient
.GetAsync("/HelloWorld");
1115
var response = await deploymentResult.
HttpClient
.GetAsync("HelloWorld");
1138
var response = await deploymentResult.
HttpClient
.GetAsync("HelloWorld");
1436
var response = await deploymentResult.
HttpClient
.GetAsync("ConnectionClose");
1500
return await deploymentResult.
HttpClient
.GetAsync("HelloWorld");
1505
var response = await deploymentResult.
HttpClient
.GetAsync("/HelloWorld");
1579
response = await deploymentResult.
HttpClient
.GetAsync("/HelloWorld");
1594
response = await deploymentResult.
HttpClient
.GetAsync("/HelloWorld");
IIS.NewShim.FunctionalTests (66)
NewShimTests.cs (1)
24
var response = await result.
HttpClient
.GetAsync("/HelloWorld");
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\FunctionalTestsBase.cs (1)
49
return await result.
HttpClient
.GetStringAsync(path);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (1)
29
var response = await deploymentResult.
HttpClient
.RetryRequestAsync(path, r => r.IsSuccessStatusCode);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISFunctionalTestBase.cs (2)
53
var response = await deploymentResult.
HttpClient
.RetryRequestAsync("HelloWorld", r => r.StatusCode == HttpStatusCode.ServiceUnavailable);
68
var response = await deploymentResult.
HttpClient
.RetryRequestAsync("HelloWorld", r => r.IsSuccessStatusCode);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISTestSiteFixture.cs (1)
60
public HttpClient Client => DeploymentResult.
HttpClient
;
src\Servers\IIS\IIS\test\Common.LongTests\ShutdownTests.cs (25)
47
Assert.Equal("Hello World", await deploymentResult.
HttpClient
.GetStringAsync("/HelloWorld"));
67
await deploymentResult.
HttpClient
.GetAsync(path);
143
var result = await deploymentResult.
HttpClient
.GetAsync("/");
162
var result = await deploymentResult.
HttpClient
.GetAsync("/");
180
var result = await deploymentResult.
HttpClient
.GetAsync("/");
200
var result = await deploymentResult.
HttpClient
.GetAsync("/HelloWorld");
207
var connection = new TestConnection(deploymentResult.
HttpClient
.BaseAddress.Port);
224
var statusConnection = new TestConnection(deploymentResult.
HttpClient
.BaseAddress.Port);
276
var result = await deploymentResult.
HttpClient
.GetAsync("/HelloWorld");
287
using var res = await deploymentResult.
HttpClient
.GetAsync("/HelloWorld");
313
var result = await deploymentResult.
HttpClient
.GetAsync("/HelloWorld");
324
using var res = await deploymentResult.
HttpClient
.GetAsync("/HelloWorld");
409
var load = Helpers.StressLoad(deploymentResult.
HttpClient
, "/HelloWorld", response =>
469
var processBefore = await deploymentResult.
HttpClient
.GetStringAsync("/ProcessId");
476
await deploymentResult.
HttpClient
.RetryRequestAsync("/ProcessId", async r => await r.Content.ReadAsStringAsync() != processBefore);
487
var processBefore = await deploymentResult.
HttpClient
.GetStringAsync("/ProcessId");
496
await deploymentResult.
HttpClient
.RetryRequestAsync("/ProcessId", async r => await r.Content.ReadAsStringAsync() == processBefore);
507
var processBefore = await deploymentResult.
HttpClient
.GetStringAsync("/ProcessId");
516
await deploymentResult.
HttpClient
.RetryRequestAsync("/ProcessId", async r => await r.Content.ReadAsStringAsync() == processBefore);
528
var processBefore = await deploymentResult.
HttpClient
.GetStringAsync("/ProcessId");
535
await deploymentResult.
HttpClient
.RetryRequestAsync("/ProcessId", async r => await r.Content.ReadAsStringAsync() == processBefore);
557
await deploymentResult.
HttpClient
.RetryRequestAsync("/HelloWorld", r => r.Headers.Server.ToString().StartsWith("Microsoft", StringComparison.Ordinal));
571
var load = Helpers.StressLoad(deploymentResult.
HttpClient
, "/HelloWorld", response =>
611
var response = await deploymentResult.
HttpClient
.GetAsync("/Abort").TimeoutAfter(TimeoutExtensions.DefaultTimeoutValue);
638
var response = await deploymentResult.
HttpClient
.GetAsync("/Abort").TimeoutAfter(TimeoutExtensions.DefaultTimeoutValue);
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (35)
67
var response = await deploymentResult.
HttpClient
.GetAsync("HelloWorld");
176
var response = await deploymentResult.
HttpClient
.GetAsync("/HelloWorld");
227
var response = await deploymentResult.
HttpClient
.GetAsync("/");
245
var response = await deploymentResult.
HttpClient
.GetAsync("/");
262
var response = await deploymentResult.
HttpClient
.GetAsync("/HelloWorld");
426
var response = await deploymentResult.
HttpClient
.GetAsync("/HelloWorld");
478
var response = await deploymentResult.
HttpClient
.GetAsync("/");
511
var response = await deploymentResult.
HttpClient
.GetAsync("/");
536
var response = await deploymentResult.
HttpClient
.GetAsync("HelloWorld");
558
var result = await deploymentResult.
HttpClient
.GetAsync("/HelloWorld");
603
Assert.Equal(expectedArguments, await result.
HttpClient
.GetStringAsync("/CommandLineArgs"));
674
Assert.Equal(expectedArguments, await result.
HttpClient
.GetStringAsync("/CommandLineArgs"));
713
Assert.Equal(deploymentResult.ContentRoot, await deploymentResult.
HttpClient
.GetStringAsync("/ContentRootPath"));
714
Assert.Equal(deploymentResult.ContentRoot + "\\wwwroot", await deploymentResult.
HttpClient
.GetStringAsync("/WebRootPath"));
715
Assert.Equal(Path.GetDirectoryName(deploymentResult.HostProcess.MainModule.FileName), await deploymentResult.
HttpClient
.GetStringAsync("/CurrentDirectory"));
716
Assert.Equal(deploymentResult.ContentRoot + "\\", await deploymentResult.
HttpClient
.GetStringAsync("/BaseDirectory"));
717
Assert.Equal(deploymentResult.ContentRoot + "\\", await deploymentResult.
HttpClient
.GetStringAsync("/ASPNETCORE_IIS_PHYSICAL_PATH"));
772
var result = await deploymentResult.
HttpClient
.GetAsync("/");
796
var result = await deploymentResult.
HttpClient
.GetAsync("/");
819
var result = await deploymentResult.
HttpClient
.GetAsync("/");
844
var result = await deploymentResult.
HttpClient
.GetAsync("/");
866
var result = await deploymentResult.
HttpClient
.GetAsync("/");
887
var result = await deploymentResult.
HttpClient
.GetAsync("/StartupHook");
905
var result = await deploymentResult.
HttpClient
.GetAsync("/StartupHook");
918
var result = await deploymentResult.
HttpClient
.GetAsync("/StackSize");
930
var result = await deploymentResult.
HttpClient
.GetAsync("/StackSizeLarge");
974
var response = await deploymentResult.
HttpClient
.GetAsync("/OnCompletedThrows");
1060
var response = await deploymentResult.
HttpClient
.GetAsync("/HelloWorld");
1115
var response = await deploymentResult.
HttpClient
.GetAsync("HelloWorld");
1138
var response = await deploymentResult.
HttpClient
.GetAsync("HelloWorld");
1436
var response = await deploymentResult.
HttpClient
.GetAsync("ConnectionClose");
1500
return await deploymentResult.
HttpClient
.GetAsync("HelloWorld");
1505
var response = await deploymentResult.
HttpClient
.GetAsync("/HelloWorld");
1579
response = await deploymentResult.
HttpClient
.GetAsync("/HelloWorld");
1594
response = await deploymentResult.
HttpClient
.GetAsync("/HelloWorld");
IIS.ShadowCopy.Tests (24)
ShadowCopyTests.cs (19)
25
var response = await deploymentResult.
HttpClient
.GetAsync("Wow!");
51
var response = await deploymentResult.
HttpClient
.GetAsync("Wow!");
82
var response = await deploymentResult.
HttpClient
.GetAsync("Wow!");
117
var response = await deploymentResult.
HttpClient
.GetAsync("Wow!");
136
response = await deploymentResult.
HttpClient
.GetAsync("Wow!");
153
var response = await deploymentResult.
HttpClient
.GetAsync("Wow!");
167
response = await deploymentResult.
HttpClient
.GetAsync("Wow!");
182
var response = await deploymentResult.
HttpClient
.GetAsync("Wow!");
193
response = await deploymentResult.
HttpClient
.GetAsync("Wow!");
209
var response = await deploymentResult.
HttpClient
.GetAsync("Wow!");
218
response = await deploymentResult.
HttpClient
.GetAsync("Wow!");
232
response = await deploymentResult.
HttpClient
.GetAsync("Wow!");
251
var response = await deploymentResult.
HttpClient
.GetAsync("Wow!");
260
response = await deploymentResult.
HttpClient
.GetAsync("Wow!");
274
response = await deploymentResult.
HttpClient
.GetAsync("Wow!");
293
var response = await deploymentResult.
HttpClient
.GetAsync("Wow!");
308
response = await deploymentResult.
HttpClient
.GetAsync("Wow!");
323
var response = await deploymentResult.
HttpClient
.GetAsync("Wow!");
338
response = await deploymentResult.
HttpClient
.GetAsync("Wow!");
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\FunctionalTestsBase.cs (1)
49
return await result.
HttpClient
.GetStringAsync(path);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (1)
29
var response = await deploymentResult.
HttpClient
.RetryRequestAsync(path, r => r.IsSuccessStatusCode);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISFunctionalTestBase.cs (2)
53
var response = await deploymentResult.
HttpClient
.RetryRequestAsync("HelloWorld", r => r.StatusCode == HttpStatusCode.ServiceUnavailable);
68
var response = await deploymentResult.
HttpClient
.RetryRequestAsync("HelloWorld", r => r.IsSuccessStatusCode);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISTestSiteFixture.cs (1)
60
public HttpClient Client => DeploymentResult.
HttpClient
;
IISExpress.FunctionalTests (133)
InProcess\AuthenticationTests.cs (4)
31
var response = await deploymentResult.
HttpClient
.GetAsync("/AuthenticationAnonymous");
37
response = await deploymentResult.
HttpClient
.GetAsync("/AuthenticationRestricted");
43
response = await deploymentResult.
HttpClient
.GetAsync("/AuthenticationRestrictedNTLM");
50
response = await deploymentResult.
HttpClient
.GetAsync("/AuthenticationForbidden");
InProcess\IISExpressShutdownTests.cs (7)
33
await deploymentResult.
HttpClient
.GetAsync("/Shutdown");
41
deploymentResult.
HttpClient
.Dispose();
53
var load = Helpers.StressLoad(deploymentResult.
HttpClient
, "/HelloWorld", response =>
61
await deploymentResult.
HttpClient
.GetAsync("/Shutdown");
70
deploymentResult.
HttpClient
.Dispose();
83
var response = await result.
HttpClient
.GetAsync("/HelloWorld");
95
var response = await result.
HttpClient
.GetAsync("/HelloWorld");
OutOfProcess\NtlmAuthentationTest.cs (2)
44
var response = await result.
HttpClient
.GetAsync("/HelloWorld");
50
var httpClient = result.
HttpClient
;
src\Servers\IIS\IIS\test\Common.FunctionalTests\AspNetCorePortTests.cs (7)
63
var responseText = await deploymentResult.
HttpClient
.GetStringAsync("/ServerAddresses");
78
var responseText = await deploymentResult.
HttpClient
.GetStringAsync("/ServerAddresses");
94
var response = await deploymentResult.
HttpClient
.GetAsync("/ServerAddresses");
110
var response = await deploymentResult.
HttpClient
.GetAsync("/Shutdown");
117
response = await deploymentResult.
HttpClient
.GetAsync("/HelloWorld");
131
response = await deploymentResult.
HttpClient
.GetAsync("/Shutdown");
137
response = await deploymentResult.
HttpClient
.GetAsync("/HelloWorld");
src\Servers\IIS\IIS\test\Common.FunctionalTests\BasicAuthTests.cs (1)
63
var response = await deploymentResult.
HttpClient
.SendAsync(request);
src\Servers\IIS\IIS\test\Common.FunctionalTests\FrebTests.cs (5)
57
await result.
HttpClient
.GetAsync("HelloWorld");
73
await result.
HttpClient
.GetAsync("HelloWorld");
86
await result.
HttpClient
.GetAsync("Throw");
99
using (var connection = new TestConnection(result.
HttpClient
.BaseAddress.Port))
107
await result.
HttpClient
.RetryRequestAsync("/WaitingRequestCount", async message => await message.Content.ReadAsStringAsync() == "1");
src\Servers\IIS\IIS\test\Common.FunctionalTests\GlobalVersionTests.cs (11)
51
var response = await deploymentResult.
HttpClient
.GetAsync(_helloWorldRequest);
75
var response = await deploymentResult.
HttpClient
.GetAsync(_helloWorldRequest);
98
var response = await deploymentResult.
HttpClient
.GetAsync(_helloWorldRequest);
121
var response = await deploymentResult.
HttpClient
.GetAsync(_helloWorldRequest);
144
deploymentResult.
HttpClient
.DefaultRequestHeaders.Add("ANCMRHPath", newANCMPath);
145
var response = await deploymentResult.
HttpClient
.GetAsync("CheckRequestHandlerVersion");
165
deploymentResult.
HttpClient
.DefaultRequestHeaders.Add("ANCMRHPath", originalANCMPath);
166
var response = await deploymentResult.
HttpClient
.GetAsync("CheckRequestHandlerVersion");
181
deploymentResult.
HttpClient
.DefaultRequestHeaders.Add("ANCMRHPath", newANCMPath);
182
response = await deploymentResult.
HttpClient
.GetAsync("CheckRequestHandlerVersion");
198
var response = await deploymentResult.
HttpClient
.GetAsync("HelloWorld");
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\FunctionalTestsBase.cs (1)
49
return await result.
HttpClient
.GetStringAsync(path);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (1)
29
var response = await deploymentResult.
HttpClient
.RetryRequestAsync(path, r => r.IsSuccessStatusCode);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISFunctionalTestBase.cs (2)
53
var response = await deploymentResult.
HttpClient
.RetryRequestAsync("HelloWorld", r => r.StatusCode == HttpStatusCode.ServiceUnavailable);
68
var response = await deploymentResult.
HttpClient
.RetryRequestAsync("HelloWorld", r => r.IsSuccessStatusCode);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISTestSiteFixture.cs (1)
60
public HttpClient Client => DeploymentResult.
HttpClient
;
src\Servers\IIS\IIS\test\Common.FunctionalTests\Inprocess\HttpSysRequestInfoTests.cs (1)
35
var response = await deploymentResult.
HttpClient
.GetAsync("/HttpSysRequestTimingInfo");
src\Servers\IIS\IIS\test\Common.FunctionalTests\Inprocess\MaxRequestBodySizeTests.cs (6)
44
var result = await deploymentResult.
HttpClient
.PostAsync("/ReadRequestBody", new StringContent("test"));
64
var result = await deploymentResult.
HttpClient
.PostAsync("/ReadRequestBody", new StringContent("test"));
87
var result = await deploymentResult.
HttpClient
.PostAsync("/ReadRequestBodyLarger", new StringContent(new string('a', 100000000)));
108
var result = await deploymentResult.
HttpClient
.PostAsync("/ReadRequestBodyLarger", new StringContent(new string('a', 10000)));
120
using (var connection = new TestConnection(deploymentResult.
HttpClient
.BaseAddress.Port))
154
var result = await deploymentResult.
HttpClient
.PostAsync("/IncreaseRequestLimit", new StringContent("1"));
src\Servers\IIS\IIS\test\Common.FunctionalTests\Latin1Tests.cs (1)
82
using (var connection = new TestConnection(deploymentResult.
HttpClient
.BaseAddress.Port))
src\Servers\IIS\IIS\test\Common.FunctionalTests\LoggingTests.cs (8)
117
await deploymentResult.
HttpClient
.GetAsync("/");
131
await deploymentResult.
HttpClient
.GetAsync("/");
147
await deploymentResult.
HttpClient
.GetAsync("/");
168
var response = await deploymentResult.
HttpClient
.GetAsync("/");
210
var response = await deploymentResult.
HttpClient
.GetAsync(path);
244
var response = await deploymentResult.
HttpClient
.GetAsync("Test");
260
var response = await deploymentResult.
HttpClient
.GetAsync("Test");
274
var response = await deploymentResult.
HttpClient
.GetAsync("Test");
src\Servers\IIS\IIS\test\Common.FunctionalTests\MaxRequestBodySizeTests.cs (6)
44
var result = await deploymentResult.
HttpClient
.PostAsync("/ReadRequestBody", new StringContent("test"));
64
var result = await deploymentResult.
HttpClient
.PostAsync("/ReadRequestBody", new StringContent("test"));
87
var result = await deploymentResult.
HttpClient
.PostAsync("/ReadRequestBodyLarger", new StringContent(new string('a', 100000000)));
108
var result = await deploymentResult.
HttpClient
.PostAsync("/ReadRequestBodyLarger", new StringContent(new string('a', 10000)));
120
using (var connection = new TestConnection(deploymentResult.
HttpClient
.BaseAddress.Port))
154
var result = await deploymentResult.
HttpClient
.PostAsync("/IncreaseRequestLimit", new StringContent("1"));
src\Servers\IIS\IIS\test\Common.FunctionalTests\MultiApplicationTests.cs (6)
46
var id1 = await result.
HttpClient
.GetStringAsync("/app1/ProcessId");
47
var id2 = await result.
HttpClient
.GetStringAsync("/app2/ProcessId");
58
var result1 = await result.
HttpClient
.GetAsync("/app1/HelloWorld");
59
var result2 = await result.
HttpClient
.GetAsync("/app2/HelloWorld");
85
var result1 = await result.
HttpClient
.GetAsync("/app1/HelloWorld");
86
var result2 = await result.
HttpClient
.GetAsync("/app2/HelloWorld");
src\Servers\IIS\IIS\test\Common.FunctionalTests\RequestResponseTests.cs (1)
608
Assert.Equal(_fixture.DeploymentResult.ContentRoot, await _fixture.DeploymentResult.
HttpClient
.GetStringAsync("/CurrentDirectory"));
src\Servers\IIS\IIS\test\Common.FunctionalTests\WindowsAuthTests.cs (1)
88
var request = HttpWebRequest.CreateHttp($"{deploymentResult.
HttpClient
.BaseAddress}Auth");
src\Servers\IIS\IIS\test\Common.LongTests\ShutdownTests.cs (25)
47
Assert.Equal("Hello World", await deploymentResult.
HttpClient
.GetStringAsync("/HelloWorld"));
67
await deploymentResult.
HttpClient
.GetAsync(path);
143
var result = await deploymentResult.
HttpClient
.GetAsync("/");
162
var result = await deploymentResult.
HttpClient
.GetAsync("/");
180
var result = await deploymentResult.
HttpClient
.GetAsync("/");
200
var result = await deploymentResult.
HttpClient
.GetAsync("/HelloWorld");
207
var connection = new TestConnection(deploymentResult.
HttpClient
.BaseAddress.Port);
224
var statusConnection = new TestConnection(deploymentResult.
HttpClient
.BaseAddress.Port);
276
var result = await deploymentResult.
HttpClient
.GetAsync("/HelloWorld");
287
using var res = await deploymentResult.
HttpClient
.GetAsync("/HelloWorld");
313
var result = await deploymentResult.
HttpClient
.GetAsync("/HelloWorld");
324
using var res = await deploymentResult.
HttpClient
.GetAsync("/HelloWorld");
409
var load = Helpers.StressLoad(deploymentResult.
HttpClient
, "/HelloWorld", response =>
469
var processBefore = await deploymentResult.
HttpClient
.GetStringAsync("/ProcessId");
476
await deploymentResult.
HttpClient
.RetryRequestAsync("/ProcessId", async r => await r.Content.ReadAsStringAsync() != processBefore);
487
var processBefore = await deploymentResult.
HttpClient
.GetStringAsync("/ProcessId");
496
await deploymentResult.
HttpClient
.RetryRequestAsync("/ProcessId", async r => await r.Content.ReadAsStringAsync() == processBefore);
507
var processBefore = await deploymentResult.
HttpClient
.GetStringAsync("/ProcessId");
516
await deploymentResult.
HttpClient
.RetryRequestAsync("/ProcessId", async r => await r.Content.ReadAsStringAsync() == processBefore);
528
var processBefore = await deploymentResult.
HttpClient
.GetStringAsync("/ProcessId");
535
await deploymentResult.
HttpClient
.RetryRequestAsync("/ProcessId", async r => await r.Content.ReadAsStringAsync() == processBefore);
557
await deploymentResult.
HttpClient
.RetryRequestAsync("/HelloWorld", r => r.Headers.Server.ToString().StartsWith("Microsoft", StringComparison.Ordinal));
571
var load = Helpers.StressLoad(deploymentResult.
HttpClient
, "/HelloWorld", response =>
611
var response = await deploymentResult.
HttpClient
.GetAsync("/Abort").TimeoutAfter(TimeoutExtensions.DefaultTimeoutValue);
638
var response = await deploymentResult.
HttpClient
.GetAsync("/Abort").TimeoutAfter(TimeoutExtensions.DefaultTimeoutValue);
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (35)
67
var response = await deploymentResult.
HttpClient
.GetAsync("HelloWorld");
176
var response = await deploymentResult.
HttpClient
.GetAsync("/HelloWorld");
227
var response = await deploymentResult.
HttpClient
.GetAsync("/");
245
var response = await deploymentResult.
HttpClient
.GetAsync("/");
262
var response = await deploymentResult.
HttpClient
.GetAsync("/HelloWorld");
426
var response = await deploymentResult.
HttpClient
.GetAsync("/HelloWorld");
478
var response = await deploymentResult.
HttpClient
.GetAsync("/");
511
var response = await deploymentResult.
HttpClient
.GetAsync("/");
536
var response = await deploymentResult.
HttpClient
.GetAsync("HelloWorld");
558
var result = await deploymentResult.
HttpClient
.GetAsync("/HelloWorld");
603
Assert.Equal(expectedArguments, await result.
HttpClient
.GetStringAsync("/CommandLineArgs"));
674
Assert.Equal(expectedArguments, await result.
HttpClient
.GetStringAsync("/CommandLineArgs"));
713
Assert.Equal(deploymentResult.ContentRoot, await deploymentResult.
HttpClient
.GetStringAsync("/ContentRootPath"));
714
Assert.Equal(deploymentResult.ContentRoot + "\\wwwroot", await deploymentResult.
HttpClient
.GetStringAsync("/WebRootPath"));
715
Assert.Equal(Path.GetDirectoryName(deploymentResult.HostProcess.MainModule.FileName), await deploymentResult.
HttpClient
.GetStringAsync("/CurrentDirectory"));
716
Assert.Equal(deploymentResult.ContentRoot + "\\", await deploymentResult.
HttpClient
.GetStringAsync("/BaseDirectory"));
717
Assert.Equal(deploymentResult.ContentRoot + "\\", await deploymentResult.
HttpClient
.GetStringAsync("/ASPNETCORE_IIS_PHYSICAL_PATH"));
772
var result = await deploymentResult.
HttpClient
.GetAsync("/");
796
var result = await deploymentResult.
HttpClient
.GetAsync("/");
819
var result = await deploymentResult.
HttpClient
.GetAsync("/");
844
var result = await deploymentResult.
HttpClient
.GetAsync("/");
866
var result = await deploymentResult.
HttpClient
.GetAsync("/");
887
var result = await deploymentResult.
HttpClient
.GetAsync("/StartupHook");
905
var result = await deploymentResult.
HttpClient
.GetAsync("/StartupHook");
918
var result = await deploymentResult.
HttpClient
.GetAsync("/StackSize");
930
var result = await deploymentResult.
HttpClient
.GetAsync("/StackSizeLarge");
974
var response = await deploymentResult.
HttpClient
.GetAsync("/OnCompletedThrows");
1060
var response = await deploymentResult.
HttpClient
.GetAsync("/HelloWorld");
1115
var response = await deploymentResult.
HttpClient
.GetAsync("HelloWorld");
1138
var response = await deploymentResult.
HttpClient
.GetAsync("HelloWorld");
1436
var response = await deploymentResult.
HttpClient
.GetAsync("ConnectionClose");
1500
return await deploymentResult.
HttpClient
.GetAsync("HelloWorld");
1505
var response = await deploymentResult.
HttpClient
.GetAsync("/HelloWorld");
1579
response = await deploymentResult.
HttpClient
.GetAsync("/HelloWorld");
1594
response = await deploymentResult.
HttpClient
.GetAsync("/HelloWorld");
UpgradeFeatureDetectionTests.cs (1)
73
var response = await deploymentResult.
HttpClient
.GetAsync("UpgradeFeatureDetection");
Microsoft.AspNetCore.Server.IntegrationTesting.IIS (1)
IISDeploymentResult.cs (1)
48
HttpClient
.Dispose();