feat(admin): dispatch allowlisted maintenance jobs
CI and Deploy / test (push) Successful in 7m8s
CI and Deploy / deploy (push) Successful in 1m42s

This commit is contained in:
cesnimda
2026-09-01 16:53:54 +02:00
parent 3ec9ac1dad
commit 3b055b01f5
11 changed files with 328 additions and 8 deletions
@@ -1022,7 +1022,8 @@ public sealed class AuthAndSystemControllerTests
null!,
Mock.Of<ISummarizerService>(),
new FakeEnv(),
emailSettings.Object);
emailSettings.Object,
new MaintenanceJobDispatcher(cfg, Mock.Of<IHttpClientFactory>()));
var result = await controller.GetEmailSettings(CancellationToken.None);
var ok = Assert.IsType<OkObjectResult>(result.Result);
@@ -1037,13 +1038,15 @@ public sealed class AuthAndSystemControllerTests
var summarizer = new Mock<ISummarizerService>();
summarizer.Setup(x => x.RunProbeAsync(It.IsAny<CancellationToken>())).Returns(Task.CompletedTask);
var cfg = BuildConfig();
var controller = new AdminSystemController(
BuildConfig(),
new AppPaths(BuildConfig(), new FakeHostEnv()),
cfg,
new AppPaths(cfg, new FakeHostEnv()),
null!,
summarizer.Object,
new FakeEnv(),
Mock.Of<IEmailSettingsResolver>());
Mock.Of<IEmailSettingsResolver>(),
new MaintenanceJobDispatcher(cfg, Mock.Of<IHttpClientFactory>()));
var result = await controller.RunSummarizerProbe(CancellationToken.None);