test(api): stabilize authorization contract manifest

This commit is contained in:
2026-08-04 09:52:20 +08:00
parent 2063cb59fd
commit ed3321a34b

View File

@@ -15,10 +15,9 @@ namespace Tiku.IntegrationTests.Api;
public sealed class AuthorizationManifestTests
{
// Reviewed additions: platform approval, typed configuration, notification governance,
// and operation-level authorization metadata.
// Controller-agnostic contract: HTTP method, route, action, anonymous access and policies.
private const int ExpectedActionCount = 465;
private const string ExpectedSha256 = "d31e8f91cc261863272ceef6868db68c9a1288aaaef29332f4e1a5b11b617fcd";
private const string ExpectedSha256 = "8dfb784d46fc916b59bd5e3896f7508d6e640d57bb52744354c0f6411948383e";
[Fact]
public void Controller_authorization_surface_matches_reviewed_manifest()
@@ -118,6 +117,6 @@ public sealed class AuthorizationManifestTests
var anonymous = controller.IsDefined(typeof(AllowAnonymousAttribute)) ||
action.IsDefined(typeof(AllowAnonymousAttribute));
return
$"{methods}|{controllerRoute}/{templates}|{controller.Name}.{action.Name}|anonymous={anonymous}|policies={string.Join(',', policies)}";
$"{methods}|{controllerRoute}/{templates}|{action.Name}|anonymous={anonymous}|policies={string.Join(',', policies)}";
}
}
}