feat(bff): placeholder BFF + /health endpoint (closes #28) (#34)

This commit was merged in pull request #34.
This commit is contained in:
2026-06-03 11:38:08 +00:00
parent 364d2eceb2
commit dfbaf7640a
11 changed files with 145 additions and 1 deletions

View File

@@ -0,0 +1,20 @@
using System.Net;
using Microsoft.AspNetCore.Mvc.Testing;
namespace Bff.Tests;
public class HealthEndpointTests(WebApplicationFactory<Program> factory)
: IClassFixture<WebApplicationFactory<Program>>
{
[Fact]
public async Task Health_endpoint_returns_200_and_reports_healthy()
{
var client = factory.CreateClient();
var response = await client.GetAsync("/health");
Assert.Equal(HttpStatusCode.OK, response.StatusCode);
var body = await response.Content.ReadAsStringAsync();
Assert.Contains("Healthy", body);
}
}