From 0821e27cb98d4c9e217341905fe62ab74de8bc8c Mon Sep 17 00:00:00 2001 From: Joseph Doherty Date: Thu, 12 Nov 2026 23:36:24 -0500 Subject: [PATCH] test(heidenhain): live tool-type gate skips a control that refuses R_RI 51 (#829) Hermle49 (iTNC 530 NC 340490 03 SP10) refuses the tool selector with code 24; the driver correctly publishes BadNotSupported for every Tool/* leaf, so there is no runtime type to check. The test required >0 Good leaves and failed there. Claude-Session: https://claude.ai/code/session_01GT67AD99zQQqpLCVm3p7xk --- .../HeidenhainLiveIntegrationTests.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.Tests/HeidenhainLiveIntegrationTests.cs b/tests/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.Tests/HeidenhainLiveIntegrationTests.cs index 020425a31..4ddff1680 100644 --- a/tests/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.Tests/HeidenhainLiveIntegrationTests.cs +++ b/tests/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.Tests/HeidenhainLiveIntegrationTests.cs @@ -117,6 +117,11 @@ public sealed class HeidenhainLiveIntegrationTests if (values[i].StatusCode == HeidenhainStatus.Good) values[i].Value!.GetType().ShouldBe(expected[i]); } + + // Some controls (e.g. iTNC 530 NC 340490 03 SP10) refuse R_RI 51 with code 24 — the driver correctly + // publishes BadNotSupported for every tool leaf, so there is no runtime type to check there. + Assert.SkipWhen(values.All(v => v.StatusCode == HeidenhainStatus.BadNotSupported), + "Control does not support the R_RI 51 tool selector — tool leaves are BadNotSupported."); values.Count(v => v.StatusCode == HeidenhainStatus.Good).ShouldBeGreaterThan(0); } }