test(historian): cover non-positive DeadLetterRetentionDays validation warning
This commit is contained in:
+7
@@ -152,6 +152,13 @@ public sealed class AlarmHistorianRegistrationTests
|
|||||||
opts.Validate().ShouldContain(w => w.Contains("Capacity"));
|
opts.Validate().ShouldContain(w => w.Contains("Capacity"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[Fact]
|
||||||
|
public void Validate_warns_on_non_positive_retention()
|
||||||
|
{
|
||||||
|
var opts = new AlarmHistorianOptions { Enabled = true, SharedSecret = "s", DatabasePath = "/abs/h.db", DeadLetterRetentionDays = 0 };
|
||||||
|
opts.Validate().ShouldContain(w => w.Contains("DeadLetterRetentionDays"));
|
||||||
|
}
|
||||||
|
|
||||||
[Fact]
|
[Fact]
|
||||||
public void Validate_accumulates_multiple_warnings()
|
public void Validate_accumulates_multiple_warnings()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user