Fix build and code structure improvements. New but essential UI functionality. CI improvements. Documentation improvements. AI module improvements.

This commit is contained in:
StellaOps Bot
2025-12-26 21:54:17 +02:00
parent 335ff7da16
commit c2b9cd8d1f
3717 changed files with 264714 additions and 48202 deletions

View File

@@ -3,11 +3,8 @@ using System.IO;
using System.Threading.Tasks;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Logging.Abstractions;
using Microsoft.Extensions.Options;
using StellaOps.Scanner.Surface.Env;
using StellaOps.Scanner.Surface.Validation;
using StellaOps.TestKit;
namespace StellaOps.Scanner.Surface.Validation.Tests;
@@ -41,7 +38,7 @@ public sealed class SurfaceValidatorRunnerTests
var context = SurfaceValidationContext.Create(services, "TestComponent", environment);
await Assert.ThrowsAsync<SurfaceValidationException>(() => runner.EnsureAsync(context));
await Assert.ThrowsAsync<SurfaceValidationException>(() => runner.EnsureAsync(context).AsTask());
}
[Trait("Category", TestCategories.Unit)]
@@ -136,8 +133,7 @@ public sealed class SurfaceValidatorRunnerTests
private static ServiceProvider CreateServices(Action<IServiceCollection>? configure = null)
{
var services = new ServiceCollection();
services.AddSingleton<ILogger<LoggingSurfaceValidationReporter>>(_ => NullLogger<LoggingSurfaceValidationReporter>.Instance);
services.AddSingleton<ILogger<SurfaceValidatorRunner>>(_ => NullLogger<SurfaceValidatorRunner>.Instance);
services.AddLogging(builder => builder.ClearProviders());
services.AddOptions();
services.AddSurfaceValidation();