test: preserve server SDK 2.0 value security and history contracts
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
using Opc.Ua;
|
||||
using Microsoft.Extensions.Logging.Abstractions;
|
||||
using Opc.Ua.Server;
|
||||
using Shouldly;
|
||||
@@ -34,7 +35,7 @@ public sealed class OpcUaApplicationHostTests : IDisposable
|
||||
PkiStoreRoot = _pkiRoot,
|
||||
},
|
||||
NullLogger<OpcUaApplicationHost>.Instance),
|
||||
() => new StandardServer(), Ct);
|
||||
() => new OtOpcUaSdkServer(), Ct);
|
||||
await using var host = started.Host;
|
||||
|
||||
var ownCerts = Path.Combine(_pkiRoot, "own", "certs");
|
||||
@@ -57,7 +58,7 @@ public sealed class OpcUaApplicationHostTests : IDisposable
|
||||
PkiStoreRoot = _pkiRoot,
|
||||
},
|
||||
NullLogger<OpcUaApplicationHost>.Instance),
|
||||
() => new StandardServer(), Ct);
|
||||
() => new OtOpcUaSdkServer(), Ct);
|
||||
await first.Host.DisposeAsync();
|
||||
|
||||
var ownCerts = Path.Combine(_pkiRoot, "own", "certs");
|
||||
@@ -75,7 +76,7 @@ public sealed class OpcUaApplicationHostTests : IDisposable
|
||||
PkiStoreRoot = _pkiRoot,
|
||||
},
|
||||
NullLogger<OpcUaApplicationHost>.Instance),
|
||||
() => new StandardServer(), Ct);
|
||||
() => new OtOpcUaSdkServer(), Ct);
|
||||
await second.Host.DisposeAsync();
|
||||
|
||||
var secondFiles = Directory.GetFiles(ownCerts).OrderBy(f => f).ToArray();
|
||||
|
||||
Reference in New Issue
Block a user