test: start service-level fixtures with authenticated SDK server
This commit is contained in:
@@ -1,6 +1,5 @@
|
|||||||
using Akka.Actor;
|
using Akka.Actor;
|
||||||
using Microsoft.Extensions.Logging.Abstractions;
|
using Microsoft.Extensions.Logging.Abstractions;
|
||||||
using Opc.Ua.Server;
|
|
||||||
using Shouldly;
|
using Shouldly;
|
||||||
using Xunit;
|
using Xunit;
|
||||||
using ZB.MOM.WW.OtOpcUa.Commons.Messages.Redundancy;
|
using ZB.MOM.WW.OtOpcUa.Commons.Messages.Redundancy;
|
||||||
@@ -14,7 +13,7 @@ namespace ZB.MOM.WW.OtOpcUa.Runtime.Tests.OpcUa;
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Task 60 / #81 — verifies the full path from cluster redundancy state to OPC UA
|
/// Task 60 / #81 — verifies the full path from cluster redundancy state to OPC UA
|
||||||
/// <c>Server.ServiceLevel</c> visible on the wire. Boots a real <see cref="StandardServer"/>,
|
/// <c>Server.ServiceLevel</c> visible on the wire. Boots a real <see cref="OtOpcUaSdkServer"/>,
|
||||||
/// wires <see cref="SdkServiceLevelPublisher"/> into a <see cref="DeferredServiceLevelPublisher"/>
|
/// wires <see cref="SdkServiceLevelPublisher"/> into a <see cref="DeferredServiceLevelPublisher"/>
|
||||||
/// (the production binding pattern), spawns <see cref="OpcUaPublishActor"/> against the
|
/// (the production binding pattern), spawns <see cref="OpcUaPublishActor"/> against the
|
||||||
/// deferred publisher, and sends a <see cref="RedundancyStateChanged"/> snapshot. Asserts
|
/// deferred publisher, and sends a <see cref="RedundancyStateChanged"/> snapshot. Asserts
|
||||||
@@ -35,7 +34,7 @@ public sealed class ServiceLevelEndToEndTests : RuntimeActorTestBase
|
|||||||
port => new OpcUaApplicationHost(
|
port => new OpcUaApplicationHost(
|
||||||
BuildOptions("PrimaryLeader", pkiRoot, port),
|
BuildOptions("PrimaryLeader", pkiRoot, port),
|
||||||
NullLogger<OpcUaApplicationHost>.Instance),
|
NullLogger<OpcUaApplicationHost>.Instance),
|
||||||
() => new StandardServer(Opc.Ua.DefaultTelemetry.Create(_ => { })), Ct);
|
() => new OtOpcUaSdkServer(), Ct);
|
||||||
await using var host = started.Host;
|
await using var host = started.Host;
|
||||||
var server = started.Server;
|
var server = started.Server;
|
||||||
|
|
||||||
@@ -77,7 +76,7 @@ public sealed class ServiceLevelEndToEndTests : RuntimeActorTestBase
|
|||||||
port => new OpcUaApplicationHost(
|
port => new OpcUaApplicationHost(
|
||||||
BuildOptions("Secondary", pkiRoot, port),
|
BuildOptions("Secondary", pkiRoot, port),
|
||||||
NullLogger<OpcUaApplicationHost>.Instance),
|
NullLogger<OpcUaApplicationHost>.Instance),
|
||||||
() => new StandardServer(Opc.Ua.DefaultTelemetry.Create(_ => { })), Ct);
|
() => new OtOpcUaSdkServer(), Ct);
|
||||||
await using var host = started.Host;
|
await using var host = started.Host;
|
||||||
var server = started.Server;
|
var server = started.Server;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user