fix(admin-ui): gate cluster and ACL actions by destination policies
This commit is contained in:
@@ -0,0 +1,54 @@
|
||||
|
||||
Determining projects to restore...
|
||||
All projects are up-to-date for restore.
|
||||
ZB.MOM.WW.OtOpcUa.Analyzers -> /tmp/ot04-05-artifacts/bin/ZB.MOM.WW.OtOpcUa.Analyzers/debug/ZB.MOM.WW.OtOpcUa.Analyzers.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.Calculation.Contracts -> /tmp/ot04-05-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.Calculation.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Calculation.Contracts.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.Ab.Transport -> /tmp/ot04-05-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.Ab.Transport/debug/ZB.MOM.WW.OtOpcUa.Driver.Ab.Transport.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.Modbus.Addressing -> /tmp/ot04-05-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Addressing/debug/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Addressing.dll
|
||||
ZB.MOM.WW.OtOpcUa.Core.Abstractions -> /tmp/ot04-05-artifacts/bin/ZB.MOM.WW.OtOpcUa.Core.Abstractions/debug/ZB.MOM.WW.OtOpcUa.Core.Abstractions.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.Contracts -> /tmp/ot04-05-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.Contracts.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.MTConnect.Contracts -> /tmp/ot04-05-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.MTConnect.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.MTConnect.Contracts.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.Contracts -> /tmp/ot04-05-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.Contracts.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.S7.Contracts -> /tmp/ot04-05-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.S7.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.S7.Contracts.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Contracts -> /tmp/ot04-05-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Contracts.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.Contracts -> /tmp/ot04-05-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.Contracts.dll
|
||||
ZB.MOM.WW.OtOpcUa.Commons -> /tmp/ot04-05-artifacts/bin/ZB.MOM.WW.OtOpcUa.Commons/debug/ZB.MOM.WW.OtOpcUa.Commons.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.AbCip.Contracts -> /tmp/ot04-05-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.AbCip.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.AbCip.Contracts.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.Sql.Contracts -> /tmp/ot04-05-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.Sql.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Sql.Contracts.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Contracts -> /tmp/ot04-05-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Contracts.dll
|
||||
ZB.MOM.WW.OtOpcUa.Core.Scripting.Abstractions -> /tmp/ot04-05-artifacts/bin/ZB.MOM.WW.OtOpcUa.Core.Scripting.Abstractions/debug/ZB.MOM.WW.OtOpcUa.Core.Scripting.Abstractions.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.FOCAS.Contracts -> /tmp/ot04-05-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.FOCAS.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.FOCAS.Contracts.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Contracts -> /tmp/ot04-05-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Contracts.dll
|
||||
ZB.MOM.WW.OtOpcUa.Core.AlarmHistorian -> /tmp/ot04-05-artifacts/bin/ZB.MOM.WW.OtOpcUa.Core.AlarmHistorian/debug/ZB.MOM.WW.OtOpcUa.Core.AlarmHistorian.dll
|
||||
ZB.MOM.WW.OtOpcUa.Cluster -> /tmp/ot04-05-artifacts/bin/ZB.MOM.WW.OtOpcUa.Cluster/debug/ZB.MOM.WW.OtOpcUa.Cluster.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Session -> /tmp/ot04-05-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Session/debug/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Session.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.Modbus.Contracts -> /tmp/ot04-05-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Contracts.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Transport -> /tmp/ot04-05-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Transport/debug/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Transport.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Browser -> /tmp/ot04-05-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Browser/debug/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Browser.dll
|
||||
ZB.MOM.WW.OtOpcUa.Core.Scripting -> /tmp/ot04-05-artifacts/bin/ZB.MOM.WW.OtOpcUa.Core.Scripting/debug/ZB.MOM.WW.OtOpcUa.Core.Scripting.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Browser -> /tmp/ot04-05-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Browser/debug/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Browser.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Browser -> /tmp/ot04-05-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Browser/debug/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Browser.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.Sql.Dialect -> /tmp/ot04-05-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.Sql.Dialect/debug/ZB.MOM.WW.OtOpcUa.Driver.Sql.Dialect.dll
|
||||
ZB.MOM.WW.OtOpcUa.Core.ScriptedAlarms -> /tmp/ot04-05-artifacts/bin/ZB.MOM.WW.OtOpcUa.Core.ScriptedAlarms/debug/ZB.MOM.WW.OtOpcUa.Core.ScriptedAlarms.dll
|
||||
ZB.MOM.WW.OtOpcUa.Core.VirtualTags -> /tmp/ot04-05-artifacts/bin/ZB.MOM.WW.OtOpcUa.Core.VirtualTags/debug/ZB.MOM.WW.OtOpcUa.Core.VirtualTags.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.Sql.Browser -> /tmp/ot04-05-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.Sql.Browser/debug/ZB.MOM.WW.OtOpcUa.Driver.Sql.Browser.dll
|
||||
ZB.MOM.WW.OtOpcUa.Configuration -> /tmp/ot04-05-artifacts/bin/ZB.MOM.WW.OtOpcUa.Configuration/debug/ZB.MOM.WW.OtOpcUa.Configuration.dll
|
||||
ZB.MOM.WW.OtOpcUa.Core -> /tmp/ot04-05-artifacts/bin/ZB.MOM.WW.OtOpcUa.Core/debug/ZB.MOM.WW.OtOpcUa.Core.dll
|
||||
ZB.MOM.WW.OtOpcUa.Security -> /tmp/ot04-05-artifacts/bin/ZB.MOM.WW.OtOpcUa.Security/debug/ZB.MOM.WW.OtOpcUa.Security.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient -> /tmp/ot04-05-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient/debug/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.Sql -> /tmp/ot04-05-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.Sql/debug/ZB.MOM.WW.OtOpcUa.Driver.Sql.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.AbLegacy -> /tmp/ot04-05-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy/debug/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.Galaxy -> /tmp/ot04-05-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.Galaxy/debug/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.FOCAS -> /tmp/ot04-05-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.FOCAS/debug/ZB.MOM.WW.OtOpcUa.Driver.FOCAS.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.Heidenhain -> /tmp/ot04-05-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain/debug/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.AbCip -> /tmp/ot04-05-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.AbCip/debug/ZB.MOM.WW.OtOpcUa.Driver.AbCip.dll
|
||||
ZB.MOM.WW.OtOpcUa.ControlPlane -> /tmp/ot04-05-artifacts/bin/ZB.MOM.WW.OtOpcUa.ControlPlane/debug/ZB.MOM.WW.OtOpcUa.ControlPlane.dll
|
||||
ZB.MOM.WW.OtOpcUa.OpcUaServer -> /tmp/ot04-05-artifacts/bin/ZB.MOM.WW.OtOpcUa.OpcUaServer/debug/ZB.MOM.WW.OtOpcUa.OpcUaServer.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.MTConnect -> /tmp/ot04-05-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.MTConnect/debug/ZB.MOM.WW.OtOpcUa.Driver.MTConnect.dll
|
||||
ZB.MOM.WW.OtOpcUa.Runtime -> /tmp/ot04-05-artifacts/bin/ZB.MOM.WW.OtOpcUa.Runtime/debug/ZB.MOM.WW.OtOpcUa.Runtime.dll
|
||||
ZB.MOM.WW.OtOpcUa.AdminUI -> /tmp/ot04-05-artifacts/bin/ZB.MOM.WW.OtOpcUa.AdminUI/debug/ZB.MOM.WW.OtOpcUa.AdminUI.dll
|
||||
ZB.MOM.WW.OtOpcUa.AdminUI.Tests -> /tmp/ot04-05-artifacts/bin/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/debug/ZB.MOM.WW.OtOpcUa.AdminUI.Tests.dll
|
||||
Test run for /tmp/ot04-05-artifacts/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.
|
||||
|
||||
Passed! - Failed: 0, Passed: 26, Skipped: 0, Total: 26, Duration: 505 ms - ZB.MOM.WW.OtOpcUa.AdminUI.Tests.dll (net10.0)
|
||||
@@ -0,0 +1,78 @@
|
||||
|
||||
Determining projects to restore...
|
||||
All projects are up-to-date for restore.
|
||||
ZB.MOM.WW.OtOpcUa.Analyzers -> /tmp/ot04-05-artifacts/bin/ZB.MOM.WW.OtOpcUa.Analyzers/debug/ZB.MOM.WW.OtOpcUa.Analyzers.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.Calculation.Contracts -> /tmp/ot04-05-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.Calculation.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Calculation.Contracts.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.Modbus.Addressing -> /tmp/ot04-05-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Addressing/debug/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Addressing.dll
|
||||
ZB.MOM.WW.OtOpcUa.Core.Abstractions -> /tmp/ot04-05-artifacts/bin/ZB.MOM.WW.OtOpcUa.Core.Abstractions/debug/ZB.MOM.WW.OtOpcUa.Core.Abstractions.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.Ab.Transport -> /tmp/ot04-05-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.Ab.Transport/debug/ZB.MOM.WW.OtOpcUa.Driver.Ab.Transport.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Contracts -> /tmp/ot04-05-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Contracts.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.FOCAS.Contracts -> /tmp/ot04-05-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.FOCAS.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.FOCAS.Contracts.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.Contracts -> /tmp/ot04-05-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.Contracts.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.AbCip.Contracts -> /tmp/ot04-05-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.AbCip.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.AbCip.Contracts.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.Contracts -> /tmp/ot04-05-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.Contracts.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Contracts -> /tmp/ot04-05-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Contracts.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.Sql.Contracts -> /tmp/ot04-05-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.Sql.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Sql.Contracts.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.MTConnect.Contracts -> /tmp/ot04-05-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.MTConnect.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.MTConnect.Contracts.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Contracts -> /tmp/ot04-05-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Contracts.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.Modbus.Contracts -> /tmp/ot04-05-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Contracts.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.S7.Contracts -> /tmp/ot04-05-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.S7.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.S7.Contracts.dll
|
||||
ZB.MOM.WW.OtOpcUa.Core.AlarmHistorian -> /tmp/ot04-05-artifacts/bin/ZB.MOM.WW.OtOpcUa.Core.AlarmHistorian/debug/ZB.MOM.WW.OtOpcUa.Core.AlarmHistorian.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.Contracts -> /tmp/ot04-05-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.Contracts/debug/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.Contracts.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.Sql.Dialect -> /tmp/ot04-05-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.Sql.Dialect/debug/ZB.MOM.WW.OtOpcUa.Driver.Sql.Dialect.dll
|
||||
ZB.MOM.WW.OtOpcUa.Core.Scripting.Abstractions -> /tmp/ot04-05-artifacts/bin/ZB.MOM.WW.OtOpcUa.Core.Scripting.Abstractions/debug/ZB.MOM.WW.OtOpcUa.Core.Scripting.Abstractions.dll
|
||||
ZB.MOM.WW.OtOpcUa.Commons -> /tmp/ot04-05-artifacts/bin/ZB.MOM.WW.OtOpcUa.Commons/debug/ZB.MOM.WW.OtOpcUa.Commons.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Session -> /tmp/ot04-05-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Session/debug/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Session.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Transport -> /tmp/ot04-05-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Transport/debug/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Transport.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Browser -> /tmp/ot04-05-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Browser/debug/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Browser.dll
|
||||
ZB.MOM.WW.OtOpcUa.Core.Scripting -> /tmp/ot04-05-artifacts/bin/ZB.MOM.WW.OtOpcUa.Core.Scripting/debug/ZB.MOM.WW.OtOpcUa.Core.Scripting.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Browser -> /tmp/ot04-05-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Browser/debug/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Browser.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.Sql.Browser -> /tmp/ot04-05-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.Sql.Browser/debug/ZB.MOM.WW.OtOpcUa.Driver.Sql.Browser.dll
|
||||
ZB.MOM.WW.OtOpcUa.Cluster -> /tmp/ot04-05-artifacts/bin/ZB.MOM.WW.OtOpcUa.Cluster/debug/ZB.MOM.WW.OtOpcUa.Cluster.dll
|
||||
ZB.MOM.WW.OtOpcUa.Core.VirtualTags -> /tmp/ot04-05-artifacts/bin/ZB.MOM.WW.OtOpcUa.Core.VirtualTags/debug/ZB.MOM.WW.OtOpcUa.Core.VirtualTags.dll
|
||||
ZB.MOM.WW.OtOpcUa.Core.ScriptedAlarms -> /tmp/ot04-05-artifacts/bin/ZB.MOM.WW.OtOpcUa.Core.ScriptedAlarms/debug/ZB.MOM.WW.OtOpcUa.Core.ScriptedAlarms.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Browser -> /tmp/ot04-05-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Browser/debug/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Browser.dll
|
||||
ZB.MOM.WW.OtOpcUa.Configuration -> /tmp/ot04-05-artifacts/bin/ZB.MOM.WW.OtOpcUa.Configuration/debug/ZB.MOM.WW.OtOpcUa.Configuration.dll
|
||||
ZB.MOM.WW.OtOpcUa.Core -> /tmp/ot04-05-artifacts/bin/ZB.MOM.WW.OtOpcUa.Core/debug/ZB.MOM.WW.OtOpcUa.Core.dll
|
||||
ZB.MOM.WW.OtOpcUa.Security -> /tmp/ot04-05-artifacts/bin/ZB.MOM.WW.OtOpcUa.Security/debug/ZB.MOM.WW.OtOpcUa.Security.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.Sql -> /tmp/ot04-05-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.Sql/debug/ZB.MOM.WW.OtOpcUa.Driver.Sql.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.Heidenhain -> /tmp/ot04-05-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain/debug/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient -> /tmp/ot04-05-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient/debug/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.AbLegacy -> /tmp/ot04-05-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy/debug/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.Galaxy -> /tmp/ot04-05-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.Galaxy/debug/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.dll
|
||||
ZB.MOM.WW.OtOpcUa.ControlPlane -> /tmp/ot04-05-artifacts/bin/ZB.MOM.WW.OtOpcUa.ControlPlane/debug/ZB.MOM.WW.OtOpcUa.ControlPlane.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.AbCip -> /tmp/ot04-05-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.AbCip/debug/ZB.MOM.WW.OtOpcUa.Driver.AbCip.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.MTConnect -> /tmp/ot04-05-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.MTConnect/debug/ZB.MOM.WW.OtOpcUa.Driver.MTConnect.dll
|
||||
ZB.MOM.WW.OtOpcUa.OpcUaServer -> /tmp/ot04-05-artifacts/bin/ZB.MOM.WW.OtOpcUa.OpcUaServer/debug/ZB.MOM.WW.OtOpcUa.OpcUaServer.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.FOCAS -> /tmp/ot04-05-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.FOCAS/debug/ZB.MOM.WW.OtOpcUa.Driver.FOCAS.dll
|
||||
ZB.MOM.WW.OtOpcUa.Runtime -> /tmp/ot04-05-artifacts/bin/ZB.MOM.WW.OtOpcUa.Runtime/debug/ZB.MOM.WW.OtOpcUa.Runtime.dll
|
||||
ZB.MOM.WW.OtOpcUa.AdminUI -> /tmp/ot04-05-artifacts/bin/ZB.MOM.WW.OtOpcUa.AdminUI/debug/ZB.MOM.WW.OtOpcUa.AdminUI.dll
|
||||
ZB.MOM.WW.OtOpcUa.AdminUI.Tests -> /tmp/ot04-05-artifacts/bin/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/debug/ZB.MOM.WW.OtOpcUa.AdminUI.Tests.dll
|
||||
Test run for /tmp/ot04-05-artifacts/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.80] ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.NavigationPolicyRenderTests.ClusterListAndAclActions_FollowDestinationPolicy(role: "Viewer", allowed: False) [FAIL]
|
||||
[xUnit.net 00:00:01.81] ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.NavigationPolicyRenderTests.ClusterListAndAclActions_FollowDestinationPolicy(role: "Operator", allowed: False) [FAIL]
|
||||
Failed ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.NavigationPolicyRenderTests.ClusterListAndAclActions_FollowDestinationPolicy(role: "Viewer", allowed: False) [27 ms]
|
||||
Error Message:
|
||||
Shouldly.ShouldAssertException : list.FindAll("a[href='/clusters/new']").Count
|
||||
should be
|
||||
0
|
||||
but was
|
||||
1
|
||||
Stack Trace:
|
||||
at ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.NavigationPolicyRenderTests.ClusterListAndAclActions_FollowDestinationPolicy(String role, Boolean allowed) in /Users/dohertj2/Desktop/OtOpcUa/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/Pages/NavigationPolicyRenderTests.cs:line 113
|
||||
at InvokeStub_NavigationPolicyRenderTests.ClusterListAndAclActions_FollowDestinationPolicy(Object, Span`1)
|
||||
at System.Reflection.MethodBaseInvoker.InvokeWithFewArgs(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
|
||||
Failed ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.NavigationPolicyRenderTests.ClusterListAndAclActions_FollowDestinationPolicy(role: "Operator", allowed: False) [9 ms]
|
||||
Error Message:
|
||||
Shouldly.ShouldAssertException : list.FindAll("a[href='/clusters/new']").Count
|
||||
should be
|
||||
0
|
||||
but was
|
||||
1
|
||||
Stack Trace:
|
||||
at ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.NavigationPolicyRenderTests.ClusterListAndAclActions_FollowDestinationPolicy(String role, Boolean allowed) in /Users/dohertj2/Desktop/OtOpcUa/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/Pages/NavigationPolicyRenderTests.cs:line 113
|
||||
at InvokeStub_NavigationPolicyRenderTests.ClusterListAndAclActions_FollowDestinationPolicy(Object, Span`1)
|
||||
at System.Reflection.MethodBaseInvoker.InvokeWithFewArgs(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
|
||||
|
||||
Failed! - Failed: 2, Passed: 2, Skipped: 0, Total: 4, Duration: 644 ms - ZB.MOM.WW.OtOpcUa.AdminUI.Tests.dll (net10.0)
|
||||
@@ -0,0 +1,14 @@
|
||||
[
|
||||
{
|
||||
"path": "src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/Clusters/ClusterAcls.razor",
|
||||
"before": "72e660f361c2ae3b0c18dc6952186a955c27fdaaf9a3b635d9f9c617408448a5",
|
||||
"after": "f83e68fd1b76bdc4b4c4a271d3e1ee9d5509ee7edd39b7678841d38f154817ea",
|
||||
"routesAndPagePolicyAndEntireCSharpUnchanged": true
|
||||
},
|
||||
{
|
||||
"path": "src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/Clusters/ClustersList.razor",
|
||||
"before": "59e9819d747d4c6369f0bc3535fd51afa20d8d2d8a574bce98f13b437e4d2a11",
|
||||
"after": "62c3ddfbd30dce391feb417b577f0c4846db12a71a57d9d5ec33c6ae80dbeb95",
|
||||
"routesAndPagePolicyAndEntireCSharpUnchanged": true
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,15 @@
|
||||
# OT05 residual list action policies
|
||||
|
||||
The written chapter refinement authorizes exactly ClusterAcls and ClustersList after their grammar commit1fe4dbf5. The three authoring destinations now use the exact existing ConfigEditor policy already enforced by AclEdit/NewCluster: New ACL grant, row Edit, New cluster. Read-authorized list pages, row data, service queries, route attributes, parameters and C# bodies stay unchanged. Empty cluster guidance advertises creation only to users who can follow that action.
|
||||
|
||||
A new real-policy-engine rendered theory in NavigationPolicyRenderTests seeds a disposable EF InMemory cluster/ACL, installs ConfigEditor RequireRole(Administrator,Designer), and uses actual role claims. Viewer/Operator must retain readable cluster/ACL data but receive none of the three edit/create links; Designer/Administrator retain each. It also reflects the actual destination page policy. No mocked always-authorized service or operational persistence.
|
||||
|
||||
Valid baseline: four role cases, two negative failures/two positive passes. After the bounded gates: all four pass. Aggregate NavigationPolicyRenderTests + ClusterOverviewActionPolicyTests + PageAuthorizationGuardTests + DeleteConfirmRenderTests + SecretsNavLinkTests **26/26 pass, zero skips**. Raw red/green retained. Command from repository root:
|
||||
|
||||
```sh
|
||||
dotnet test tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/ZB.MOM.WW.OtOpcUa.AdminUI.Tests.csproj --artifacts-path /tmp/ot04-05-artifacts --filter 'FullyQualifiedName~NavigationPolicyRenderTests|FullyQualifiedName~ClusterOverviewActionPolicyTests|FullyQualifiedName~PageAuthorizationGuardTests|FullyQualifiedName~DeleteConfirmRenderTests|FullyQualifiedName~SecretsNavLinkTests'
|
||||
```
|
||||
|
||||
Source guard confirms exact route/page-policy directives and entire C# blocks preserved against committed grammar. This is a narrow discoverability/policy follow-up; no new navigation mechanics or browser behavior were introduced, and the existing12scene navigation browser proof is not claimed as rendering these newly gated pages. Integration full suite remains coordinated separately. No real service operation, live gateway, deployment, or shared ledger change.
|
||||
|
||||
Parent review refinement: both Actions column header and every row action cell use the same ConfigEditor gate. Real-role tests assert matching6column reader/7column editor header and row geometry. The actionable ACL re-pick instruction follows the same policy; the unresolved explanation remains readable. Aggregate26/26 remains green after this final change.
|
||||
@@ -13,7 +13,9 @@
|
||||
<div class="page-head">
|
||||
<h1>ACLs · <span class="mono">@ClusterId</span></h1>
|
||||
<span class="spacer"></span>
|
||||
<a href="/clusters/@ClusterId/acls/new" class="btn btn-primary btn-sm">New ACL grant</a>
|
||||
<AuthorizeView Policy="@AdminUiPolicies.ConfigEditor">
|
||||
<a href="/clusters/@ClusterId/acls/new" class="btn btn-primary btn-sm">New ACL grant</a>
|
||||
</AuthorizeView>
|
||||
</div>
|
||||
|
||||
<ClusterNav ClusterId="@ClusterId" ActiveTab="acls" />
|
||||
@@ -27,8 +29,8 @@ else
|
||||
<section class="panel notice rise" style="animation-delay:.02s">
|
||||
The <strong>Scope target</strong> column resolves each row against the current configuration. A
|
||||
row marked <span class="chip chip-alert">unresolved</span> points at nothing — it is shipped in
|
||||
every deployment artifact but authorizes nobody, and the deploy gate rejects it. Open it and
|
||||
re-pick the scope.
|
||||
every deployment artifact but authorizes nobody, and the deploy gate rejects it.
|
||||
<AuthorizeView Policy="@AdminUiPolicies.ConfigEditor">Open it and re-pick the scope.</AuthorizeView>
|
||||
</section>
|
||||
|
||||
<section class="panel rise mt-3" style="animation-delay:.08s">
|
||||
@@ -51,7 +53,7 @@ else
|
||||
<th scope="col">Scope target</th>
|
||||
<th scope="col">Permissions</th>
|
||||
<th scope="col">Notes</th>
|
||||
<th scope="col"><span class="visually-hidden">Actions</span></th>
|
||||
<AuthorizeView Policy="@AdminUiPolicies.ConfigEditor"><th scope="col"><span class="visually-hidden">Actions</span></th></AuthorizeView>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -89,7 +91,7 @@ else
|
||||
}
|
||||
</td>
|
||||
<td class="text-muted small" title="@(a.Notes ?? "")">@(string.IsNullOrEmpty(a.Notes) ? "" : DisplayText.Abbreviate(a.Notes, 60))</td>
|
||||
<td><a href="/clusters/@ClusterId/acls/@a.NodeAclId" class="btn btn-sm btn-outline-primary">Edit</a></td>
|
||||
<AuthorizeView Policy="@AdminUiPolicies.ConfigEditor"><td><a href="/clusters/@ClusterId/acls/@a.NodeAclId" class="btn btn-sm btn-outline-primary">Edit</a></td></AuthorizeView>
|
||||
</tr>
|
||||
}
|
||||
</tbody>
|
||||
|
||||
@@ -12,7 +12,9 @@
|
||||
<div class="page-head">
|
||||
<h1>Clusters</h1>
|
||||
<span class="spacer"></span>
|
||||
<a href="/clusters/new" class="btn btn-primary btn-sm">New cluster</a>
|
||||
<AuthorizeView Policy="@AdminUiPolicies.ConfigEditor">
|
||||
<a href="/clusters/new" class="btn btn-primary btn-sm">New cluster</a>
|
||||
</AuthorizeView>
|
||||
</div>
|
||||
|
||||
@if (_rows is null)
|
||||
@@ -22,7 +24,10 @@
|
||||
else if (_rows.Count == 0)
|
||||
{
|
||||
<section class="panel notice rise" style="animation-delay:.02s">
|
||||
No clusters defined yet. Use <strong>New cluster</strong> above to create one.
|
||||
No clusters defined yet.
|
||||
<AuthorizeView Policy="@AdminUiPolicies.ConfigEditor">
|
||||
Use <strong>New cluster</strong> above to create one.
|
||||
</AuthorizeView>
|
||||
</section>
|
||||
}
|
||||
else
|
||||
|
||||
@@ -1,3 +1,14 @@
|
||||
using System.Security.Claims;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Components.Authorization;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Microsoft.Extensions.DependencyInjection.Extensions;
|
||||
using ZB.MOM.WW.OtOpcUa.AdminUI.Components.Pages.Clusters;
|
||||
using ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Uns;
|
||||
using ZB.MOM.WW.OtOpcUa.AdminUI.Acls;
|
||||
using ZB.MOM.WW.OtOpcUa.AdminUI.Uns;
|
||||
using ZB.MOM.WW.OtOpcUa.Configuration.Entities;
|
||||
using ZB.MOM.WW.OtOpcUa.Configuration.Enums;
|
||||
using Bunit;
|
||||
using Bunit.TestDoubles;
|
||||
using Microsoft.AspNetCore.Components;
|
||||
@@ -74,4 +85,53 @@ public sealed class NavigationPolicyRenderTests : BunitContext
|
||||
cut.Find("a[href='/admin/secrets']").ShouldNotBeNull();
|
||||
cut.FindAll("a[href='/role-grants'],a[href='/apikeys']").ShouldBeEmpty();
|
||||
}
|
||||
|
||||
[Theory]
|
||||
[InlineData("Viewer", false)]
|
||||
[InlineData("Operator", false)]
|
||||
[InlineData("Designer", true)]
|
||||
[InlineData("Administrator", true)]
|
||||
public void ClusterListAndAclActions_FollowDestinationPolicy(string role, bool allowed)
|
||||
{
|
||||
Services.RemoveAll<IAuthorizationService>();
|
||||
Services.RemoveAll<IAuthorizationPolicyProvider>();
|
||||
Services.AddAuthorizationCore( options =>
|
||||
options.AddPolicy(AdminUiPolicies.ConfigEditor, policy => policy.RequireRole("Administrator", "Designer")));
|
||||
var principal = new ClaimsPrincipal(new ClaimsIdentity([
|
||||
new(ClaimTypes.Name, "fixture"), new(ClaimTypes.Role, role)], "fixture"));
|
||||
var state = Task.FromResult(new AuthenticationState(principal));
|
||||
var name = Guid.NewGuid().ToString("N");
|
||||
using (var db = RawTreeTestDb.CreateNamed(name))
|
||||
{
|
||||
db.ServerClusters.Add(new ServerCluster {
|
||||
ClusterId="C1", Name="Readable cluster", Enterprise="zb", Site="local",
|
||||
RedundancyMode=RedundancyMode.None, CreatedBy="fixture" });
|
||||
db.NodeAcls.Add(new NodeAcl {
|
||||
NodeAclId="A1", ClusterId="C1", Principal="fixture-reader",
|
||||
ScopeKind=NodeAclScopeKind.Cluster,
|
||||
PermissionFlags=NodePermissions.Browse });
|
||||
db.SaveChanges();
|
||||
}
|
||||
var factory = RawTreeTestDb.Factory(name);
|
||||
Services.AddSingleton(factory);
|
||||
Services.AddSingleton<IAclScopeService>(
|
||||
new AclScopeService(factory,
|
||||
new RawTreeService(factory),
|
||||
new UnsTreeService(factory)));
|
||||
var list = Render<CascadingValue<Task<AuthenticationState>>>(p => p.Add(x => x.Value, state)
|
||||
.AddChildContent<ClustersList>());
|
||||
list.WaitForAssertion(() => list.Markup.ShouldContain("Readable cluster"));
|
||||
list.FindAll("a[href='/clusters/new']").Count.ShouldBe(allowed ? 1 : 0);
|
||||
var acls = Render<CascadingValue<Task<AuthenticationState>>>(p => p.Add(x => x.Value, state)
|
||||
.AddChildContent<ClusterAcls>(child => child.Add(x => x.ClusterId, "C1")));
|
||||
acls.WaitForAssertion(() => acls.Markup.ShouldContain("fixture-reader"));
|
||||
acls.Markup.Contains("re-pick the scope", StringComparison.Ordinal).ShouldBe(allowed);
|
||||
acls.FindAll("thead th").Count.ShouldBe(allowed ? 7 : 6);
|
||||
acls.FindAll("tbody tr").ShouldAllBe(row => row.QuerySelectorAll("td").Length == (allowed ? 7 : 6));
|
||||
foreach (var path in new[] { "/clusters/C1/acls/new", "/clusters/C1/acls/A1" })
|
||||
acls.FindAll($"a[href='{path}']").Count.ShouldBe(allowed ? 1 : 0, path);
|
||||
foreach (var type in new[] { typeof(NewCluster), typeof(AclEdit) })
|
||||
type.GetCustomAttributes(typeof(AuthorizeAttribute), true)
|
||||
.Cast<AuthorizeAttribute>().ShouldContain(x => x.Policy == AdminUiPolicies.ConfigEditor);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user