Skip to content

Commit

Permalink
Update src/Management/test/Endpoint.Test/Actuators/HttpExchanges/Endp…
Browse files Browse the repository at this point in the history
…ointMiddlewareTest.cs

Co-authored-by: Bart Koelman <[email protected]>
  • Loading branch information
TimHess and bart-vmware committed Sep 16, 2024
1 parent 4b8ebf1 commit 45969bc
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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\":[]}");
}
Expand Down

0 comments on commit 45969bc

Please sign in to comment.