1 write to _fixture
IIS.FunctionalTests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\RequestResponseTests.cs (1)
40
_fixture
= fixture;
70 references to _fixture
IIS.FunctionalTests (70)
src\Servers\IIS\IIS\test\Common.FunctionalTests\RequestResponseTests.cs (70)
131
var response = await
_fixture
.Client.SendAsync(request);
149
var response = await
_fixture
.Client.SendAsync(request);
165
var response = await
_fixture
.Client.PostAsync("ReadAndWriteSynchronously", content);
177
var response = await
_fixture
.Client.PostAsync("ReadAndWriteEcho", content);
188
var response = await
_fixture
.Client.PostAsync("ReadAndWriteCopyToAsync", content);
199
var response = await
_fixture
.Client.PostAsync("ReadAndWriteEchoTwice", content);
210
var response = await
_fixture
.Client.PostAsync("SetHeaderFromBody", content);
220
using (var connection =
_fixture
.CreateTestConnection())
254
using (var connection =
_fixture
.CreateTestConnection())
291
using (var connection =
_fixture
.CreateTestConnection())
340
using (var connection =
_fixture
.CreateTestConnection())
375
Assert.Equal(10, (await
_fixture
.Client.GetByteArrayAsync($"/UnflushedResponsePipe")).Length);
382
Assert.Equal(20, (await
_fixture
.Client.GetByteArrayAsync($"/FlushedPipeAndThenUnflushedPipe")).Length);
389
Assert.Equal("SlowOnCompleted", await
_fixture
.Client.GetStringAsync($"/OnCompletedHttpContext"));
390
Assert.Equal("", await
_fixture
.Client.GetStringAsync($"/OnCompletedHttpContext_Completed"));
399
var response = await
_fixture
.Client.GetAsync("/CompleteAsync");
402
var response2 = await
_fixture
.Client.GetAsync("/CompleteAsync_Completed");
409
var port =
_fixture
.Client.BaseAddress.Port;
410
Assert.Equal("SERVER_PORT: " + port, await
_fixture
.Client.GetStringAsync("/ServerVariable?q=SERVER_PORT"));
411
Assert.Equal("QUERY_STRING: q=QUERY_STRING", await
_fixture
.Client.GetStringAsync("/ServerVariable?q=QUERY_STRING"));
417
Assert.Equal("THIS_VAR_IS_UNDEFINED: (null)", await
_fixture
.Client.GetStringAsync("/ServerVariable?q=THIS_VAR_IS_UNDEFINED"));
423
Assert.Equal("ROUNDTRIP: 1", await
_fixture
.Client.GetStringAsync("/ServerVariable?v=1&q=ROUNDTRIP"));
429
Assert.DoesNotContain(@"\\?\", await
_fixture
.Client.GetStringAsync("/BasePath"));
435
await Helpers.StressLoad(
_fixture
.Client, "/GetServerVariableStress", response =>
446
var result = await
_fixture
.Client.GetStringAsync($"/TestRequestHeaders");
453
var result = await
_fixture
.Client.PostAsync($"/TestReadOffsetWorks", new StringContent("Hello World"));
465
var result = await
_fixture
.Client.GetStringAsync($"/TestInvalidReadOperations{operation}");
474
var result = await
_fixture
.Client.GetStringAsync($"/TestValidReadOperations{operation}");
483
var result = await
_fixture
.Client.PostAsync($"/TestValidReadOperations{operation}", new StringContent("hello"));
495
var result = await
_fixture
.Client.GetStringAsync($"/TestInvalidWriteOperations{operation}");
502
var result = await
_fixture
.Client.GetStringAsync($"/TestValidWriteOperations/NullBuffer");
509
var result = await
_fixture
.Client.PostAsync($"/TestValidWriteOperations/NullBufferPost", new StringContent("hello"));
516
var response = await
_fixture
.Client.GetAsync("ResponseEmptyHeaders");
525
var response = await
_fixture
.Client.GetAsync("ResponseHeaders");
545
var response = await
_fixture
.Client.GetAsync("Throw");
568
var response = await
_fixture
.Client.GetAsync($"SetCustomErorCode?code={code}&reason={reason}&writeBody={body != null}&body={body}");
582
var request = new HttpRequestMessage(new HttpMethod(method),
_fixture
.Client.BaseAddress + $"SetCustomErorCode?code={code}");
583
var response = await
_fixture
.Client.SendAsync(request);
591
var response = await
_fixture
.Client.GetAsync("OverrideServer");
600
Assert.Equal($"Started_{path}Threw_Finished", await
_fixture
.Client.GetStringAsync("/ResponseInvalidOrdering/" + path));
607
Assert.Equal(
_fixture
.DeploymentResult.ContentRoot, await
_fixture
.Client.GetStringAsync("/ContentRootPath"));
608
Assert.Equal(
_fixture
.DeploymentResult.ContentRoot + "\\wwwroot", await
_fixture
.Client.GetStringAsync("/WebRootPath"));
609
Assert.Equal(
_fixture
.DeploymentResult.ContentRoot, await
_fixture
.DeploymentResult.HttpClient.GetStringAsync("/CurrentDirectory"));
610
Assert.Equal(
_fixture
.DeploymentResult.ContentRoot + "\\", await
_fixture
.Client.GetStringAsync("/BaseDirectory"));
611
Assert.Equal(
_fixture
.DeploymentResult.ContentRoot + "\\", await
_fixture
.Client.GetStringAsync("/ASPNETCORE_IIS_PHYSICAL_PATH"));
619
var siteName =
_fixture
.DeploymentResult.DeploymentParameters.SiteName.ToUpperInvariant();
624
Application Path: {
_fixture
.DeploymentResult.ContentRoot}\
627
AppPool ID: {
_fixture
.DeploymentResult.AppPoolName}
628
AppPool Config File: {
_fixture
.DeploymentResult.DeploymentParameters.ServerConfigLocation}
633
Assert.Equal(expected, await
_fixture
.Client.GetStringAsync($"/{endpoint}"));
643
Assert.Equal(new string('a', query), await
_fixture
.Client.GetStringAsync($"/LargeResponseBody?length={query}"));
649
Assert.Equal(200000000, (await
_fixture
.Client.GetStringAsync($"/LargeResponseFile")).Length);
658
Assert.Equal("Success", await
_fixture
.Client.GetStringAsync(path + "/path" + "?query"));
666
Assert.Equal(
_fixture
.Client.BaseAddress.ToString(), await
_fixture
.Client.GetStringAsync("/ServerAddresses"));
672
using (var connection =
_fixture
.CreateTestConnection())
690
var response = await
_fixture
.Client.GetAsync("HelloWorld");
699
using (var connection =
_fixture
.CreateTestConnection())
708
await
_fixture
.Client.RetryRequestAsync("/WaitingRequestCount", async message => await message.Content.ReadAsStringAsync() == "1");
711
await
_fixture
.Client.RetryRequestAsync("/WaitingRequestCount", async message => await message.Content.ReadAsStringAsync() == "0");
723
using (var connection =
_fixture
.CreateTestConnection())
755
using (var connection =
_fixture
.CreateTestConnection())
775
using (var connection =
_fixture
.CreateTestConnection())
794
using (var connection =
_fixture
.CreateTestConnection())
798
"Host: " +
_fixture
.Client.BaseAddress.Authority,