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