419 references to GetStringAsync
Aspire.Hosting.Containers.Tests (6)
Aspire.Hosting.Testing.Tests (6)
Aspire.Hosting.Tests (7)
IIS.FunctionalTests (31)
src\Servers\IIS\IIS\test\Common.FunctionalTests\RequestResponseTests.cs (23)
388Assert.Equal("SlowOnCompleted", await _fixture.Client.GetStringAsync($"/OnCompletedHttpContext"));
389Assert.Equal("", await _fixture.Client.GetStringAsync($"/OnCompletedHttpContext_Completed"));
409Assert.Equal("SERVER_PORT: " + port, await _fixture.Client.GetStringAsync("/ServerVariable?q=SERVER_PORT"));
410Assert.Equal("QUERY_STRING: q=QUERY_STRING", await _fixture.Client.GetStringAsync("/ServerVariable?q=QUERY_STRING"));
416Assert.Equal("THIS_VAR_IS_UNDEFINED: (null)", await _fixture.Client.GetStringAsync("/ServerVariable?q=THIS_VAR_IS_UNDEFINED"));
422Assert.Equal("ROUNDTRIP: 1", await _fixture.Client.GetStringAsync("/ServerVariable?v=1&q=ROUNDTRIP"));
428Assert.DoesNotContain(@"\\?\", await _fixture.Client.GetStringAsync("/BasePath"));
445var result = await _fixture.Client.GetStringAsync($"/TestRequestHeaders");
464var result = await _fixture.Client.GetStringAsync($"/TestInvalidReadOperations{operation}");
473var result = await _fixture.Client.GetStringAsync($"/TestValidReadOperations{operation}");
494var result = await _fixture.Client.GetStringAsync($"/TestInvalidWriteOperations{operation}");
501var result = await _fixture.Client.GetStringAsync($"/TestValidWriteOperations/NullBuffer");
599Assert.Equal($"Started_{path}Threw_Finished", await _fixture.Client.GetStringAsync("/ResponseInvalidOrdering/" + path));
606Assert.Equal(_fixture.DeploymentResult.ContentRoot, await _fixture.Client.GetStringAsync("/ContentRootPath"));
607Assert.Equal(_fixture.DeploymentResult.ContentRoot + "\\wwwroot", await _fixture.Client.GetStringAsync("/WebRootPath"));
608Assert.Equal(_fixture.DeploymentResult.ContentRoot, await _fixture.DeploymentResult.HttpClient.GetStringAsync("/CurrentDirectory"));
609Assert.Equal(_fixture.DeploymentResult.ContentRoot + "\\", await _fixture.Client.GetStringAsync("/BaseDirectory"));
610Assert.Equal(_fixture.DeploymentResult.ContentRoot + "\\", await _fixture.Client.GetStringAsync("/ASPNETCORE_IIS_PHYSICAL_PATH"));
632Assert.Equal(expected, await _fixture.Client.GetStringAsync($"/{endpoint}"));
642Assert.Equal(new string('a', query), await _fixture.Client.GetStringAsync($"/LargeResponseBody?length={query}"));
648Assert.Equal(200000000, (await _fixture.Client.GetStringAsync($"/LargeResponseFile")).Length);
657Assert.Equal("Success", await _fixture.Client.GetStringAsync(path + "/path" + "?query"));
665Assert.Equal(_fixture.Client.BaseAddress.ToString(), await _fixture.Client.GetStringAsync("/ServerAddresses"));
IIS.LongTests (17)
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (11)
603Assert.Equal(expectedArguments, await result.HttpClient.GetStringAsync("/CommandLineArgs"));
674Assert.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)
603Assert.Equal(expectedArguments, await result.HttpClient.GetStringAsync("/CommandLineArgs"));
674Assert.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)
603Assert.Equal(expectedArguments, await result.HttpClient.GetStringAsync("/CommandLineArgs"));
674Assert.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)
388Assert.Equal("SlowOnCompleted", await _fixture.Client.GetStringAsync($"/OnCompletedHttpContext"));
389Assert.Equal("", await _fixture.Client.GetStringAsync($"/OnCompletedHttpContext_Completed"));
409Assert.Equal("SERVER_PORT: " + port, await _fixture.Client.GetStringAsync("/ServerVariable?q=SERVER_PORT"));
410Assert.Equal("QUERY_STRING: q=QUERY_STRING", await _fixture.Client.GetStringAsync("/ServerVariable?q=QUERY_STRING"));
416Assert.Equal("THIS_VAR_IS_UNDEFINED: (null)", await _fixture.Client.GetStringAsync("/ServerVariable?q=THIS_VAR_IS_UNDEFINED"));
422Assert.Equal("ROUNDTRIP: 1", await _fixture.Client.GetStringAsync("/ServerVariable?v=1&q=ROUNDTRIP"));
428Assert.DoesNotContain(@"\\?\", await _fixture.Client.GetStringAsync("/BasePath"));
445var result = await _fixture.Client.GetStringAsync($"/TestRequestHeaders");
464var result = await _fixture.Client.GetStringAsync($"/TestInvalidReadOperations{operation}");
473var result = await _fixture.Client.GetStringAsync($"/TestValidReadOperations{operation}");
494var result = await _fixture.Client.GetStringAsync($"/TestInvalidWriteOperations{operation}");
501var result = await _fixture.Client.GetStringAsync($"/TestValidWriteOperations/NullBuffer");
599Assert.Equal($"Started_{path}Threw_Finished", await _fixture.Client.GetStringAsync("/ResponseInvalidOrdering/" + path));
606Assert.Equal(_fixture.DeploymentResult.ContentRoot, await _fixture.Client.GetStringAsync("/ContentRootPath"));
607Assert.Equal(_fixture.DeploymentResult.ContentRoot + "\\wwwroot", await _fixture.Client.GetStringAsync("/WebRootPath"));
608Assert.Equal(_fixture.DeploymentResult.ContentRoot, await _fixture.DeploymentResult.HttpClient.GetStringAsync("/CurrentDirectory"));
609Assert.Equal(_fixture.DeploymentResult.ContentRoot + "\\", await _fixture.Client.GetStringAsync("/BaseDirectory"));
610Assert.Equal(_fixture.DeploymentResult.ContentRoot + "\\", await _fixture.Client.GetStringAsync("/ASPNETCORE_IIS_PHYSICAL_PATH"));
632Assert.Equal(expected, await _fixture.Client.GetStringAsync($"/{endpoint}"));
642Assert.Equal(new string('a', query), await _fixture.Client.GetStringAsync($"/LargeResponseBody?length={query}"));
648Assert.Equal(200000000, (await _fixture.Client.GetStringAsync($"/LargeResponseFile")).Length);
657Assert.Equal("Success", await _fixture.Client.GetStringAsync(path + "/path" + "?query"));
665Assert.Equal(_fixture.Client.BaseAddress.ToString(), await _fixture.Client.GetStringAsync("/ServerAddresses"));
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (11)
603Assert.Equal(expectedArguments, await result.HttpClient.GetStringAsync("/CommandLineArgs"));
674Assert.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.Authentication.JwtBearer.Tools.Tests (1)
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.OpenApi.Tests (1)
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.Extensions.AI.OpenAI.Tests (1)
Microsoft.Extensions.ServiceDiscovery.Tests (1)
SocialSample (1)
Sockets.FunctionalTests (5)