From 45969bc4fb3b16db49aaa23145b062b1c96a2f07 Mon Sep 17 00:00:00 2001 From: Tim Hess Date: Fri, 13 Sep 2024 16:54:38 -0500 Subject: [PATCH] Update src/Management/test/Endpoint.Test/Actuators/HttpExchanges/EndpointMiddlewareTest.cs Co-authored-by: Bart Koelman <104792814+bart-vmware@users.noreply.github.com> --- .../Actuators/HttpExchanges/EndpointMiddlewareTest.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Management/test/Endpoint.Test/Actuators/HttpExchanges/EndpointMiddlewareTest.cs b/src/Management/test/Endpoint.Test/Actuators/HttpExchanges/EndpointMiddlewareTest.cs index 968c1a2cf2..1b1ebb51b7 100644 --- a/src/Management/test/Endpoint.Test/Actuators/HttpExchanges/EndpointMiddlewareTest.cs +++ b/src/Management/test/Endpoint.Test/Actuators/HttpExchanges/EndpointMiddlewareTest.cs @@ -28,11 +28,14 @@ public async Task HttpExchangesActuator_ReturnsExpectedData() builder.Configuration.AddInMemoryCollection(AppSettings); builder.AddHttpExchangesActuator(); await using WebApplication host = builder.Build(); + host.UseRouting(); await host.StartAsync(); HttpClient httpClient = host.GetTestClient(); + HttpResponseMessage response = await httpClient.GetAsync(new Uri("http://localhost/actuator/httpexchanges")); response.StatusCode.Should().Be(HttpStatusCode.OK); + string json = await response.Content.ReadAsStringAsync(); json.Should().Be("{\"traces\":[]}"); }