test(routing): cover /immutable_data/card_master routing
This commit is contained in:
@@ -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user