diff --git a/docs/adr/0011-lark-nyx-relay-webhook.md b/docs/adr/0011-lark-nyx-relay-webhook.md index ee6cd3776..6ef15599f 100644 --- a/docs/adr/0011-lark-nyx-relay-webhook.md +++ b/docs/adr/0011-lark-nyx-relay-webhook.md @@ -78,7 +78,7 @@ The required order is: 2. Build and validate `channel-relay/reply` 3. Switch the Lark console callback URL to Nyx 4. Remove the direct Aevatar Lark callback path from the supported runtime contract -5. Historical transition note: the retired direct endpoint could temporarily return `410 Gone`; the current runtime deletes the direct endpoint entirely. +5. Return `410 Gone` for `POST /api/channels/lark/callback/{registrationId}` or delete that endpoint entirely ## Consequences diff --git a/test/Aevatar.GAgents.ChannelRuntime.Tests/ChannelCallbackEndpointsTests.cs b/test/Aevatar.GAgents.ChannelRuntime.Tests/ChannelCallbackEndpointsTests.cs index 2fbcf8c14..15a334020 100644 --- a/test/Aevatar.GAgents.ChannelRuntime.Tests/ChannelCallbackEndpointsTests.cs +++ b/test/Aevatar.GAgents.ChannelRuntime.Tests/ChannelCallbackEndpointsTests.cs @@ -21,14 +21,14 @@ namespace Aevatar.GAgents.ChannelRuntime.Tests; public sealed class ChannelCallbackEndpointsTests { [Fact] - public void MapChannelCallbackEndpoints_ShouldRequireAuthorization_ForDiagnosticErrors() + public async Task MapChannelCallbackEndpoints_ShouldRequireAuthorization_ForDiagnosticErrors() { var builder = WebApplication.CreateBuilder(new WebApplicationOptions { EnvironmentName = "Development", }); - var app = builder.Build(); + await using var app = builder.Build(); var routeBuilder = (IEndpointRouteBuilder)app; app.MapChannelCallbackEndpoints(); @@ -41,14 +41,14 @@ public void MapChannelCallbackEndpoints_ShouldRequireAuthorization_ForDiagnostic } [Fact] - public void MapChannelCallbackEndpoints_ShouldNotRegisterRetiredDirectPlatformCallback() + public async Task MapChannelCallbackEndpoints_ShouldNotRegisterRetiredDirectPlatformCallback() { var builder = WebApplication.CreateBuilder(new WebApplicationOptions { EnvironmentName = "Development", }); - var app = builder.Build(); + await using var app = builder.Build(); var routeBuilder = (IEndpointRouteBuilder)app; app.MapChannelCallbackEndpoints();