test(routing): cover /immutable_data/card_master routing

This commit is contained in:
gamer147
2026-06-12 12:20:46 -04:00
parent 6eb4547866
commit 92a21e7a7a

View File

@@ -52,6 +52,22 @@ public class RoutingSmokeTests
"SpecialTitleCheck should return the built-in title id \"0\".");
}
[Test]
public async Task ImmutableDataCardMaster_resolves_to_ImmutableDataController()
{
using var factory = new TestFactory();
using var client = factory.CreateClient();
var response = await client.PostAsync("/immutable_data/card_master",
new StringContent(ValidBaseRequestJson, Encoding.UTF8, "application/json"));
// [Authorize] on SVSimController means an unauthenticated POST returns 401 — that still
// proves routing resolved (404 would mean the path didn't bind).
Assert.That((int)response.StatusCode, Is.Not.EqualTo((int)HttpStatusCode.NotFound),
$"Expected /immutable_data/card_master to route; got 404. Body: " +
await response.Content.ReadAsStringAsync());
}
[Test]
public async Task ImportViewer_route_resolves()
{