1 write to _fixture
IIS.FunctionalTests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\RequestResponseTests.cs (1)
39
_fixture
= fixture;
70 references to _fixture
IIS.FunctionalTests (70)
src\Servers\IIS\IIS\test\Common.FunctionalTests\RequestResponseTests.cs (70)
130
var response = await
_fixture
.Client.SendAsync(request);
148
var response = await
_fixture
.Client.SendAsync(request);
164
var response = await
_fixture
.Client.PostAsync("ReadAndWriteSynchronously", content);
176
var response = await
_fixture
.Client.PostAsync("ReadAndWriteEcho", content);
187
var response = await
_fixture
.Client.PostAsync("ReadAndWriteCopyToAsync", content);
198
var response = await
_fixture
.Client.PostAsync("ReadAndWriteEchoTwice", content);
209
var response = await
_fixture
.Client.PostAsync("SetHeaderFromBody", content);
219
using (var connection =
_fixture
.CreateTestConnection())
253
using (var connection =
_fixture
.CreateTestConnection())
290
using (var connection =
_fixture
.CreateTestConnection())
339
using (var connection =
_fixture
.CreateTestConnection())
374
Assert.Equal(10, (await
_fixture
.Client.GetByteArrayAsync($"/UnflushedResponsePipe")).Length);
381
Assert.Equal(20, (await
_fixture
.Client.GetByteArrayAsync($"/FlushedPipeAndThenUnflushedPipe")).Length);
388
Assert.Equal("SlowOnCompleted", await
_fixture
.Client.GetStringAsync($"/OnCompletedHttpContext"));
389
Assert.Equal("", await
_fixture
.Client.GetStringAsync($"/OnCompletedHttpContext_Completed"));
398
var response = await
_fixture
.Client.GetAsync("/CompleteAsync");
401
var response2 = await
_fixture
.Client.GetAsync("/CompleteAsync_Completed");
408
var port =
_fixture
.Client.BaseAddress.Port;
409
Assert.Equal("SERVER_PORT: " + port, await
_fixture
.Client.GetStringAsync("/ServerVariable?q=SERVER_PORT"));
410
Assert.Equal("QUERY_STRING: q=QUERY_STRING", await
_fixture
.Client.GetStringAsync("/ServerVariable?q=QUERY_STRING"));
416
Assert.Equal("THIS_VAR_IS_UNDEFINED: (null)", await
_fixture
.Client.GetStringAsync("/ServerVariable?q=THIS_VAR_IS_UNDEFINED"));
422
Assert.Equal("ROUNDTRIP: 1", await
_fixture
.Client.GetStringAsync("/ServerVariable?v=1&q=ROUNDTRIP"));
428
Assert.DoesNotContain(@"\\?\", await
_fixture
.Client.GetStringAsync("/BasePath"));
434
await Helpers.StressLoad(
_fixture
.Client, "/GetServerVariableStress", response =>
445
var result = await
_fixture
.Client.GetStringAsync($"/TestRequestHeaders");
452
var result = await
_fixture
.Client.PostAsync($"/TestReadOffsetWorks", new StringContent("Hello World"));
464
var result = await
_fixture
.Client.GetStringAsync($"/TestInvalidReadOperations{operation}");
473
var result = await
_fixture
.Client.GetStringAsync($"/TestValidReadOperations{operation}");
482
var result = await
_fixture
.Client.PostAsync($"/TestValidReadOperations{operation}", new StringContent("hello"));
494
var result = await
_fixture
.Client.GetStringAsync($"/TestInvalidWriteOperations{operation}");
501
var result = await
_fixture
.Client.GetStringAsync($"/TestValidWriteOperations/NullBuffer");
508
var result = await
_fixture
.Client.PostAsync($"/TestValidWriteOperations/NullBufferPost", new StringContent("hello"));
515
var response = await
_fixture
.Client.GetAsync("ResponseEmptyHeaders");
524
var response = await
_fixture
.Client.GetAsync("ResponseHeaders");
544
var response = await
_fixture
.Client.GetAsync("Throw");
567
var response = await
_fixture
.Client.GetAsync($"SetCustomErorCode?code={code}&reason={reason}&writeBody={body != null}&body={body}");
581
var request = new HttpRequestMessage(new HttpMethod(method),
_fixture
.Client.BaseAddress + $"SetCustomErorCode?code={code}");
582
var response = await
_fixture
.Client.SendAsync(request);
590
var response = await
_fixture
.Client.GetAsync("OverrideServer");
599
Assert.Equal($"Started_{path}Threw_Finished", await
_fixture
.Client.GetStringAsync("/ResponseInvalidOrdering/" + path));
606
Assert.Equal(
_fixture
.DeploymentResult.ContentRoot, await
_fixture
.Client.GetStringAsync("/ContentRootPath"));
607
Assert.Equal(
_fixture
.DeploymentResult.ContentRoot + "\\wwwroot", await
_fixture
.Client.GetStringAsync("/WebRootPath"));
608
Assert.Equal(
_fixture
.DeploymentResult.ContentRoot, await
_fixture
.DeploymentResult.HttpClient.GetStringAsync("/CurrentDirectory"));
609
Assert.Equal(
_fixture
.DeploymentResult.ContentRoot + "\\", await
_fixture
.Client.GetStringAsync("/BaseDirectory"));
610
Assert.Equal(
_fixture
.DeploymentResult.ContentRoot + "\\", await
_fixture
.Client.GetStringAsync("/ASPNETCORE_IIS_PHYSICAL_PATH"));
618
var siteName =
_fixture
.DeploymentResult.DeploymentParameters.SiteName.ToUpperInvariant();
623
Application Path: {
_fixture
.DeploymentResult.ContentRoot}\
626
AppPool ID: {
_fixture
.DeploymentResult.AppPoolName}
627
AppPool Config File: {
_fixture
.DeploymentResult.DeploymentParameters.ServerConfigLocation}
632
Assert.Equal(expected, await
_fixture
.Client.GetStringAsync($"/{endpoint}"));
642
Assert.Equal(new string('a', query), await
_fixture
.Client.GetStringAsync($"/LargeResponseBody?length={query}"));
648
Assert.Equal(200000000, (await
_fixture
.Client.GetStringAsync($"/LargeResponseFile")).Length);
657
Assert.Equal("Success", await
_fixture
.Client.GetStringAsync(path + "/path" + "?query"));
665
Assert.Equal(
_fixture
.Client.BaseAddress.ToString(), await
_fixture
.Client.GetStringAsync("/ServerAddresses"));
671
using (var connection =
_fixture
.CreateTestConnection())
689
var response = await
_fixture
.Client.GetAsync("HelloWorld");
698
using (var connection =
_fixture
.CreateTestConnection())
707
await
_fixture
.Client.RetryRequestAsync("/WaitingRequestCount", async message => await message.Content.ReadAsStringAsync() == "1");
710
await
_fixture
.Client.RetryRequestAsync("/WaitingRequestCount", async message => await message.Content.ReadAsStringAsync() == "0");
722
using (var connection =
_fixture
.CreateTestConnection())
754
using (var connection =
_fixture
.CreateTestConnection())
774
using (var connection =
_fixture
.CreateTestConnection())
793
using (var connection =
_fixture
.CreateTestConnection())
797
"Host: " +
_fixture
.Client.BaseAddress.Authority,