fix(cluster-infrastructure): resolve ClusterInfrastructure-009,010 — DownIfAlone consumption (via Host-012), validator enforces DownIfAlone=true

This commit is contained in:
Joseph Doherty
2026-05-17 03:18:17 -04:00
parent d7d74ebe5e
commit 21856a4be7
3 changed files with 51 additions and 5 deletions

View File

@@ -94,6 +94,18 @@ public class ClusterOptionsValidatorTests
Assert.Contains("StableAfter", result.FailureMessage);
}
[Fact]
public void DownIfAloneFalse_FailsValidation()
{
var options = ValidOptions();
options.DownIfAlone = false;
var result = new ClusterOptionsValidator().Validate(null, options);
Assert.True(result.Failed);
Assert.Contains("DownIfAlone", result.FailureMessage);
}
[Fact]
public void Validate_AccumulatesAllFailures()
{