Refactor code structure and optimize performance across multiple modules
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user