410 references to GetStringAsync
Aspire.Hosting.Containers.Tests (6)
Aspire.Hosting.Tests (6)
IIS.FunctionalTests (31)
src\Servers\IIS\IIS\test\Common.FunctionalTests\RequestResponseTests.cs (23)
389Assert.Equal("SlowOnCompleted", await _fixture.Client.GetStringAsync($"/OnCompletedHttpContext"));
390Assert.Equal("", await _fixture.Client.GetStringAsync($"/OnCompletedHttpContext_Completed"));
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"));
446var result = await _fixture.Client.GetStringAsync($"/TestRequestHeaders");
465var result = await _fixture.Client.GetStringAsync($"/TestInvalidReadOperations{operation}");
474var result = await _fixture.Client.GetStringAsync($"/TestValidReadOperations{operation}");
495var result = await _fixture.Client.GetStringAsync($"/TestInvalidWriteOperations{operation}");
502var result = await _fixture.Client.GetStringAsync($"/TestValidWriteOperations/NullBuffer");
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"));
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"));
IIS.LongTests (17)
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (11)
604Assert.Equal(expectedArguments, await result.HttpClient.GetStringAsync("/CommandLineArgs"));
675Assert.Equal(expectedArguments, await result.HttpClient.GetStringAsync("/CommandLineArgs"));
713Assert.Equal(deploymentResult.ContentRoot, await deploymentResult.HttpClient.GetStringAsync("/ContentRootPath"));
714Assert.Equal(deploymentResult.ContentRoot + "\\wwwroot", await deploymentResult.HttpClient.GetStringAsync("/WebRootPath"));
715Assert.Equal(Path.GetDirectoryName(deploymentResult.HostProcess.MainModule.FileName), await deploymentResult.HttpClient.GetStringAsync("/CurrentDirectory"));
716Assert.Equal(deploymentResult.ContentRoot + "\\", await deploymentResult.HttpClient.GetStringAsync("/BaseDirectory"));
717Assert.Equal(deploymentResult.ContentRoot + "\\", await deploymentResult.HttpClient.GetStringAsync("/ASPNETCORE_IIS_PHYSICAL_PATH"));
1320Assert.Equal(deploymentParameters.ApplicationBaseUriHint + appName, await client.GetStringAsync($"/{appName}/ServerAddresses"));
1344Assert.Equal("123", await client.GetStringAsync("/ANCM_HTTPS_PORT"));
1345Assert.Equal("NOVALUE", await client.GetStringAsync("/HTTPS_PORT"));
1421Assert.Equal("NOVALUE", await client.GetStringAsync("/ANCM_HTTPS_PORT"));
IIS.NewHandler.FunctionalTests (17)
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (11)
604Assert.Equal(expectedArguments, await result.HttpClient.GetStringAsync("/CommandLineArgs"));
675Assert.Equal(expectedArguments, await result.HttpClient.GetStringAsync("/CommandLineArgs"));
713Assert.Equal(deploymentResult.ContentRoot, await deploymentResult.HttpClient.GetStringAsync("/ContentRootPath"));
714Assert.Equal(deploymentResult.ContentRoot + "\\wwwroot", await deploymentResult.HttpClient.GetStringAsync("/WebRootPath"));
715Assert.Equal(Path.GetDirectoryName(deploymentResult.HostProcess.MainModule.FileName), await deploymentResult.HttpClient.GetStringAsync("/CurrentDirectory"));
716Assert.Equal(deploymentResult.ContentRoot + "\\", await deploymentResult.HttpClient.GetStringAsync("/BaseDirectory"));
717Assert.Equal(deploymentResult.ContentRoot + "\\", await deploymentResult.HttpClient.GetStringAsync("/ASPNETCORE_IIS_PHYSICAL_PATH"));
1320Assert.Equal(deploymentParameters.ApplicationBaseUriHint + appName, await client.GetStringAsync($"/{appName}/ServerAddresses"));
1344Assert.Equal("123", await client.GetStringAsync("/ANCM_HTTPS_PORT"));
1345Assert.Equal("NOVALUE", await client.GetStringAsync("/HTTPS_PORT"));
1421Assert.Equal("NOVALUE", await client.GetStringAsync("/ANCM_HTTPS_PORT"));
IIS.NewShim.FunctionalTests (17)
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (11)
604Assert.Equal(expectedArguments, await result.HttpClient.GetStringAsync("/CommandLineArgs"));
675Assert.Equal(expectedArguments, await result.HttpClient.GetStringAsync("/CommandLineArgs"));
713Assert.Equal(deploymentResult.ContentRoot, await deploymentResult.HttpClient.GetStringAsync("/ContentRootPath"));
714Assert.Equal(deploymentResult.ContentRoot + "\\wwwroot", await deploymentResult.HttpClient.GetStringAsync("/WebRootPath"));
715Assert.Equal(Path.GetDirectoryName(deploymentResult.HostProcess.MainModule.FileName), await deploymentResult.HttpClient.GetStringAsync("/CurrentDirectory"));
716Assert.Equal(deploymentResult.ContentRoot + "\\", await deploymentResult.HttpClient.GetStringAsync("/BaseDirectory"));
717Assert.Equal(deploymentResult.ContentRoot + "\\", await deploymentResult.HttpClient.GetStringAsync("/ASPNETCORE_IIS_PHYSICAL_PATH"));
1320Assert.Equal(deploymentParameters.ApplicationBaseUriHint + appName, await client.GetStringAsync($"/{appName}/ServerAddresses"));
1344Assert.Equal("123", await client.GetStringAsync("/ANCM_HTTPS_PORT"));
1345Assert.Equal("NOVALUE", await client.GetStringAsync("/HTTPS_PORT"));
1421Assert.Equal("NOVALUE", await client.GetStringAsync("/ANCM_HTTPS_PORT"));
IIS.ShadowCopy.Tests (1)
IIS.Tests (4)
IISExpress.FunctionalTests (46)
src\Servers\IIS\IIS\test\Common.FunctionalTests\RequestResponseTests.cs (23)
389Assert.Equal("SlowOnCompleted", await _fixture.Client.GetStringAsync($"/OnCompletedHttpContext"));
390Assert.Equal("", await _fixture.Client.GetStringAsync($"/OnCompletedHttpContext_Completed"));
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"));
446var result = await _fixture.Client.GetStringAsync($"/TestRequestHeaders");
465var result = await _fixture.Client.GetStringAsync($"/TestInvalidReadOperations{operation}");
474var result = await _fixture.Client.GetStringAsync($"/TestValidReadOperations{operation}");
495var result = await _fixture.Client.GetStringAsync($"/TestInvalidWriteOperations{operation}");
502var result = await _fixture.Client.GetStringAsync($"/TestValidWriteOperations/NullBuffer");
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"));
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"));
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (11)
604Assert.Equal(expectedArguments, await result.HttpClient.GetStringAsync("/CommandLineArgs"));
675Assert.Equal(expectedArguments, await result.HttpClient.GetStringAsync("/CommandLineArgs"));
713Assert.Equal(deploymentResult.ContentRoot, await deploymentResult.HttpClient.GetStringAsync("/ContentRootPath"));
714Assert.Equal(deploymentResult.ContentRoot + "\\wwwroot", await deploymentResult.HttpClient.GetStringAsync("/WebRootPath"));
715Assert.Equal(Path.GetDirectoryName(deploymentResult.HostProcess.MainModule.FileName), await deploymentResult.HttpClient.GetStringAsync("/CurrentDirectory"));
716Assert.Equal(deploymentResult.ContentRoot + "\\", await deploymentResult.HttpClient.GetStringAsync("/BaseDirectory"));
717Assert.Equal(deploymentResult.ContentRoot + "\\", await deploymentResult.HttpClient.GetStringAsync("/ASPNETCORE_IIS_PHYSICAL_PATH"));
1320Assert.Equal(deploymentParameters.ApplicationBaseUriHint + appName, await client.GetStringAsync($"/{appName}/ServerAddresses"));
1344Assert.Equal("123", await client.GetStringAsync("/ANCM_HTTPS_PORT"));
1345Assert.Equal("NOVALUE", await client.GetStringAsync("/HTTPS_PORT"));
1421Assert.Equal("NOVALUE", await client.GetStringAsync("/ANCM_HTTPS_PORT"));
Interop.FunctionalTests (2)
Microsoft.AspNetCore.Components.WebAssembly.Server (1)
Microsoft.AspNetCore.Http.Abstractions.Tests (3)
Microsoft.AspNetCore.Identity.FunctionalTests (11)
MapIdentityApiTests.cs (11)
125Assert.Equal($"Hello, {Email}!", await client.GetStringAsync("/auth/hello"));
157Assert.Equal($"Hello, {Email}!", await client.GetStringAsync("/auth/hello"));
191Assert.Equal($"Hello, {Email}!", await client.GetStringAsync("/auth/hello"));
196Assert.Equal($"Hello, {Email}!", await client.GetStringAsync("/auth/hello"));
224Assert.Equal($"Hello, {Email}!", await client.GetStringAsync("/auth/hello"));
264Assert.Equal($"Hello, {Email}!", await client.GetStringAsync($"/auth/hello?accessToken={accessToken}"));
268Assert.Equal($"Hello, {Email}!", await client.GetStringAsync("/auth/hello"));
304Assert.Equal($"Hello, {Email}!", await client.GetStringAsync("/auth/hello"));
374Assert.Equal($"Hello, {Email}!", await client.GetStringAsync("/auth/hello"));
419Assert.Equal($"Hello, {newUsername}!", await client.GetStringAsync("/auth/hello"));
708Assert.Equal($"Hello, {Email}!", await client.GetStringAsync("/auth/hello"));
Microsoft.AspNetCore.Identity.Test (1)
Microsoft.AspNetCore.Mvc.FunctionalTests (166)
Microsoft.AspNetCore.Rewrite.Tests (29)
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (12)
Microsoft.AspNetCore.Server.HttpSys.NonHelixTests (2)
Microsoft.AspNetCore.Session.Tests (10)
Microsoft.AspNetCore.TestHost.Tests (18)
Microsoft.AspNetCore.Tests (2)
Microsoft.DotNet.VersionTools (1)
Microsoft.Extensions.ServiceDiscovery.Tests (1)
SocialSample (1)
Sockets.FunctionalTests (5)