feat(esg): per-system TimeoutSeconds column on ExternalSystemDefinition (spec Component-ExternalSystemGateway Timeout) — entity + EF + migration

Claude-Session: https://claude.ai/code/session_01MtdgwpEeCUn6cUA5f1LMPj
This commit is contained in:
Joseph Doherty
2026-07-10 03:55:26 -04:00
parent 153b82c880
commit 2767e4bca1
7 changed files with 2097 additions and 0 deletions
@@ -45,6 +45,21 @@ public class ExternalSystemRepositoryTests : IDisposable
Assert.Equal("Sys", loaded!.Name);
}
[Fact]
public async Task AddExternalSystem_TimeoutSeconds_RoundTrips()
{
var def = new ExternalSystemDefinition("Sys", "https://example.test", "ApiKey")
{
TimeoutSeconds = 15,
};
await _repository.AddExternalSystemAsync(def);
await _repository.SaveChangesAsync();
var loaded = await _repository.GetExternalSystemByIdAsync(def.Id);
Assert.NotNull(loaded);
Assert.Equal(15, loaded!.TimeoutSeconds);
}
[Fact]
public async Task GetMethodsByExternalSystemId_FiltersByParent()
{