fc-desktop: add remotedesktop warm pool intent
This commit is contained in:
@@ -387,6 +387,38 @@ public sealed class FleetManifestLintTests
|
||||
violations.Should().BeEmpty();
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void RemoteDesktopPoolCrds_MustExplicitlyOptInHookReadyTemplates()
|
||||
{
|
||||
var expectedModes = new Dictionary<string, string?>(StringComparer.Ordinal)
|
||||
{
|
||||
["browser-only"] = null,
|
||||
["opensuse-xfce"] = "LateAttach",
|
||||
["dev-workstation"] = "LateAttach",
|
||||
["ai-station"] = "LateAttach",
|
||||
["linux-xfce"] = "LateAttach",
|
||||
["linux-xfce-rdp"] = "LateAttach",
|
||||
};
|
||||
|
||||
var pools = Inventory.Documents
|
||||
.Where(document => document.Kind == "RemoteDesktopPoolCrd")
|
||||
.Where(document => document.RelativePath == "fc-desktop/remotedesktop-pools.yaml")
|
||||
.ToDictionary(
|
||||
document => document.Scalar("spec", "templateSlug") ?? string.Empty,
|
||||
StringComparer.Ordinal);
|
||||
|
||||
pools.Keys.Should().BeEquivalentTo(expectedModes.Keys);
|
||||
foreach (var expected in expectedModes)
|
||||
{
|
||||
var pool = pools[expected.Key];
|
||||
pool.Namespace.Should().Be("fc-desktop");
|
||||
pool.Scalar("spec", "desiredSize").Should().Be("1");
|
||||
pool.Scalar("spec", "enabled").Should().Be("true");
|
||||
pool.Scalar("spec", "reconcileNow").Should().Be("true");
|
||||
pool.Scalar("spec", "userVolumeMode").Should().Be(expected.Value);
|
||||
}
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void PublicEgressDeployments_MustOptOutOfIamworkinLanSearchSuffixes()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user