Refactor code structure and optimize performance across multiple modules

This commit is contained in:
StellaOps Bot
2025-12-26 20:03:22 +02:00
parent c786faae84
commit f10d83c444
1385 changed files with 69732 additions and 10280 deletions

View File

@@ -5,7 +5,8 @@ namespace StellaOps.Scheduler.Models.Tests;
public sealed class ScheduleSerializationTests
{
[Fact]
[Trait("Category", TestCategories.Unit)]
[Fact]
public void ScheduleSerialization_IsDeterministicRegardlessOfInputOrdering()
{
var selectionA = new Selector(
@@ -77,6 +78,7 @@ public sealed class ScheduleSerializationTests
Assert.Equal(jsonA, jsonB);
using var doc = JsonDocument.Parse(jsonA);
using StellaOps.TestKit;
var root = doc.RootElement;
Assert.Equal(SchedulerSchemaVersions.Schedule, root.GetProperty("schemaVersion").GetString());
Assert.Equal("analysis-only", root.GetProperty("mode").GetString());
@@ -86,7 +88,8 @@ public sealed class ScheduleSerializationTests
Assert.Equal(new[] { "team-a", "team-b" }, namespaces);
}
[Theory]
[Trait("Category", TestCategories.Unit)]
[Theory]
[InlineData("")]
[InlineData("not-a-timezone")]
public void Schedule_ThrowsWhenTimezoneInvalid(string timezone)