test(historian-gateway): cover MaxTieClusterOverfetch warning + refresh AddServerHistorian doc
Addresses Task 9 review: add the enabled+nonpositive MaxTieClusterOverfetch warning test; update the AddServerHistorian XML doc to describe the gateway-backed data source (the alarm-path Wonderware doc stays until T13). Claude-Session: https://claude.ai/code/session_012SDSQ3AcaXqPcBtDESBRii
This commit is contained in:
@@ -31,4 +31,13 @@ public sealed class ServerHistorianOptionsTests
|
||||
[Fact]
|
||||
public void Valid_config_is_clean()
|
||||
=> Assert.Empty(new ServerHistorianOptions { Enabled = true, Endpoint = "https://h:5222", ApiKey = "histgw_x_y" }.Validate());
|
||||
|
||||
[Fact]
|
||||
public void Enabled_with_nonpositive_MaxTieClusterOverfetch_warns()
|
||||
{
|
||||
var w = new ServerHistorianOptions
|
||||
{ Enabled = true, Endpoint = "https://h:5222", ApiKey = "histgw_x_y", MaxTieClusterOverfetch = 0 }
|
||||
.Validate();
|
||||
Assert.Contains(w, m => m.Contains("MaxTieClusterOverfetch"));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user