Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/adr/0011-lark-nyx-relay-webhook.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand All @@ -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();

Expand Down
Loading