test: preserve server SDK 2.0 value security and history contracts
This commit is contained in:
+3
-3
@@ -39,15 +39,15 @@ public sealed class NodeManagerMaxReturnDataValuesSyncTests(BoundsServerFixture
|
||||
|
||||
private async Task<uint> ReadAdvertisedAsync()
|
||||
{
|
||||
var context = new OperationContext(new RequestHeader(), secureChannelContext: null, RequestType.Read, identity: null);
|
||||
var nodesToRead = new ReadValueIdCollection
|
||||
var context = new OperationContext(new RequestHeader(), secureChannelContext: null, RequestType.Read, requestLifetime: RequestLifetime.None, identity: null);
|
||||
var nodesToRead = new List<ReadValueId>
|
||||
{
|
||||
new ReadValueId { NodeId = VariableIds.HistoryServerCapabilities_MaxReturnDataValues, AttributeId = Attributes.Value },
|
||||
};
|
||||
var (values, _) = await fx.Nm.Server.NodeManager.ReadAsync(context, 0, TimestampsToReturn.Neither, nodesToRead, TestContext.Current.CancellationToken);
|
||||
values.Count.ShouldBe(1);
|
||||
StatusCode.IsGood(values[0].StatusCode).ShouldBeTrue(values[0].StatusCode.ToString());
|
||||
return (uint)values[0].Value;
|
||||
return (uint)SdkValueBoundary.ToClr(values[0].WrappedValue)!;
|
||||
}
|
||||
|
||||
private sealed class CappedSource(int cap) : IHistorianDataSource
|
||||
|
||||
Reference in New Issue
Block a user