1 write to HttpClient
Microsoft.AspNetCore.Server.IntegrationTesting.IIS (1)
IISDeploymentResult.cs (1)
34
HttpClient
= CreateClient(new HttpClientHandler());
417 references to HttpClient
IIS.FunctionalTests (63)
src\Servers\IIS\IIS\test\Common.FunctionalTests\AspNetCorePortTests.cs (7)
64
var responseText = await deploymentResult.
HttpClient
.GetStringAsync("/ServerAddresses");
79
var responseText = await deploymentResult.
HttpClient
.GetStringAsync("/ServerAddresses");
95
var response = await deploymentResult.
HttpClient
.GetAsync("/ServerAddresses");
111
var response = await deploymentResult.
HttpClient
.GetAsync("/Shutdown");
118
response = await deploymentResult.
HttpClient
.GetAsync("/HelloWorld");
132
response = await deploymentResult.
HttpClient
.GetAsync("/Shutdown");
138
response = await deploymentResult.
HttpClient
.GetAsync("/HelloWorld");
src\Servers\IIS\IIS\test\Common.FunctionalTests\BasicAuthTests.cs (1)
64
var response = await deploymentResult.
HttpClient
.SendAsync(request);
src\Servers\IIS\IIS\test\Common.FunctionalTests\FrebTests.cs (5)
58
await result.
HttpClient
.GetAsync("HelloWorld");
74
await result.
HttpClient
.GetAsync("HelloWorld");
87
await result.
HttpClient
.GetAsync("Throw");
100
using (var connection = new TestConnection(result.
HttpClient
.BaseAddress.Port))
108
await result.
HttpClient
.RetryRequestAsync("/WaitingRequestCount", async message => await message.Content.ReadAsStringAsync() == "1");
src\Servers\IIS\IIS\test\Common.FunctionalTests\GlobalVersionTests.cs (11)
52
var response = await deploymentResult.
HttpClient
.GetAsync(_helloWorldRequest);
76
var response = await deploymentResult.
HttpClient
.GetAsync(_helloWorldRequest);
99
var response = await deploymentResult.
HttpClient
.GetAsync(_helloWorldRequest);
122
var response = await deploymentResult.
HttpClient
.GetAsync(_helloWorldRequest);
145
deploymentResult.
HttpClient
.DefaultRequestHeaders.Add("ANCMRHPath", newANCMPath);
146
var response = await deploymentResult.
HttpClient
.GetAsync("CheckRequestHandlerVersion");
166
deploymentResult.
HttpClient
.DefaultRequestHeaders.Add("ANCMRHPath", originalANCMPath);
167
var response = await deploymentResult.
HttpClient
.GetAsync("CheckRequestHandlerVersion");
182
deploymentResult.
HttpClient
.DefaultRequestHeaders.Add("ANCMRHPath", newANCMPath);
183
response = await deploymentResult.
HttpClient
.GetAsync("CheckRequestHandlerVersion");
199
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)
118
await deploymentResult.
HttpClient
.GetAsync("/");
132
await deploymentResult.
HttpClient
.GetAsync("/");
148
await deploymentResult.
HttpClient
.GetAsync("/");
169
var response = await deploymentResult.
HttpClient
.GetAsync("/");
211
var response = await deploymentResult.
HttpClient
.GetAsync(path);
245
var response = await deploymentResult.
HttpClient
.GetAsync("Test");
261
var response = await deploymentResult.
HttpClient
.GetAsync("Test");
275
var response = await deploymentResult.
HttpClient
.GetAsync("Test");
src\Servers\IIS\IIS\test\Common.FunctionalTests\MaxRequestBodySizeTests.cs (6)
45
var result = await deploymentResult.
HttpClient
.PostAsync("/ReadRequestBody", new StringContent("test"));
65
var result = await deploymentResult.
HttpClient
.PostAsync("/ReadRequestBody", new StringContent("test"));
88
var result = await deploymentResult.
HttpClient
.PostAsync("/ReadRequestBodyLarger", new StringContent(new string('a', 100000000)));
109
var result = await deploymentResult.
HttpClient
.PostAsync("/ReadRequestBodyLarger", new StringContent(new string('a', 10000)));
121
using (var connection = new TestConnection(deploymentResult.
HttpClient
.BaseAddress.Port))
155
var result = await deploymentResult.
HttpClient
.PostAsync("/IncreaseRequestLimit", new StringContent("1"));
src\Servers\IIS\IIS\test\Common.FunctionalTests\MultiApplicationTests.cs (6)
47
var id1 = await result.
HttpClient
.GetStringAsync("/app1/ProcessId");
48
var id2 = await result.
HttpClient
.GetStringAsync("/app2/ProcessId");
59
var result1 = await result.
HttpClient
.GetAsync("/app1/HelloWorld");
60
var result2 = await result.
HttpClient
.GetAsync("/app2/HelloWorld");
86
var result1 = await result.
HttpClient
.GetAsync("/app1/HelloWorld");
87
var result2 = await result.
HttpClient
.GetAsync("/app2/HelloWorld");
src\Servers\IIS\IIS\test\Common.FunctionalTests\RequestResponseTests.cs (1)
609
Assert.Equal(_fixture.DeploymentResult.ContentRoot, await _fixture.DeploymentResult.
HttpClient
.GetStringAsync("/CurrentDirectory"));
src\Servers\IIS\IIS\test\IIS.Shared.FunctionalTests\StdOutRedirectionTests.cs (5)
45
var response = await deploymentResult.
HttpClient
.GetAsync("/HelloWorld");
69
var response = await deploymentResult.
HttpClient
.GetAsync("/HelloWorld");
99
var response = await deploymentResult.
HttpClient
.GetAsync("/HelloWorld");
125
var response = await deploymentResult.
HttpClient
.GetAsync("/HelloWorld");
152
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)
48
Assert.Equal("Hello World", await deploymentResult.
HttpClient
.GetStringAsync("/HelloWorld"));
68
await deploymentResult.
HttpClient
.GetAsync(path);
144
var result = await deploymentResult.
HttpClient
.GetAsync("/");
163
var result = await deploymentResult.
HttpClient
.GetAsync("/");
181
var result = await deploymentResult.
HttpClient
.GetAsync("/");
201
var result = await deploymentResult.
HttpClient
.GetAsync("/HelloWorld");
208
var connection = new TestConnection(deploymentResult.
HttpClient
.BaseAddress.Port);
225
var statusConnection = new TestConnection(deploymentResult.
HttpClient
.BaseAddress.Port);
277
var result = await deploymentResult.
HttpClient
.GetAsync("/HelloWorld");
288
using var res = await deploymentResult.
HttpClient
.GetAsync("/HelloWorld");
314
var result = await deploymentResult.
HttpClient
.GetAsync("/HelloWorld");
325
using var res = await deploymentResult.
HttpClient
.GetAsync("/HelloWorld");
411
var load = Helpers.StressLoad(deploymentResult.
HttpClient
, "/HelloWorld", response =>
471
var processBefore = await deploymentResult.
HttpClient
.GetStringAsync("/ProcessId");
478
await deploymentResult.
HttpClient
.RetryRequestAsync("/ProcessId", async r => await r.Content.ReadAsStringAsync() != processBefore);
489
var processBefore = await deploymentResult.
HttpClient
.GetStringAsync("/ProcessId");
498
await deploymentResult.
HttpClient
.RetryRequestAsync("/ProcessId", async r => await r.Content.ReadAsStringAsync() == processBefore);
509
var processBefore = await deploymentResult.
HttpClient
.GetStringAsync("/ProcessId");
518
await deploymentResult.
HttpClient
.RetryRequestAsync("/ProcessId", async r => await r.Content.ReadAsStringAsync() == processBefore);
530
var processBefore = await deploymentResult.
HttpClient
.GetStringAsync("/ProcessId");
537
await deploymentResult.
HttpClient
.RetryRequestAsync("/ProcessId", async r => await r.Content.ReadAsStringAsync() == processBefore);
559
await deploymentResult.
HttpClient
.RetryRequestAsync("/HelloWorld", r => r.Headers.Server.ToString().StartsWith("Microsoft", StringComparison.Ordinal));
574
var load = Helpers.StressLoad(deploymentResult.
HttpClient
, "/HelloWorld", response =>
614
var response = await deploymentResult.
HttpClient
.GetAsync("/Abort").TimeoutAfter(TimeoutExtensions.DefaultTimeoutValue);
641
var response = await deploymentResult.
HttpClient
.GetAsync("/Abort").TimeoutAfter(TimeoutExtensions.DefaultTimeoutValue);
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (35)
68
var response = await deploymentResult.
HttpClient
.GetAsync("HelloWorld");
177
var response = await deploymentResult.
HttpClient
.GetAsync("/HelloWorld");
228
var response = await deploymentResult.
HttpClient
.GetAsync("/");
246
var response = await deploymentResult.
HttpClient
.GetAsync("/");
263
var response = await deploymentResult.
HttpClient
.GetAsync("/HelloWorld");
427
var response = await deploymentResult.
HttpClient
.GetAsync("/HelloWorld");
479
var response = await deploymentResult.
HttpClient
.GetAsync("/");
512
var response = await deploymentResult.
HttpClient
.GetAsync("/");
537
var response = await deploymentResult.
HttpClient
.GetAsync("HelloWorld");
559
var result = await deploymentResult.
HttpClient
.GetAsync("/HelloWorld");
604
Assert.Equal(expectedArguments, await result.
HttpClient
.GetStringAsync("/CommandLineArgs"));
675
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)
27
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)
48
Assert.Equal("Hello World", await deploymentResult.
HttpClient
.GetStringAsync("/HelloWorld"));
68
await deploymentResult.
HttpClient
.GetAsync(path);
144
var result = await deploymentResult.
HttpClient
.GetAsync("/");
163
var result = await deploymentResult.
HttpClient
.GetAsync("/");
181
var result = await deploymentResult.
HttpClient
.GetAsync("/");
201
var result = await deploymentResult.
HttpClient
.GetAsync("/HelloWorld");
208
var connection = new TestConnection(deploymentResult.
HttpClient
.BaseAddress.Port);
225
var statusConnection = new TestConnection(deploymentResult.
HttpClient
.BaseAddress.Port);
277
var result = await deploymentResult.
HttpClient
.GetAsync("/HelloWorld");
288
using var res = await deploymentResult.
HttpClient
.GetAsync("/HelloWorld");
314
var result = await deploymentResult.
HttpClient
.GetAsync("/HelloWorld");
325
using var res = await deploymentResult.
HttpClient
.GetAsync("/HelloWorld");
411
var load = Helpers.StressLoad(deploymentResult.
HttpClient
, "/HelloWorld", response =>
471
var processBefore = await deploymentResult.
HttpClient
.GetStringAsync("/ProcessId");
478
await deploymentResult.
HttpClient
.RetryRequestAsync("/ProcessId", async r => await r.Content.ReadAsStringAsync() != processBefore);
489
var processBefore = await deploymentResult.
HttpClient
.GetStringAsync("/ProcessId");
498
await deploymentResult.
HttpClient
.RetryRequestAsync("/ProcessId", async r => await r.Content.ReadAsStringAsync() == processBefore);
509
var processBefore = await deploymentResult.
HttpClient
.GetStringAsync("/ProcessId");
518
await deploymentResult.
HttpClient
.RetryRequestAsync("/ProcessId", async r => await r.Content.ReadAsStringAsync() == processBefore);
530
var processBefore = await deploymentResult.
HttpClient
.GetStringAsync("/ProcessId");
537
await deploymentResult.
HttpClient
.RetryRequestAsync("/ProcessId", async r => await r.Content.ReadAsStringAsync() == processBefore);
559
await deploymentResult.
HttpClient
.RetryRequestAsync("/HelloWorld", r => r.Headers.Server.ToString().StartsWith("Microsoft", StringComparison.Ordinal));
574
var load = Helpers.StressLoad(deploymentResult.
HttpClient
, "/HelloWorld", response =>
614
var response = await deploymentResult.
HttpClient
.GetAsync("/Abort").TimeoutAfter(TimeoutExtensions.DefaultTimeoutValue);
641
var response = await deploymentResult.
HttpClient
.GetAsync("/Abort").TimeoutAfter(TimeoutExtensions.DefaultTimeoutValue);
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (35)
68
var response = await deploymentResult.
HttpClient
.GetAsync("HelloWorld");
177
var response = await deploymentResult.
HttpClient
.GetAsync("/HelloWorld");
228
var response = await deploymentResult.
HttpClient
.GetAsync("/");
246
var response = await deploymentResult.
HttpClient
.GetAsync("/");
263
var response = await deploymentResult.
HttpClient
.GetAsync("/HelloWorld");
427
var response = await deploymentResult.
HttpClient
.GetAsync("/HelloWorld");
479
var response = await deploymentResult.
HttpClient
.GetAsync("/");
512
var response = await deploymentResult.
HttpClient
.GetAsync("/");
537
var response = await deploymentResult.
HttpClient
.GetAsync("HelloWorld");
559
var result = await deploymentResult.
HttpClient
.GetAsync("/HelloWorld");
604
Assert.Equal(expectedArguments, await result.
HttpClient
.GetStringAsync("/CommandLineArgs"));
675
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)
25
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)
48
Assert.Equal("Hello World", await deploymentResult.
HttpClient
.GetStringAsync("/HelloWorld"));
68
await deploymentResult.
HttpClient
.GetAsync(path);
144
var result = await deploymentResult.
HttpClient
.GetAsync("/");
163
var result = await deploymentResult.
HttpClient
.GetAsync("/");
181
var result = await deploymentResult.
HttpClient
.GetAsync("/");
201
var result = await deploymentResult.
HttpClient
.GetAsync("/HelloWorld");
208
var connection = new TestConnection(deploymentResult.
HttpClient
.BaseAddress.Port);
225
var statusConnection = new TestConnection(deploymentResult.
HttpClient
.BaseAddress.Port);
277
var result = await deploymentResult.
HttpClient
.GetAsync("/HelloWorld");
288
using var res = await deploymentResult.
HttpClient
.GetAsync("/HelloWorld");
314
var result = await deploymentResult.
HttpClient
.GetAsync("/HelloWorld");
325
using var res = await deploymentResult.
HttpClient
.GetAsync("/HelloWorld");
411
var load = Helpers.StressLoad(deploymentResult.
HttpClient
, "/HelloWorld", response =>
471
var processBefore = await deploymentResult.
HttpClient
.GetStringAsync("/ProcessId");
478
await deploymentResult.
HttpClient
.RetryRequestAsync("/ProcessId", async r => await r.Content.ReadAsStringAsync() != processBefore);
489
var processBefore = await deploymentResult.
HttpClient
.GetStringAsync("/ProcessId");
498
await deploymentResult.
HttpClient
.RetryRequestAsync("/ProcessId", async r => await r.Content.ReadAsStringAsync() == processBefore);
509
var processBefore = await deploymentResult.
HttpClient
.GetStringAsync("/ProcessId");
518
await deploymentResult.
HttpClient
.RetryRequestAsync("/ProcessId", async r => await r.Content.ReadAsStringAsync() == processBefore);
530
var processBefore = await deploymentResult.
HttpClient
.GetStringAsync("/ProcessId");
537
await deploymentResult.
HttpClient
.RetryRequestAsync("/ProcessId", async r => await r.Content.ReadAsStringAsync() == processBefore);
559
await deploymentResult.
HttpClient
.RetryRequestAsync("/HelloWorld", r => r.Headers.Server.ToString().StartsWith("Microsoft", StringComparison.Ordinal));
574
var load = Helpers.StressLoad(deploymentResult.
HttpClient
, "/HelloWorld", response =>
614
var response = await deploymentResult.
HttpClient
.GetAsync("/Abort").TimeoutAfter(TimeoutExtensions.DefaultTimeoutValue);
641
var response = await deploymentResult.
HttpClient
.GetAsync("/Abort").TimeoutAfter(TimeoutExtensions.DefaultTimeoutValue);
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (35)
68
var response = await deploymentResult.
HttpClient
.GetAsync("HelloWorld");
177
var response = await deploymentResult.
HttpClient
.GetAsync("/HelloWorld");
228
var response = await deploymentResult.
HttpClient
.GetAsync("/");
246
var response = await deploymentResult.
HttpClient
.GetAsync("/");
263
var response = await deploymentResult.
HttpClient
.GetAsync("/HelloWorld");
427
var response = await deploymentResult.
HttpClient
.GetAsync("/HelloWorld");
479
var response = await deploymentResult.
HttpClient
.GetAsync("/");
512
var response = await deploymentResult.
HttpClient
.GetAsync("/");
537
var response = await deploymentResult.
HttpClient
.GetAsync("HelloWorld");
559
var result = await deploymentResult.
HttpClient
.GetAsync("/HelloWorld");
604
Assert.Equal(expectedArguments, await result.
HttpClient
.GetStringAsync("/CommandLineArgs"));
675
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)
26
var response = await deploymentResult.
HttpClient
.GetAsync("Wow!");
52
var response = await deploymentResult.
HttpClient
.GetAsync("Wow!");
83
var response = await deploymentResult.
HttpClient
.GetAsync("Wow!");
118
var response = await deploymentResult.
HttpClient
.GetAsync("Wow!");
137
response = await deploymentResult.
HttpClient
.GetAsync("Wow!");
154
var response = await deploymentResult.
HttpClient
.GetAsync("Wow!");
168
response = await deploymentResult.
HttpClient
.GetAsync("Wow!");
183
var response = await deploymentResult.
HttpClient
.GetAsync("Wow!");
194
response = await deploymentResult.
HttpClient
.GetAsync("Wow!");
210
var response = await deploymentResult.
HttpClient
.GetAsync("Wow!");
219
response = await deploymentResult.
HttpClient
.GetAsync("Wow!");
233
response = await deploymentResult.
HttpClient
.GetAsync("Wow!");
252
var response = await deploymentResult.
HttpClient
.GetAsync("Wow!");
261
response = await deploymentResult.
HttpClient
.GetAsync("Wow!");
275
response = await deploymentResult.
HttpClient
.GetAsync("Wow!");
294
var response = await deploymentResult.
HttpClient
.GetAsync("Wow!");
309
response = await deploymentResult.
HttpClient
.GetAsync("Wow!");
324
var response = await deploymentResult.
HttpClient
.GetAsync("Wow!");
339
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 (132)
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();
54
var load = Helpers.StressLoad(deploymentResult.
HttpClient
, "/HelloWorld", response =>
62
await deploymentResult.
HttpClient
.GetAsync("/Shutdown");
71
deploymentResult.
HttpClient
.Dispose();
84
var response = await result.
HttpClient
.GetAsync("/HelloWorld");
96
var response = await result.
HttpClient
.GetAsync("/HelloWorld");
OutOfProcess\NtlmAuthentationTest.cs (2)
45
var response = await result.
HttpClient
.GetAsync("/HelloWorld");
51
var httpClient = result.
HttpClient
;
src\Servers\IIS\IIS\test\Common.FunctionalTests\AspNetCorePortTests.cs (7)
64
var responseText = await deploymentResult.
HttpClient
.GetStringAsync("/ServerAddresses");
79
var responseText = await deploymentResult.
HttpClient
.GetStringAsync("/ServerAddresses");
95
var response = await deploymentResult.
HttpClient
.GetAsync("/ServerAddresses");
111
var response = await deploymentResult.
HttpClient
.GetAsync("/Shutdown");
118
response = await deploymentResult.
HttpClient
.GetAsync("/HelloWorld");
132
response = await deploymentResult.
HttpClient
.GetAsync("/Shutdown");
138
response = await deploymentResult.
HttpClient
.GetAsync("/HelloWorld");
src\Servers\IIS\IIS\test\Common.FunctionalTests\BasicAuthTests.cs (1)
64
var response = await deploymentResult.
HttpClient
.SendAsync(request);
src\Servers\IIS\IIS\test\Common.FunctionalTests\FrebTests.cs (5)
58
await result.
HttpClient
.GetAsync("HelloWorld");
74
await result.
HttpClient
.GetAsync("HelloWorld");
87
await result.
HttpClient
.GetAsync("Throw");
100
using (var connection = new TestConnection(result.
HttpClient
.BaseAddress.Port))
108
await result.
HttpClient
.RetryRequestAsync("/WaitingRequestCount", async message => await message.Content.ReadAsStringAsync() == "1");
src\Servers\IIS\IIS\test\Common.FunctionalTests\GlobalVersionTests.cs (11)
52
var response = await deploymentResult.
HttpClient
.GetAsync(_helloWorldRequest);
76
var response = await deploymentResult.
HttpClient
.GetAsync(_helloWorldRequest);
99
var response = await deploymentResult.
HttpClient
.GetAsync(_helloWorldRequest);
122
var response = await deploymentResult.
HttpClient
.GetAsync(_helloWorldRequest);
145
deploymentResult.
HttpClient
.DefaultRequestHeaders.Add("ANCMRHPath", newANCMPath);
146
var response = await deploymentResult.
HttpClient
.GetAsync("CheckRequestHandlerVersion");
166
deploymentResult.
HttpClient
.DefaultRequestHeaders.Add("ANCMRHPath", originalANCMPath);
167
var response = await deploymentResult.
HttpClient
.GetAsync("CheckRequestHandlerVersion");
182
deploymentResult.
HttpClient
.DefaultRequestHeaders.Add("ANCMRHPath", newANCMPath);
183
response = await deploymentResult.
HttpClient
.GetAsync("CheckRequestHandlerVersion");
199
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)
118
await deploymentResult.
HttpClient
.GetAsync("/");
132
await deploymentResult.
HttpClient
.GetAsync("/");
148
await deploymentResult.
HttpClient
.GetAsync("/");
169
var response = await deploymentResult.
HttpClient
.GetAsync("/");
211
var response = await deploymentResult.
HttpClient
.GetAsync(path);
245
var response = await deploymentResult.
HttpClient
.GetAsync("Test");
261
var response = await deploymentResult.
HttpClient
.GetAsync("Test");
275
var response = await deploymentResult.
HttpClient
.GetAsync("Test");
src\Servers\IIS\IIS\test\Common.FunctionalTests\MaxRequestBodySizeTests.cs (6)
45
var result = await deploymentResult.
HttpClient
.PostAsync("/ReadRequestBody", new StringContent("test"));
65
var result = await deploymentResult.
HttpClient
.PostAsync("/ReadRequestBody", new StringContent("test"));
88
var result = await deploymentResult.
HttpClient
.PostAsync("/ReadRequestBodyLarger", new StringContent(new string('a', 100000000)));
109
var result = await deploymentResult.
HttpClient
.PostAsync("/ReadRequestBodyLarger", new StringContent(new string('a', 10000)));
121
using (var connection = new TestConnection(deploymentResult.
HttpClient
.BaseAddress.Port))
155
var result = await deploymentResult.
HttpClient
.PostAsync("/IncreaseRequestLimit", new StringContent("1"));
src\Servers\IIS\IIS\test\Common.FunctionalTests\MultiApplicationTests.cs (6)
47
var id1 = await result.
HttpClient
.GetStringAsync("/app1/ProcessId");
48
var id2 = await result.
HttpClient
.GetStringAsync("/app2/ProcessId");
59
var result1 = await result.
HttpClient
.GetAsync("/app1/HelloWorld");
60
var result2 = await result.
HttpClient
.GetAsync("/app2/HelloWorld");
86
var result1 = await result.
HttpClient
.GetAsync("/app1/HelloWorld");
87
var result2 = await result.
HttpClient
.GetAsync("/app2/HelloWorld");
src\Servers\IIS\IIS\test\Common.FunctionalTests\RequestResponseTests.cs (1)
609
Assert.Equal(_fixture.DeploymentResult.ContentRoot, await _fixture.DeploymentResult.
HttpClient
.GetStringAsync("/CurrentDirectory"));
src\Servers\IIS\IIS\test\Common.LongTests\ShutdownTests.cs (25)
48
Assert.Equal("Hello World", await deploymentResult.
HttpClient
.GetStringAsync("/HelloWorld"));
68
await deploymentResult.
HttpClient
.GetAsync(path);
144
var result = await deploymentResult.
HttpClient
.GetAsync("/");
163
var result = await deploymentResult.
HttpClient
.GetAsync("/");
181
var result = await deploymentResult.
HttpClient
.GetAsync("/");
201
var result = await deploymentResult.
HttpClient
.GetAsync("/HelloWorld");
208
var connection = new TestConnection(deploymentResult.
HttpClient
.BaseAddress.Port);
225
var statusConnection = new TestConnection(deploymentResult.
HttpClient
.BaseAddress.Port);
277
var result = await deploymentResult.
HttpClient
.GetAsync("/HelloWorld");
288
using var res = await deploymentResult.
HttpClient
.GetAsync("/HelloWorld");
314
var result = await deploymentResult.
HttpClient
.GetAsync("/HelloWorld");
325
using var res = await deploymentResult.
HttpClient
.GetAsync("/HelloWorld");
411
var load = Helpers.StressLoad(deploymentResult.
HttpClient
, "/HelloWorld", response =>
471
var processBefore = await deploymentResult.
HttpClient
.GetStringAsync("/ProcessId");
478
await deploymentResult.
HttpClient
.RetryRequestAsync("/ProcessId", async r => await r.Content.ReadAsStringAsync() != processBefore);
489
var processBefore = await deploymentResult.
HttpClient
.GetStringAsync("/ProcessId");
498
await deploymentResult.
HttpClient
.RetryRequestAsync("/ProcessId", async r => await r.Content.ReadAsStringAsync() == processBefore);
509
var processBefore = await deploymentResult.
HttpClient
.GetStringAsync("/ProcessId");
518
await deploymentResult.
HttpClient
.RetryRequestAsync("/ProcessId", async r => await r.Content.ReadAsStringAsync() == processBefore);
530
var processBefore = await deploymentResult.
HttpClient
.GetStringAsync("/ProcessId");
537
await deploymentResult.
HttpClient
.RetryRequestAsync("/ProcessId", async r => await r.Content.ReadAsStringAsync() == processBefore);
559
await deploymentResult.
HttpClient
.RetryRequestAsync("/HelloWorld", r => r.Headers.Server.ToString().StartsWith("Microsoft", StringComparison.Ordinal));
574
var load = Helpers.StressLoad(deploymentResult.
HttpClient
, "/HelloWorld", response =>
614
var response = await deploymentResult.
HttpClient
.GetAsync("/Abort").TimeoutAfter(TimeoutExtensions.DefaultTimeoutValue);
641
var response = await deploymentResult.
HttpClient
.GetAsync("/Abort").TimeoutAfter(TimeoutExtensions.DefaultTimeoutValue);
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (35)
68
var response = await deploymentResult.
HttpClient
.GetAsync("HelloWorld");
177
var response = await deploymentResult.
HttpClient
.GetAsync("/HelloWorld");
228
var response = await deploymentResult.
HttpClient
.GetAsync("/");
246
var response = await deploymentResult.
HttpClient
.GetAsync("/");
263
var response = await deploymentResult.
HttpClient
.GetAsync("/HelloWorld");
427
var response = await deploymentResult.
HttpClient
.GetAsync("/HelloWorld");
479
var response = await deploymentResult.
HttpClient
.GetAsync("/");
512
var response = await deploymentResult.
HttpClient
.GetAsync("/");
537
var response = await deploymentResult.
HttpClient
.GetAsync("HelloWorld");
559
var result = await deploymentResult.
HttpClient
.GetAsync("/HelloWorld");
604
Assert.Equal(expectedArguments, await result.
HttpClient
.GetStringAsync("/CommandLineArgs"));
675
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)
74
var response = await deploymentResult.
HttpClient
.GetAsync("UpgradeFeatureDetection");
Microsoft.AspNetCore.Server.IntegrationTesting.IIS (1)
IISDeploymentResult.cs (1)
48
HttpClient
.Dispose();