diff --git a/Directory.Packages.props b/Directory.Packages.props index a30e3e2d..87785628 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -77,6 +77,10 @@ + + + all @@ -35,6 +37,10 @@ + + diff --git a/tests/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Tests/Runtime/StatusCodeMapTests.cs b/tests/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Tests/Runtime/StatusCodeMapTests.cs index c048431c..3ec18e17 100644 --- a/tests/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Tests/Runtime/StatusCodeMapTests.cs +++ b/tests/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Tests/Runtime/StatusCodeMapTests.cs @@ -19,12 +19,12 @@ public sealed class StatusCodeMapTests /// The expected OPC UA status code. [Theory] [InlineData((byte)192, 0x00000000u)] // Good - [InlineData((byte)216, 0x00D80000u)] // Good_LocalOverride + [InlineData((byte)216, 0x00960000u)] // Good_LocalOverride [InlineData((byte)64, 0x40000000u)] // Uncertain - [InlineData((byte)68, 0x40A40000u)] // Uncertain_LastUsableValue - [InlineData((byte)80, 0x408D0000u)] // Uncertain_SensorNotAccurate - [InlineData((byte)84, 0x408E0000u)] // Uncertain_EngineeringUnitsExceeded - [InlineData((byte)88, 0x408F0000u)] // Uncertain_SubNormal + [InlineData((byte)68, 0x40900000u)] // Uncertain_LastUsableValue + [InlineData((byte)80, 0x40930000u)] // Uncertain_SensorNotAccurate + [InlineData((byte)84, 0x40940000u)] // Uncertain_EngineeringUnitsExceeded + [InlineData((byte)88, 0x40950000u)] // Uncertain_SubNormal [InlineData((byte)0, 0x80000000u)] // Bad [InlineData((byte)4, 0x80890000u)] // Bad_ConfigurationError [InlineData((byte)8, 0x808A0000u)] // Bad_NotConnected @@ -132,9 +132,9 @@ public sealed class StatusCodeMapTests /// The expected OPC DA category byte. [Theory] [InlineData(0x00000000u, (byte)192)] // Good - [InlineData(0x00D80000u, (byte)192)] // GoodLocalOverride — still Good category + [InlineData(0x00960000u, (byte)192)] // GoodLocalOverride — still Good category [InlineData(0x40000000u, (byte)64)] // Uncertain - [InlineData(0x408F0000u, (byte)64)] // UncertainSubNormal — still Uncertain category + [InlineData(0x40950000u, (byte)64)] // UncertainSubNormal — still Uncertain category [InlineData(0x80000000u, (byte)0)] // Bad [InlineData(0x808A0000u, (byte)0)] // BadNotConnected — still Bad category [InlineData(0x80020000u, (byte)0)] // BadInternalError — still Bad category diff --git a/tests/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Historian.Gateway.Tests/Mapping/GatewayQualityMapperTests.cs b/tests/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Historian.Gateway.Tests/Mapping/GatewayQualityMapperTests.cs index 15c7fced..c2cba1f6 100644 --- a/tests/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Historian.Gateway.Tests/Mapping/GatewayQualityMapperTests.cs +++ b/tests/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Historian.Gateway.Tests/Mapping/GatewayQualityMapperTests.cs @@ -7,7 +7,7 @@ public sealed class GatewayQualityMapperTests { [Theory] [InlineData(192, 0x00000000u)] // Good - [InlineData(216, 0x00D80000u)] // Good_LocalOverride + [InlineData(216, 0x00960000u)] // Good_LocalOverride [InlineData(64, 0x40000000u)] // Uncertain [InlineData(0, 0x80000000u)] // Bad [InlineData(8, 0x808A0000u)] // Bad_NotConnected diff --git a/tests/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Historian.Gateway.Tests/Mapping/SampleMapperTests.cs b/tests/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Historian.Gateway.Tests/Mapping/SampleMapperTests.cs index 969b9764..29092ae4 100644 --- a/tests/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Historian.Gateway.Tests/Mapping/SampleMapperTests.cs +++ b/tests/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Historian.Gateway.Tests/Mapping/SampleMapperTests.cs @@ -37,7 +37,7 @@ public sealed class SampleMapperTests { var a = new HistorianAggregateSample { Tag = "T", /* Value unset, no Good quality */ EndTime = Ts(2026, 1, 1, 0, 0, 0) }; var snap = SampleMapper.ToAggregateSnapshot(a); - Assert.Equal(0x800E0000u, snap.StatusCode); // BadNoData + Assert.Equal(0x809B0000u, snap.StatusCode); // BadNoData Assert.Null(snap.Value); } diff --git a/tests/Server/ZB.MOM.WW.OtOpcUa.Runtime.Tests/Drivers/DriverInstanceActorTests.cs b/tests/Server/ZB.MOM.WW.OtOpcUa.Runtime.Tests/Drivers/DriverInstanceActorTests.cs index 381756e3..59794e08 100644 --- a/tests/Server/ZB.MOM.WW.OtOpcUa.Runtime.Tests/Drivers/DriverInstanceActorTests.cs +++ b/tests/Server/ZB.MOM.WW.OtOpcUa.Runtime.Tests/Drivers/DriverInstanceActorTests.cs @@ -88,7 +88,7 @@ public sealed class DriverInstanceActorTests : RuntimeActorTestBase [Fact] public async Task Write_propagates_status_code_on_Bad_result() { - const uint badStatus = 0x80340000; // BadOutOfService — top severity bits = 10b + const uint badStatus = 0x80340000; // BadNodeIdUnknown — top severity bits = 10b var driver = new WritableStubDriver { NextStatusCode = badStatus }; var actor = Sys.ActorOf(DriverInstanceActor.Props(driver));