From 455c874875a4953d4df570508c6faba45631129d Mon Sep 17 00:00:00 2001 From: Joseph Doherty Date: Sat, 14 Nov 2026 01:55:00 -0500 Subject: [PATCH] fix(ui): name role grant fields and wrap security details --- .../evidence/ot14-security-wrap/green.log | 55 ++++ .../evidence/ot14-security-wrap/green.trx | 136 ++++++++ .../evidence/ot14-security-wrap/red.log | 73 +++++ .../evidence/ot14-security-wrap/red.trx | 80 +++++ .../security-confirmation-extract.json | 298 ++++++++++++++++++ .../ot14-security-wrap/source-parity.json | 19 ++ .../ot14-security-wrap/verification.md | 29 ++ .../ot14-security-wrap/verify-source.py | 22 ++ .../Components/Pages/Certificates.razor | 4 +- .../Components/Pages/RoleGrants.razor | 43 +-- .../Pages/RoleGrantFieldAssociationTests.cs | 53 ++++ 11 files changed, 791 insertions(+), 21 deletions(-) create mode 100644 docs/ui-consistency/evidence/ot14-security-wrap/green.log create mode 100644 docs/ui-consistency/evidence/ot14-security-wrap/green.trx create mode 100644 docs/ui-consistency/evidence/ot14-security-wrap/red.log create mode 100644 docs/ui-consistency/evidence/ot14-security-wrap/red.trx create mode 100644 docs/ui-consistency/evidence/ot14-security-wrap/security-confirmation-extract.json create mode 100644 docs/ui-consistency/evidence/ot14-security-wrap/source-parity.json create mode 100644 docs/ui-consistency/evidence/ot14-security-wrap/verification.md create mode 100644 docs/ui-consistency/evidence/ot14-security-wrap/verify-source.py create mode 100644 tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/Pages/RoleGrantFieldAssociationTests.cs diff --git a/docs/ui-consistency/evidence/ot14-security-wrap/green.log b/docs/ui-consistency/evidence/ot14-security-wrap/green.log new file mode 100644 index 000000000..173323803 --- /dev/null +++ b/docs/ui-consistency/evidence/ot14-security-wrap/green.log @@ -0,0 +1,55 @@ + + Determining projects to restore... + All projects are up-to-date for restore. + ZB.MOM.WW.OtOpcUa.Analyzers -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Analyzers/debug/ZB.MOM.WW.OtOpcUa.Analyzers.dll + ZB.MOM.WW.OtOpcUa.Driver.Ab.Transport -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Ab.Transport/debug/ZB.MOM.WW.OtOpcUa.Driver.Ab.Transport.dll + ZB.MOM.WW.OtOpcUa.Driver.Calculation.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Calculation.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Calculation.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.Modbus.Addressing -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Addressing/debug/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Addressing.dll + ZB.MOM.WW.OtOpcUa.Core.Abstractions -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Core.Abstractions/debug/ZB.MOM.WW.OtOpcUa.Core.Abstractions.dll + ZB.MOM.WW.OtOpcUa.Driver.Modbus.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.S7.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.S7.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.S7.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.FOCAS.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.FOCAS.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.FOCAS.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.MTConnect.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.MTConnect.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.MTConnect.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.AbCip.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.AbCip.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.AbCip.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.Sql.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Sql.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Sql.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Contracts.dll + ZB.MOM.WW.OtOpcUa.Core.AlarmHistorian -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Core.AlarmHistorian/debug/ZB.MOM.WW.OtOpcUa.Core.AlarmHistorian.dll + ZB.MOM.WW.OtOpcUa.Commons -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Commons/debug/ZB.MOM.WW.OtOpcUa.Commons.dll + ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Session -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Session/debug/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Session.dll + ZB.MOM.WW.OtOpcUa.Core.Scripting.Abstractions -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Core.Scripting.Abstractions/debug/ZB.MOM.WW.OtOpcUa.Core.Scripting.Abstractions.dll + ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Transport -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Transport/debug/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Transport.dll + ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Browser -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Browser/debug/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Browser.dll + ZB.MOM.WW.OtOpcUa.Core.Scripting -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Core.Scripting/debug/ZB.MOM.WW.OtOpcUa.Core.Scripting.dll + ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Browser -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Browser/debug/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Browser.dll + ZB.MOM.WW.OtOpcUa.Driver.Sql.Dialect -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Sql.Dialect/debug/ZB.MOM.WW.OtOpcUa.Driver.Sql.Dialect.dll + ZB.MOM.WW.OtOpcUa.Cluster -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Cluster/debug/ZB.MOM.WW.OtOpcUa.Cluster.dll + ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Browser -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Browser/debug/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Browser.dll + ZB.MOM.WW.OtOpcUa.Core.VirtualTags -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Core.VirtualTags/debug/ZB.MOM.WW.OtOpcUa.Core.VirtualTags.dll + ZB.MOM.WW.OtOpcUa.Core.ScriptedAlarms -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Core.ScriptedAlarms/debug/ZB.MOM.WW.OtOpcUa.Core.ScriptedAlarms.dll + ZB.MOM.WW.OtOpcUa.Driver.Sql.Browser -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Sql.Browser/debug/ZB.MOM.WW.OtOpcUa.Driver.Sql.Browser.dll + ZB.MOM.WW.OtOpcUa.Configuration -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Configuration/debug/ZB.MOM.WW.OtOpcUa.Configuration.dll + ZB.MOM.WW.OtOpcUa.Core -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Core/debug/ZB.MOM.WW.OtOpcUa.Core.dll + ZB.MOM.WW.OtOpcUa.Security -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Security/debug/ZB.MOM.WW.OtOpcUa.Security.dll + ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient/debug/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.dll + ZB.MOM.WW.OtOpcUa.Driver.Heidenhain -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain/debug/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.dll + ZB.MOM.WW.OtOpcUa.Driver.MTConnect -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.MTConnect/debug/ZB.MOM.WW.OtOpcUa.Driver.MTConnect.dll + ZB.MOM.WW.OtOpcUa.Driver.Galaxy -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Galaxy/debug/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.dll + ZB.MOM.WW.OtOpcUa.Driver.FOCAS -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.FOCAS/debug/ZB.MOM.WW.OtOpcUa.Driver.FOCAS.dll + ZB.MOM.WW.OtOpcUa.OpcUaServer -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.OpcUaServer/debug/ZB.MOM.WW.OtOpcUa.OpcUaServer.dll + ZB.MOM.WW.OtOpcUa.Driver.AbLegacy -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy/debug/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.dll + ZB.MOM.WW.OtOpcUa.Driver.AbCip -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.AbCip/debug/ZB.MOM.WW.OtOpcUa.Driver.AbCip.dll + ZB.MOM.WW.OtOpcUa.Driver.Sql -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Sql/debug/ZB.MOM.WW.OtOpcUa.Driver.Sql.dll + ZB.MOM.WW.OtOpcUa.ControlPlane -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.ControlPlane/debug/ZB.MOM.WW.OtOpcUa.ControlPlane.dll + ZB.MOM.WW.OtOpcUa.Runtime -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Runtime/debug/ZB.MOM.WW.OtOpcUa.Runtime.dll + ZB.MOM.WW.OtOpcUa.AdminUI -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.AdminUI/debug/ZB.MOM.WW.OtOpcUa.AdminUI.dll + ZB.MOM.WW.OtOpcUa.AdminUI.Tests -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/debug/ZB.MOM.WW.OtOpcUa.AdminUI.Tests.dll +Test run for /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/debug/ZB.MOM.WW.OtOpcUa.AdminUI.Tests.dll (.NETCoreApp,Version=v10.0) +A total of 1 test files matched the specified pattern. +Results File: /Users/dohertj2/Desktop/OtOpcUa/docs/ui-consistency/evidence/ot14-security-wrap/green.trx + +Passed! - Failed: 0, Passed: 18, Skipped: 0, Total: 18, Duration: 1 s - ZB.MOM.WW.OtOpcUa.AdminUI.Tests.dll (net10.0) diff --git a/docs/ui-consistency/evidence/ot14-security-wrap/green.trx b/docs/ui-consistency/evidence/ot14-security-wrap/green.trx new file mode 100644 index 000000000..b66dfb934 --- /dev/null +++ b/docs/ui-consistency/evidence/ot14-security-wrap/green.trx @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [xUnit.net 00:00:00.00] xUnit.net VSTest Adapter v3.0.2+dd36e86129 (64-bit .NET 10.0.14) +[xUnit.net 00:00:00.50] Discovering: ZB.MOM.WW.OtOpcUa.AdminUI.Tests +[xUnit.net 00:00:01.22] Discovered: ZB.MOM.WW.OtOpcUa.AdminUI.Tests +[xUnit.net 00:00:01.32] Starting: ZB.MOM.WW.OtOpcUa.AdminUI.Tests +[xUnit.net 00:00:02.85] Finished: ZB.MOM.WW.OtOpcUa.AdminUI.Tests + + + + \ No newline at end of file diff --git a/docs/ui-consistency/evidence/ot14-security-wrap/red.log b/docs/ui-consistency/evidence/ot14-security-wrap/red.log new file mode 100644 index 000000000..fe0671258 --- /dev/null +++ b/docs/ui-consistency/evidence/ot14-security-wrap/red.log @@ -0,0 +1,73 @@ + + Determining projects to restore... + All projects are up-to-date for restore. + ZB.MOM.WW.OtOpcUa.Analyzers -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Analyzers/debug/ZB.MOM.WW.OtOpcUa.Analyzers.dll + ZB.MOM.WW.OtOpcUa.Driver.Modbus.Addressing -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Addressing/debug/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Addressing.dll + ZB.MOM.WW.OtOpcUa.Driver.Calculation.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Calculation.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Calculation.Contracts.dll + ZB.MOM.WW.OtOpcUa.Core.Abstractions -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Core.Abstractions/debug/ZB.MOM.WW.OtOpcUa.Core.Abstractions.dll + ZB.MOM.WW.OtOpcUa.Driver.Ab.Transport -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Ab.Transport/debug/ZB.MOM.WW.OtOpcUa.Driver.Ab.Transport.dll + ZB.MOM.WW.OtOpcUa.Driver.MTConnect.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.MTConnect.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.MTConnect.Contracts.dll + ZB.MOM.WW.OtOpcUa.Core.Scripting.Abstractions -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Core.Scripting.Abstractions/debug/ZB.MOM.WW.OtOpcUa.Core.Scripting.Abstractions.dll + ZB.MOM.WW.OtOpcUa.Driver.Sql.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Sql.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Sql.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.S7.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.S7.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.S7.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.Contracts.dll + ZB.MOM.WW.OtOpcUa.Core.AlarmHistorian -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Core.AlarmHistorian/debug/ZB.MOM.WW.OtOpcUa.Core.AlarmHistorian.dll + ZB.MOM.WW.OtOpcUa.Driver.AbCip.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.AbCip.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.AbCip.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.Modbus.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.Sql.Dialect -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Sql.Dialect/debug/ZB.MOM.WW.OtOpcUa.Driver.Sql.Dialect.dll + ZB.MOM.WW.OtOpcUa.Driver.FOCAS.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.FOCAS.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.FOCAS.Contracts.dll + ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.Contracts.dll + ZB.MOM.WW.OtOpcUa.Commons -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Commons/debug/ZB.MOM.WW.OtOpcUa.Commons.dll + ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Session -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Session/debug/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Session.dll + ZB.MOM.WW.OtOpcUa.Driver.Sql.Browser -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Sql.Browser/debug/ZB.MOM.WW.OtOpcUa.Driver.Sql.Browser.dll + ZB.MOM.WW.OtOpcUa.Cluster -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Cluster/debug/ZB.MOM.WW.OtOpcUa.Cluster.dll + ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Transport -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Transport/debug/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Transport.dll + ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Browser -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Browser/debug/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Browser.dll + ZB.MOM.WW.OtOpcUa.Core.Scripting -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Core.Scripting/debug/ZB.MOM.WW.OtOpcUa.Core.Scripting.dll + ZB.MOM.WW.OtOpcUa.Core.VirtualTags -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Core.VirtualTags/debug/ZB.MOM.WW.OtOpcUa.Core.VirtualTags.dll + ZB.MOM.WW.OtOpcUa.Core.ScriptedAlarms -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Core.ScriptedAlarms/debug/ZB.MOM.WW.OtOpcUa.Core.ScriptedAlarms.dll + ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Browser -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Browser/debug/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Browser.dll + ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Browser -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Browser/debug/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Browser.dll + ZB.MOM.WW.OtOpcUa.Configuration -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Configuration/debug/ZB.MOM.WW.OtOpcUa.Configuration.dll + ZB.MOM.WW.OtOpcUa.Core -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Core/debug/ZB.MOM.WW.OtOpcUa.Core.dll + ZB.MOM.WW.OtOpcUa.Security -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Security/debug/ZB.MOM.WW.OtOpcUa.Security.dll + ZB.MOM.WW.OtOpcUa.Driver.AbLegacy -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy/debug/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.dll + ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient/debug/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.dll + ZB.MOM.WW.OtOpcUa.Driver.Heidenhain -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain/debug/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.dll + ZB.MOM.WW.OtOpcUa.Driver.MTConnect -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.MTConnect/debug/ZB.MOM.WW.OtOpcUa.Driver.MTConnect.dll + ZB.MOM.WW.OtOpcUa.Driver.Sql -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Sql/debug/ZB.MOM.WW.OtOpcUa.Driver.Sql.dll + ZB.MOM.WW.OtOpcUa.Driver.Galaxy -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.Galaxy/debug/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.dll + ZB.MOM.WW.OtOpcUa.Driver.AbCip -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.AbCip/debug/ZB.MOM.WW.OtOpcUa.Driver.AbCip.dll + ZB.MOM.WW.OtOpcUa.Driver.FOCAS -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Driver.FOCAS/debug/ZB.MOM.WW.OtOpcUa.Driver.FOCAS.dll + ZB.MOM.WW.OtOpcUa.ControlPlane -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.ControlPlane/debug/ZB.MOM.WW.OtOpcUa.ControlPlane.dll + ZB.MOM.WW.OtOpcUa.OpcUaServer -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.OpcUaServer/debug/ZB.MOM.WW.OtOpcUa.OpcUaServer.dll + ZB.MOM.WW.OtOpcUa.Runtime -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.Runtime/debug/ZB.MOM.WW.OtOpcUa.Runtime.dll + ZB.MOM.WW.OtOpcUa.AdminUI -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.AdminUI/debug/ZB.MOM.WW.OtOpcUa.AdminUI.dll + ZB.MOM.WW.OtOpcUa.AdminUI.Tests -> /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/debug/ZB.MOM.WW.OtOpcUa.AdminUI.Tests.dll +Test run for /Users/dohertj2/Desktop/OtOpcUa/artifacts/ui-equipment-caller-tests/bin/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/debug/ZB.MOM.WW.OtOpcUa.AdminUI.Tests.dll (.NETCoreApp,Version=v10.0) +A total of 1 test files matched the specified pattern. +[xUnit.net 00:00:01.37] ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.RoleGrantFieldAssociationTests.FieldsHaveVisibleNamesAndUniqueAssociationsAcrossInstances [FAIL] +[xUnit.net 00:00:01.40] ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.RoleGrantFieldAssociationTests.ExistingBlankGroupValidationAppearsAtAssociatedErrorWithoutDispatchingMutation [FAIL] + Failed ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.RoleGrantFieldAssociationTests.FieldsHaveVisibleNamesAndUniqueAssociationsAcrossInstances [186 ms] + Error Message: + Shouldly.ShouldAssertException : field.Id (null) + should not be null or white space + Stack Trace: + at ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.RoleGrantFieldAssociationTests.FieldsHaveVisibleNamesAndUniqueAssociationsAcrossInstances() in /Users/dohertj2/Desktop/OtOpcUa/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/Pages/RoleGrantFieldAssociationTests.cs:line 31 + at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args) + at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr) + Failed ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.RoleGrantFieldAssociationTests.ExistingBlankGroupValidationAppearsAtAssociatedErrorWithoutDispatchingMutation [21 ms] + Error Message: + Shouldly.ShouldAssertException : ut.Find("input").GetAttribute("aria-describedby");target (null) + should not be null or white space + Stack Trace: + at ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.RoleGrantFieldAssociationTests.ExistingBlankGroupValidationAppearsAtAssociatedErrorWithoutDispatchingMutation() in /Users/dohertj2/Desktop/OtOpcUa/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/Pages/RoleGrantFieldAssociationTests.cs:line 43 + at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args) + at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr) +Results File: /Users/dohertj2/Desktop/OtOpcUa/docs/ui-consistency/evidence/ot14-security-wrap/red.trx + +Failed! - Failed: 2, Passed: 0, Skipped: 0, Total: 2, Duration: 217 ms - ZB.MOM.WW.OtOpcUa.AdminUI.Tests.dll (net10.0) diff --git a/docs/ui-consistency/evidence/ot14-security-wrap/red.trx b/docs/ui-consistency/evidence/ot14-security-wrap/red.trx new file mode 100644 index 000000000..dc393f256 --- /dev/null +++ b/docs/ui-consistency/evidence/ot14-security-wrap/red.trx @@ -0,0 +1,80 @@ + + + + + + + + + + + Shouldly.ShouldAssertException : field.Id (null) + should not be null or white space + at ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.RoleGrantFieldAssociationTests.FieldsHaveVisibleNamesAndUniqueAssociationsAcrossInstances() in /Users/dohertj2/Desktop/OtOpcUa/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/Pages/RoleGrantFieldAssociationTests.cs:line 31 + at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args) + at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr) + + + + + + + Shouldly.ShouldAssertException : ut.Find("input").GetAttribute("aria-describedby");target (null) + should not be null or white space + at ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.RoleGrantFieldAssociationTests.ExistingBlankGroupValidationAppearsAtAssociatedErrorWithoutDispatchingMutation() in /Users/dohertj2/Desktop/OtOpcUa/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/Pages/RoleGrantFieldAssociationTests.cs:line 43 + at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args) + at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr) + + + + + + + + + + + + + + + + + + + + + + + + + + [xUnit.net 00:00:00.00] xUnit.net VSTest Adapter v3.0.2+dd36e86129 (64-bit .NET 10.0.14) +[xUnit.net 00:00:00.35] Discovering: ZB.MOM.WW.OtOpcUa.AdminUI.Tests +[xUnit.net 00:00:01.04] Discovered: ZB.MOM.WW.OtOpcUa.AdminUI.Tests +[xUnit.net 00:00:01.15] Starting: ZB.MOM.WW.OtOpcUa.AdminUI.Tests +[xUnit.net 00:00:01.37] Shouldly.ShouldAssertException : field.Id (null) +[xUnit.net 00:00:01.37] should not be null or white space +[xUnit.net 00:00:01.37] Stack Trace: +[xUnit.net 00:00:01.38] /Users/dohertj2/Desktop/OtOpcUa/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/Pages/RoleGrantFieldAssociationTests.cs(31,0): at ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.RoleGrantFieldAssociationTests.FieldsHaveVisibleNamesAndUniqueAssociationsAcrossInstances() +[xUnit.net 00:00:01.38] at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args) +[xUnit.net 00:00:01.38] at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr) +[xUnit.net 00:00:01.40] Shouldly.ShouldAssertException : ut.Find("input").GetAttribute("aria-describedby");target (null) +[xUnit.net 00:00:01.40] should not be null or white space +[xUnit.net 00:00:01.40] Stack Trace: +[xUnit.net 00:00:01.40] /Users/dohertj2/Desktop/OtOpcUa/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/Pages/RoleGrantFieldAssociationTests.cs(43,0): at ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.RoleGrantFieldAssociationTests.ExistingBlankGroupValidationAppearsAtAssociatedErrorWithoutDispatchingMutation() +[xUnit.net 00:00:01.40] at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args) +[xUnit.net 00:00:01.40] at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr) +[xUnit.net 00:00:01.40] Finished: ZB.MOM.WW.OtOpcUa.AdminUI.Tests + + + + + [xUnit.net 00:00:01.37] ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.RoleGrantFieldAssociationTests.FieldsHaveVisibleNamesAndUniqueAssociationsAcrossInstances [FAIL] + + + [xUnit.net 00:00:01.40] ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.RoleGrantFieldAssociationTests.ExistingBlankGroupValidationAppearsAtAssociatedErrorWithoutDispatchingMutation [FAIL] + + + + \ No newline at end of file diff --git a/docs/ui-consistency/evidence/ot14-security-wrap/security-confirmation-extract.json b/docs/ui-consistency/evidence/ot14-security-wrap/security-confirmation-extract.json new file mode 100644 index 000000000..c0be8bcc8 --- /dev/null +++ b/docs/ui-consistency/evidence/ot14-security-wrap/security-confirmation-extract.json @@ -0,0 +1,298 @@ +{ + "source": "docs/ui-consistency/evidence/ot14-final/confirmation-grammar-matrix.json", + "scope": "Eight owned security cases extracted from primary-owned84-case confirmation; no independent rerun", + "cases": [ + { + "sample": "certificates", + "width": 1440, + "zoom": 1, + "actualViewport": { + "width": 1440, + "height": 1000, + "document": 1440, + "dpr": 1 + }, + "title": "OPC UA certificates \u00b7 OtOpcUa", + "headings": [ + "OPC UA certificates" + ], + "checks": { + "oneHeading": true, + "noPageOverflow": true, + "fieldsNamed": true, + "idsUnique": true, + "referencesResolve": true, + "namedFocusableRegions": true, + "reducedMotionFinal": true, + "noPageErrors": true, + "pageTitle": true + }, + "unnamedFields": [], + "relationships": { + "duplicateIds": [], + "missingDescriptions": [] + }, + "regions": [], + "pageErrors": [] + }, + { + "sample": "certificates", + "width": 390, + "zoom": 1, + "actualViewport": { + "width": 390, + "height": 1000, + "document": 390, + "dpr": 1 + }, + "title": "OPC UA certificates \u00b7 OtOpcUa", + "headings": [ + "OPC UA certificates" + ], + "checks": { + "oneHeading": true, + "noPageOverflow": true, + "fieldsNamed": true, + "idsUnique": true, + "referencesResolve": true, + "namedFocusableRegions": true, + "reducedMotionFinal": true, + "noPageErrors": true, + "pageTitle": true + }, + "unnamedFields": [], + "relationships": { + "duplicateIds": [], + "missingDescriptions": [] + }, + "regions": [], + "pageErrors": [] + }, + { + "sample": "certificates", + "width": 1440, + "zoom": 2, + "actualViewport": { + "width": 720, + "height": 500, + "document": 720, + "dpr": 2 + }, + "title": "OPC UA certificates \u00b7 OtOpcUa", + "headings": [ + "OPC UA certificates" + ], + "checks": { + "oneHeading": true, + "noPageOverflow": true, + "fieldsNamed": true, + "idsUnique": true, + "referencesResolve": true, + "namedFocusableRegions": true, + "reducedMotionFinal": true, + "noPageErrors": true, + "pageTitle": true + }, + "unnamedFields": [], + "relationships": { + "duplicateIds": [], + "missingDescriptions": [] + }, + "regions": [], + "pageErrors": [] + }, + { + "sample": "certificates", + "width": 390, + "zoom": 2, + "actualViewport": { + "width": 195, + "height": 500, + "document": 195, + "dpr": 2 + }, + "title": "OPC UA certificates \u00b7 OtOpcUa", + "headings": [ + "OPC UA certificates" + ], + "checks": { + "oneHeading": true, + "noPageOverflow": true, + "fieldsNamed": true, + "idsUnique": true, + "referencesResolve": true, + "namedFocusableRegions": true, + "reducedMotionFinal": true, + "noPageErrors": true, + "pageTitle": true + }, + "unnamedFields": [], + "relationships": { + "duplicateIds": [], + "missingDescriptions": [] + }, + "regions": [], + "pageErrors": [] + }, + { + "sample": "role-grants", + "width": 1440, + "zoom": 1, + "actualViewport": { + "width": 1440, + "height": 1000, + "document": 1440, + "dpr": 1 + }, + "title": "Role grants \u00b7 OtOpcUa", + "headings": [ + "Role grants" + ], + "checks": { + "oneHeading": true, + "noPageOverflow": true, + "fieldsNamed": true, + "idsUnique": true, + "referencesResolve": true, + "namedFocusableRegions": true, + "reducedMotionFinal": true, + "noPageErrors": true, + "pageTitle": true + }, + "unnamedFields": [], + "relationships": { + "duplicateIds": [], + "missingDescriptions": [] + }, + "regions": [ + { + "name": "Database role grants", + "focused": true, + "width": 1178, + "scroll": 1178 + } + ], + "pageErrors": [] + }, + { + "sample": "role-grants", + "width": 390, + "zoom": 1, + "actualViewport": { + "width": 390, + "height": 1000, + "document": 390, + "dpr": 1 + }, + "title": "Role grants \u00b7 OtOpcUa", + "headings": [ + "Role grants" + ], + "checks": { + "oneHeading": true, + "noPageOverflow": true, + "fieldsNamed": true, + "idsUnique": true, + "referencesResolve": true, + "namedFocusableRegions": true, + "reducedMotionFinal": true, + "noPageErrors": true, + "pageTitle": true + }, + "unnamedFields": [], + "relationships": { + "duplicateIds": [], + "missingDescriptions": [] + }, + "regions": [ + { + "name": "Database role grants", + "focused": true, + "width": 348, + "scroll": 516 + } + ], + "pageErrors": [] + }, + { + "sample": "role-grants", + "width": 1440, + "zoom": 2, + "actualViewport": { + "width": 720, + "height": 500, + "document": 720, + "dpr": 2 + }, + "title": "Role grants \u00b7 OtOpcUa", + "headings": [ + "Role grants" + ], + "checks": { + "oneHeading": true, + "noPageOverflow": true, + "fieldsNamed": true, + "idsUnique": true, + "referencesResolve": true, + "namedFocusableRegions": true, + "reducedMotionFinal": true, + "noPageErrors": true, + "pageTitle": true + }, + "unnamedFields": [], + "relationships": { + "duplicateIds": [], + "missingDescriptions": [] + }, + "regions": [ + { + "name": "Database role grants", + "focused": true, + "width": 678, + "scroll": 678 + } + ], + "pageErrors": [] + }, + { + "sample": "role-grants", + "width": 390, + "zoom": 2, + "actualViewport": { + "width": 195, + "height": 500, + "document": 195, + "dpr": 2 + }, + "title": "Role grants \u00b7 OtOpcUa", + "headings": [ + "Role grants" + ], + "checks": { + "oneHeading": true, + "noPageOverflow": true, + "fieldsNamed": true, + "idsUnique": true, + "referencesResolve": true, + "namedFocusableRegions": true, + "reducedMotionFinal": true, + "noPageErrors": true, + "pageTitle": true + }, + "unnamedFields": [], + "relationships": { + "duplicateIds": [], + "missingDescriptions": [] + }, + "regions": [ + { + "name": "Database role grants", + "focused": true, + "width": 153, + "scroll": 516 + } + ], + "pageErrors": [] + } + ] +} diff --git a/docs/ui-consistency/evidence/ot14-security-wrap/source-parity.json b/docs/ui-consistency/evidence/ot14-security-wrap/source-parity.json new file mode 100644 index 000000000..45ed555bb --- /dev/null +++ b/docs/ui-consistency/evidence/ot14-security-wrap/source-parity.json @@ -0,0 +1,19 @@ +{ + "baseline": "ef1609f52398dfa2f1ba0acf83f298df0c6b7fe4", + "files": [ + { + "file": "src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/RoleGrants.razor", + "beforeSha256": "3e76fcfbfcceafa13e4cee424113f14d14928c6c547568ac30f7b65ee13b1605", + "afterSha256": "383e2bdc94ffa86d001f51e50cdd990ed0b49b9d62bc09a69b10aad8187514f9", + "existingCodeBodyExact": true + }, + { + "file": "src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/Certificates.razor", + "beforeSha256": "88ec74f3558b89a33f1cac840598532692722c5a94836440cdbcb61a07a48153", + "afterSha256": "6dfc72b4568706c422d4887255d7141580567b99e5a39f5931f6b325dcc75c86", + "existingCodeBodyExact": true + } + ], + "roleOnlyAdditiveCode": " private readonly string _fieldScope = \"ot-role-grants-\" + Guid.NewGuid().ToString(\"N\");\n private string FieldId(string suffix) => _fieldScope + \"-\" + suffix;\n", + "scope": "Labels, persistent error association and local wrapping/shrinkability only; no mutation/query/auth/bind/event changes" +} diff --git a/docs/ui-consistency/evidence/ot14-security-wrap/verification.md b/docs/ui-consistency/evidence/ot14-security-wrap/verification.md new file mode 100644 index 000000000..9dc86f053 --- /dev/null +++ b/docs/ui-consistency/evidence/ot14-security-wrap/verification.md @@ -0,0 +1,29 @@ +# OT14 security fields and narrow-layout correction + +Scope: `RoleGrants.razor`, `Certificates.razor`, new `RoleGrantFieldAssociationTests.cs`, and this evidence directory. The first final-grammar matrix found two unnamed role-grant controls and page overflow from LDAP summaries/configuration keys at effective 195 CSS pixels, plus long PKI paths in empty/missing-directory states at 390/195 pixels. Original observations remain in `../ot14-final/first-grammar-matrix.json` and `first-overflow-elements.json`. + +## Minimal repair + +Role grants now has visible LDAP group/Role labels, per-instance scoped `id`/`for` links, and a persistent associated error target. Existing blank-group validation appears in that alert without dispatching a mutation. Local Bootstrap wrapping/break utilities and shrinkable value markup keep LDAP summary values/configuration keys within their cards. The existing Add binding, roles, deletion confirmation, authorization, service calls and all existing code remain unchanged. Certificates adds `text-break` to exactly the two existing PKI-path spans in missing/empty states. No shared theme/CSS, service, model, route, authorization, package or domain changes. + +## Behavioral verification + +- `red.trx`/`red.log`: two new tests compile and fail against the original markup for missing IDs and error associations. +- `green.trx`/`green.log`: 18 passed, zero failed/skipped: two new naming/association/validation tests, existing role-grant deletion-confirmation regression, and existing certificate-store manager regressions. The field-only mapping fixture permits the synthetic list read and refuses every mutation. +- `source-parity.json`: both existing `@code` bodies exactly match the recorded pre-edit baseline, after removing only the additive RoleGrants scoped-ID helper. `verify-source.py` regenerates this proof. No field binding/event expression changed. +- Primary browser confirmation: the eight RoleGrants/Certificates cases in `../ot14-final/confirmation-grammar-matrix.json` pass all checks at actual widths 1440/390/720/195 CSS pixels (the latter two are real 200% zoom). Document width equals viewport width in all eight; fields have names, unique IDs and resolving references, with no page errors. `security-confirmation-extract.json` retains only these owned cases. The RoleGrants real-200% viewport screenshot was visually inspected. This is synthetic local read-adapter evidence; it does not certify real LDAP, certificate-store or mutation behavior or claim overall OT14 completion. + +Command, from the OtOpcUa repository root (the state file is private and its contents must not be printed): + +```sh +python3 infra/tools/ui-consistency/with_private_sql.py \ + --state /var/folders/1q/cqgzjt_n4c741dqw9r896v4r0000gn/T/ot-ui-private-sql-8sd0_pqn/state.json \ + -- dotnet test tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/ZB.MOM.WW.OtOpcUa.AdminUI.Tests.csproj \ + --artifacts-path "$PWD/artifacts/ui-equipment-caller-tests" \ + --filter 'FullyQualifiedName~RoleGrantFieldAssociationTests|FullyQualifiedName~DeleteConfirmRenderTests.RoleGrants_Delete_confirms_first|FullyQualifiedName~CertificateStoreManagerTests' \ + --logger 'trx;LogFileName=green.trx' \ + --results-directory docs/ui-consistency/evidence/ot14-security-wrap +python3 docs/ui-consistency/evidence/ot14-security-wrap/verify-source.py +``` + +Tests use the existing private-SQL discovery runner; no shared LAN SQL discovery, live certificate store or LDAP mutations are needed. No VoiceOver test was performed, per user exclusion. No deployment or operational mutation occurred. This batch owns no running fixture; the primary agent retains its read-only final-grammar fixture and final chapter/full-suite acceptance. Independent gateway source review found no blocking defect; existing business bodies and exact frozen hashes were independently verified. diff --git a/docs/ui-consistency/evidence/ot14-security-wrap/verify-source.py b/docs/ui-consistency/evidence/ot14-security-wrap/verify-source.py new file mode 100644 index 000000000..3996ee632 --- /dev/null +++ b/docs/ui-consistency/evidence/ot14-security-wrap/verify-source.py @@ -0,0 +1,22 @@ +#!/usr/bin/env python3 +"""Verify the bounded security-surface repair against its pre-edit source baseline.""" +from pathlib import Path +import hashlib +import json +import subprocess + +ROOT = Path(__file__).resolve().parents[4] +BASELINE = "ef1609f52398dfa2f1ba0acf83f298df0c6b7fe4" +PREFIX = "src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/" +HELPER = ' private readonly string _fieldScope = "ot-role-grants-" + Guid.NewGuid().ToString("N");\n private string FieldId(string suffix) => _fieldScope + "-" + suffix;\n' +files = [] +for name in ("RoleGrants.razor", "Certificates.razor"): + relative = PREFIX + name + before = subprocess.check_output(["git", "show", BASELINE + ":" + relative], cwd=ROOT).decode() + after = (ROOT / relative).read_text() + normalized = after.replace(HELPER, "", 1) if name == "RoleGrants.razor" else after + assert before.split("@code {", 1)[1] == normalized.split("@code {", 1)[1], relative + files.append({"file": relative, "beforeSha256": hashlib.sha256(before.encode()).hexdigest(), "afterSha256": hashlib.sha256(after.encode()).hexdigest(), "existingCodeBodyExact": True}) +result = {"baseline": BASELINE, "files": files, "roleOnlyAdditiveCode": HELPER, "scope": "Labels, persistent error association and local wrapping/shrinkability only; no mutation/query/auth/bind/event changes"} +Path(__file__).with_name("source-parity.json").write_text(json.dumps(result, indent=2) + "\n") +print("Two existing code bodies unchanged; only additive RoleGrants ID helper allowed.") diff --git a/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/Certificates.razor b/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/Certificates.razor index ccd8c0a4e..b3124ac8b 100644 --- a/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/Certificates.razor +++ b/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/Certificates.razor @@ -49,12 +49,12 @@ else else if (!Directory.Exists(store.Path)) {
- @store.Path doesn't exist yet. It will be created on first boot. + @store.Path doesn't exist yet. It will be created on first boot.
} else if (store.Certificates.Count == 0) { -
No certificates in @store.Path.
+
No certificates in @store.Path.
} else { diff --git a/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/RoleGrants.razor b/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/RoleGrants.razor index e31ebf3a3..f92f3fb1e 100644 --- a/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/RoleGrants.razor +++ b/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/RoleGrants.razor @@ -22,13 +22,13 @@

LDAP binding

-
Enabled@(_options.Enabled ? "yes" : "no")
-
Server@_options.Server:@_options.Port
-
Transport@_options.Transport
-
SearchBase@DisplayText.Abbreviate(_options.SearchBase, 48)
+
Enabled@(_options.Enabled ? "yes" : "no")
+
Server@_options.Server:@_options.Port
+
Transport@_options.Transport
+
SearchBase@DisplayText.Abbreviate(_options.SearchBase, 48)
@if (_options.Transport == ZB.MOM.WW.Auth.Abstractions.Ldap.LdapTransport.None && _options.AllowInsecure) { -
WarningPlaintext credentials over LDAP — dev mode only
+
WarningPlaintext credentials over LDAP — dev mode only
}
@@ -37,21 +37,24 @@

Group → role (database)

-
- - +
+
+ + +
+
+ + +
- @if (_error is not null) - { -
@_error
- } +
@@ -87,7 +90,7 @@

Fallback (appsettings) (@(_options.GroupToRole?.Count ?? 0))

- These Security:Ldap:GroupToRole entries apply when a group has no database row above. + These Security:Ldap:GroupToRole entries apply when a group has no database row above.
@if (_options.GroupToRole is null || _options.GroupToRole.Count == 0) { @@ -115,6 +118,8 @@ @code { + private readonly string _fieldScope = "ot-role-grants-" + Guid.NewGuid().ToString("N"); + private string FieldId(string suffix) => _fieldScope + "-" + suffix; private LdapOptions? _options; private IReadOnlyList _rows = []; private string _newGroup = ""; diff --git a/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/Pages/RoleGrantFieldAssociationTests.cs b/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/Pages/RoleGrantFieldAssociationTests.cs new file mode 100644 index 000000000..5395619ce --- /dev/null +++ b/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/Pages/RoleGrantFieldAssociationTests.cs @@ -0,0 +1,53 @@ +using System.Reflection; +using Bunit; +using Microsoft.Extensions.DependencyInjection; +using Microsoft.Extensions.Options; +using Shouldly; +using Xunit; +using ZB.MOM.WW.OtOpcUa.AdminUI.Components.Pages; +using ZB.MOM.WW.OtOpcUa.Configuration.Entities; +using ZB.MOM.WW.OtOpcUa.Configuration.Services; +using ZB.MOM.WW.OtOpcUa.Security.Ldap; + +namespace ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages; + +/// Names and persistent error associations for existing role-grant fields. +[Trait("Category","Unit")] +public sealed class RoleGrantFieldAssociationTests:BunitContext +{ + public RoleGrantFieldAssociationTests() + { + Services.AddSingleton>(new Options()); + Services.AddSingleton(DispatchProxy.Create()); + } + [Fact] + public void FieldsHaveVisibleNamesAndUniqueAssociationsAcrossInstances() + { + var a=Render();var b=Render(); + foreach(var cut in new[]{a,b}) + { + foreach(var field in cut.FindAll("input,select")) + { + field.Id.ShouldNotBeNullOrWhiteSpace(); + cut.FindAll("label").ShouldContain(x=>x.GetAttribute("for")==field.Id&&!string.IsNullOrWhiteSpace(x.TextContent)); + var described=field.GetAttribute("aria-describedby");described.ShouldNotBeNullOrWhiteSpace(); + foreach(var id in described!.Split(' ',StringSplitOptions.RemoveEmptyEntries))cut.Find("#"+id).ShouldNotBeNull(); + } + } + var ids=a.FindAll("[id]").Concat(b.FindAll("[id]")).Select(x=>x.Id).ToArray();ids.Distinct().Count().ShouldBe(ids.Length); + } + [Fact] + public void ExistingBlankGroupValidationAppearsAtAssociatedErrorWithoutDispatchingMutation() + { + var cut=Render();cut.Find("button.btn-primary").Click(); + var target=cut.Find("input").GetAttribute("aria-describedby");target.ShouldNotBeNullOrWhiteSpace(); + cut.Find("#"+target).TextContent.ShouldBe("LDAP group is required.");cut.Find("#"+target).GetAttribute("role").ShouldBe("alert"); + } + private sealed class Options:IOptionsSnapshot{public LdapOptions Value{get;}=new();public LdapOptions Get(string? name)=>Value;} + public class ReadOnlyMappings:DispatchProxy + { + protected override object? Invoke(MethodInfo? method,object?[]? args)=>method?.Name=="ListAllAsync" + ?Task.FromResult>([]) + :throw new InvalidOperationException("Mutation refused by field-only fixture: "+method?.Name); + } +}