Namespaces, assemblies, projects and directories, the solution, binaries, images, systemd units, config paths, environment variables, protocol method names, the media type and the raw chunk magic all move to MoShiro/moshiro. Existing data and deployments are not compatible and must be recreated. Also fix the architecture tests after the solution layout change and make the update tests independent of their order.
25 lines
658 B
C#
25 lines
658 B
C#
using System.Text.Json;
|
|
using MoShiro.Backend.Application;
|
|
using MoShiro.Protocol;
|
|
|
|
namespace MoShiro.Backend.Tests;
|
|
|
|
public sealed class PlanTests
|
|
{
|
|
[Fact]
|
|
public void Plans_ComposeKnownCollectionPrimitives_AndTheirOverridesAreValid()
|
|
{
|
|
foreach (PlanSpec plan in Plans.All)
|
|
{
|
|
foreach (PhaseSpec phase in plan.Phases)
|
|
{
|
|
KindSpec kind = Kinds.Find(phase.Kind)!;
|
|
Assert.NotNull(kind);
|
|
Assert.True(ParamResolver.Resolve(kind.Params, phase.Overrides).IsValid, $"{plan.Id}/{phase.Kind}");
|
|
}
|
|
}
|
|
|
|
Assert.Null(Plans.Find("nope"));
|
|
}
|
|
}
|