test: validate historian TLS migration against isolated source

This commit is contained in:
Joseph Doherty
2026-11-10 14:35:05 -05:00
parent 18c22cf7eb
commit 2798021623
4 changed files with 168 additions and 20 deletions
@@ -112,7 +112,7 @@ new file mode 100644
+ await using var server = await Server.StartAsync(tls: true);
+ using var adapter = HistorianGatewayClientAdapter.Create(server.Options(), NullLoggerFactory.Instance);
+
+ var error = await Should.ThrowAsync<HistorianGatewayUnavailableException>(
+ var error = await Should.ThrowAsync<HistorianGatewayException>(
+ () => adapter.TagExistsAsync("T", Ct).WaitAsync(TimeSpan.FromSeconds(15), Ct));
+ output.WriteLine($"TLS rejection: {error}");
+ ContainsTlsAuthenticationFailure(error).ShouldBeTrue("the failure must be TLS authentication, not an arbitrary connection failure");