fix(admin-ui): align task orientation and navigation with page policies
@@ -0,0 +1,40 @@
|
||||
"""Read-only source-linked OT navigation acceptance; no operational endpoints exist."""
|
||||
import json,sys
|
||||
from pathlib import Path
|
||||
from playwright.sync_api import sync_playwright,expect
|
||||
sys.path.insert(0,'/Users/dohertj2/Desktop/ignitionoee/docs/ui-validation/router-canary')
|
||||
from browser_zoom import zoom_browser,set_browser_zoom
|
||||
out=Path(__file__).parent;origin='http://127.0.0.1:58714';result={'origin':origin,'scenes':[]}
|
||||
with sync_playwright() as p:
|
||||
for mode,width,zoom in [('desktop',1440,1),('phone',390,1),('real200',1440,2)]:
|
||||
for role in ['Viewer','Operator','Designer','Administrator']:
|
||||
with zoom_browser(p,width=width,height=600) as (ctx,worker):
|
||||
page=ctx.new_page();errors=[];page.on('pageerror',lambda e:errors.append(str(e)))
|
||||
assert page.request.get(origin+'/fixture/provenance').json()['services'].startswith('Razor only; no backend')
|
||||
response=page.goto(origin+'/?role='+role);assert response.status==200
|
||||
factor=set_browser_zoom(worker,page,zoom);expect(page.locator('h1')).to_have_count(1)
|
||||
checks=[]
|
||||
def check(n,v):checks.append({'name':n,'passed':bool(v)});assert v,n
|
||||
editor=role in ['Designer','Administrator'];admin=role=='Administrator'
|
||||
check('Page title product-qualified','OtOpcUa' in page.title())
|
||||
check('First useful task visible',page.locator('main a[href="/fleet"]').is_visible())
|
||||
for path,allowed in [('/raw',editor),('/uns',editor),('/deployments',editor),('/scripts',editor),('/role-grants',admin),('/apikeys',admin),('/admin/secrets',admin)]:
|
||||
check('Exact policy destination '+path,page.locator('nav a[href="'+path+'"]').count()==int(allowed))
|
||||
check('Read-only destinations remain discoverable',all(page.locator('nav a[href="'+x+'"]').count()==1 for x in ['/fleet','/hosts','/clusters','/reservations','/certificates','/script-log','/alerts','/alarms-historian']))
|
||||
if page.locator('.rail-toggle').is_visible():page.locator('.rail-toggle').click()
|
||||
check('Overview current location',page.locator('nav a[href="/"]').get_attribute('aria-current')=='page')
|
||||
footer=page.locator('.rail-foot');footer.locator('button').scroll_into_view_if_needed()
|
||||
check('Session footer reachable',footer.locator('button').is_visible())
|
||||
geometry=page.evaluate('''()=>({innerWidth,scrollWidth:document.documentElement.scrollWidth,dpr:devicePixelRatio,navOverflow:getComputedStyle(document.querySelector('.rail-scroll')).overflowY})''')
|
||||
check('Breakpoint-appropriate nav scrolling',geometry['navOverflow'] in ['auto','scroll'] if geometry['innerWidth']>=992 else geometry['navOverflow']=='visible')
|
||||
check('No document horizontal overflow',geometry['scrollWidth']<=geometry['innerWidth'])
|
||||
page.screenshot(path=str(out/(mode+'-'+role+'.png')))
|
||||
for path in ['/clusters/C1/namespaces','/clusters/C1/namespaces/new','/clusters/C1/namespaces/N1']:
|
||||
response=page.goto(origin+path+'?role='+role);check('Retained compatibility route '+path,response.status==200)
|
||||
expect(page.locator('h1')).to_have_count(1)
|
||||
check('No ordinary retired Namespace link '+path,page.locator('.nav-tabs a[href$="/namespaces"]').count()==0)
|
||||
check('Compatibility authoring gated '+path,page.locator('main a[href="/raw"]').count()==int(editor) and page.locator('main a[href="/uns"]').count()==int(editor))
|
||||
check('No page errors',not errors)
|
||||
result['scenes'].append({'mode':mode,'role':role,'zoom':factor,'geometry':geometry,'checks':checks,'errors':errors})
|
||||
(out/'browser-results.json').write_text(json.dumps(result,indent=2)+'\n')
|
||||
print(json.dumps({'scenes':len(result['scenes']),'checks':sum(len(s['checks'])for s in result['scenes'])}))
|
||||
@@ -0,0 +1,2 @@
|
||||
bin/
|
||||
obj/
|
||||
@@ -0,0 +1,3 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><base href="/"/>
|
||||
<link rel="stylesheet" href="_content/ZB.MOM.WW.OtOpcUa.AdminUI/lib/bootstrap/css/bootstrap.min.css"/><ThemeHead/><link rel="stylesheet" href="_content/ZB.MOM.WW.OtOpcUa.AdminUI/css/site.css"/><HeadOutlet/>
|
||||
</head><body><Router AppAssembly="typeof(App).Assembly"><Found Context="route"><RouteView RouteData="route"/></Found></Router><ThemeScripts/></body></html>
|
||||
@@ -0,0 +1,12 @@
|
||||
@page "/"
|
||||
@page "/clusters/C1/namespaces"
|
||||
@page "/clusters/C1/namespaces/new"
|
||||
@page "/clusters/C1/namespaces/N1"
|
||||
@inject NavigationManager Nav
|
||||
<MainLayout>
|
||||
<Body>
|
||||
@if (new Uri(Nav.Uri).AbsolutePath == "/") { <ZB.MOM.WW.OtOpcUa.AdminUI.Components.Pages.Home/> }
|
||||
else if (new Uri(Nav.Uri).AbsolutePath == "/clusters/C1/namespaces") { <ZB.MOM.WW.OtOpcUa.AdminUI.Components.Pages.Clusters.ClusterNamespaces ClusterId="C1"/> }
|
||||
else { <ZB.MOM.WW.OtOpcUa.AdminUI.Components.Pages.Clusters.NamespaceEdit ClusterId="C1" NamespaceId="N1"/> }
|
||||
</Body>
|
||||
</MainLayout>
|
||||
@@ -0,0 +1,6 @@
|
||||
@using Microsoft.AspNetCore.Components
|
||||
@using Microsoft.AspNetCore.Components.Routing
|
||||
@using Microsoft.AspNetCore.Components.Web
|
||||
@using Microsoft.AspNetCore.Components.Authorization
|
||||
@using ZB.MOM.WW.Theme
|
||||
@using ZB.MOM.WW.OtOpcUa.AdminUI.Components.Layout
|
||||
@@ -0,0 +1 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk.Web"><PropertyGroup><TargetFramework>net10.0</TargetFramework><Nullable>enable</Nullable><ImplicitUsings>enable</ImplicitUsings></PropertyGroup><ItemGroup><ProjectReference Include="../../../../src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/ZB.MOM.WW.OtOpcUa.AdminUI.csproj" /></ItemGroup></Project>
|
||||
@@ -0,0 +1,25 @@
|
||||
using System.Security.Claims;
|
||||
using Microsoft.AspNetCore.Components.Authorization;
|
||||
using ZB.MOM.WW.OtOpcUa.Security.Auth;
|
||||
var builder=WebApplication.CreateBuilder(args);
|
||||
builder.WebHost.UseStaticWebAssets();
|
||||
builder.Services.AddRazorComponents().AddInteractiveServerComponents();
|
||||
builder.Services.AddHttpContextAccessor();
|
||||
builder.Services.AddCascadingAuthenticationState();
|
||||
builder.Services.AddScoped<AuthenticationStateProvider,FixtureAuthentication>();
|
||||
builder.Services.AddAuthorization(o=>{
|
||||
o.AddPolicy(AdminUiPolicies.AuthenticatedRead,p=>p.RequireAuthenticatedUser());
|
||||
o.AddPolicy(AdminUiPolicies.ConfigEditor,p=>p.RequireRole("Administrator","Designer"));
|
||||
o.AddPolicy(AdminUiPolicies.FleetAdmin,p=>p.RequireRole("Administrator"));
|
||||
o.AddPolicy(ZB.MOM.WW.Secrets.Ui.SecretsAuthorization.ManagePolicy,p=>p.RequireRole("Administrator"));
|
||||
});
|
||||
var app=builder.Build();app.UseAntiforgery();app.MapStaticAssets();
|
||||
app.MapGet("/fixture/provenance",()=>new{purpose="Loopback read-only OT navigation fixture",services="Razor only; no backend services, data providers or action endpoints"});
|
||||
app.MapRazorComponents<NavCanary.Components.App>().AddInteractiveServerRenderMode();app.Run();
|
||||
sealed class FixtureAuthentication(IHttpContextAccessor accessor):AuthenticationStateProvider {
|
||||
public override Task<AuthenticationState> GetAuthenticationStateAsync(){
|
||||
var role=accessor.HttpContext?.Request.Query["role"].ToString()??"Viewer";
|
||||
if(role is not ("Viewer" or "Operator" or "Designer" or "Administrator"))role="Viewer";
|
||||
return Task.FromResult(new AuthenticationState(new ClaimsPrincipal(new ClaimsIdentity([new Claim(ClaimTypes.Name,"Synthetic "+role),new Claim(ClaimTypes.Role,role)],"fixture"))));
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 76 KiB |
|
After Width: | Height: | Size: 75 KiB |
|
After Width: | Height: | Size: 68 KiB |
|
After Width: | Height: | Size: 67 KiB |
@@ -0,0 +1,8 @@
|
||||
Traceback (most recent call last):
|
||||
File "/Users/dohertj2/Desktop/OtOpcUa/docs/ui-consistency/ot04-05/browser.py", line 29, in <module>
|
||||
check('Independent nav scroll enabled',geometry['navOverflow'] in ['auto','scroll'])
|
||||
~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
File "/Users/dohertj2/Desktop/OtOpcUa/docs/ui-consistency/ot04-05/browser.py", line 17, in check
|
||||
def check(n,v):checks.append({'name':n,'passed':bool(v)});assert v,n
|
||||
^
|
||||
AssertionError: Independent nav scroll enabled
|
||||
@@ -0,0 +1 @@
|
||||
{"scenes": 12, "checks": 288}
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"ownedFixtureStopped": true,
|
||||
"loopback58714Closed": true,
|
||||
"otherFixturesTouched": false
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
6 passed
|
||||
@@ -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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.Commons -> /tmp/ot04-05-artifacts/bin/ZB.MOM.WW.OtOpcUa.Commons/debug/ZB.MOM.WW.OtOpcUa.Commons.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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: 18, Skipped: 0, Total: 18, Duration: 554 ms - ZB.MOM.WW.OtOpcUa.AdminUI.Tests.dll (net10.0)
|
||||
@@ -0,0 +1,139 @@
|
||||
|
||||
Determining projects to restore...
|
||||
Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.AbCip.Contracts/ZB.MOM.WW.OtOpcUa.Driver.AbCip.Contracts.csproj (in 58 ms).
|
||||
Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.FOCAS.Contracts/ZB.MOM.WW.OtOpcUa.Driver.FOCAS.Contracts.csproj (in 58 ms).
|
||||
Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Contracts/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Contracts.csproj (in 59 ms).
|
||||
Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Calculation.Contracts/ZB.MOM.WW.OtOpcUa.Driver.Calculation.Contracts.csproj (in 51 ms).
|
||||
Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.S7.Contracts/ZB.MOM.WW.OtOpcUa.Driver.S7.Contracts.csproj (in 58 ms).
|
||||
Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.Contracts/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.Contracts.csproj (in 0.8 ms).
|
||||
Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.Contracts/ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.Contracts.csproj (in 0.7 ms).
|
||||
Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Ab.Transport/ZB.MOM.WW.OtOpcUa.Driver.Ab.Transport.csproj (in 151 ms).
|
||||
Restored /Users/dohertj2/Desktop/OtOpcUa/src/Core/ZB.MOM.WW.OtOpcUa.Core.Scripting.Abstractions/ZB.MOM.WW.OtOpcUa.Core.Scripting.Abstractions.csproj (in 151 ms).
|
||||
Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Transport/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Transport.csproj (in 152 ms).
|
||||
Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.MTConnect.Contracts/ZB.MOM.WW.OtOpcUa.Driver.MTConnect.Contracts.csproj (in 1 ms).
|
||||
Restored /Users/dohertj2/Desktop/OtOpcUa/src/Core/ZB.MOM.WW.OtOpcUa.Core.Abstractions/ZB.MOM.WW.OtOpcUa.Core.Abstractions.csproj (in 0.7 ms).
|
||||
Restored /Users/dohertj2/Desktop/OtOpcUa/src/Core/ZB.MOM.WW.OtOpcUa.Core.AlarmHistorian/ZB.MOM.WW.OtOpcUa.Core.AlarmHistorian.csproj (in 20 ms).
|
||||
Restored /Users/dohertj2/Desktop/OtOpcUa/src/Tooling/ZB.MOM.WW.OtOpcUa.Analyzers/ZB.MOM.WW.OtOpcUa.Analyzers.csproj (in 192 ms).
|
||||
Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Sql.Browser/ZB.MOM.WW.OtOpcUa.Driver.Sql.Browser.csproj (in 193 ms).
|
||||
Restored /Users/dohertj2/Desktop/OtOpcUa/src/Core/ZB.MOM.WW.OtOpcUa.Core.ScriptedAlarms/ZB.MOM.WW.OtOpcUa.Core.ScriptedAlarms.csproj (in 61 ms).
|
||||
Restored /Users/dohertj2/Desktop/OtOpcUa/src/Core/ZB.MOM.WW.OtOpcUa.Core/ZB.MOM.WW.OtOpcUa.Core.csproj (in 219 ms).
|
||||
Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Contracts/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Contracts.csproj (in 0.7 ms).
|
||||
Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Session/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Session.csproj (in 31 ms).
|
||||
Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.csproj (in 227 ms).
|
||||
Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.MTConnect/ZB.MOM.WW.OtOpcUa.Driver.MTConnect.csproj (in 120 ms).
|
||||
Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.AbCip/ZB.MOM.WW.OtOpcUa.Driver.AbCip.csproj (in 137 ms).
|
||||
Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.FOCAS/ZB.MOM.WW.OtOpcUa.Driver.FOCAS.csproj (in 219 ms).
|
||||
Restored /Users/dohertj2/Desktop/OtOpcUa/src/Server/ZB.MOM.WW.OtOpcUa.ControlPlane/ZB.MOM.WW.OtOpcUa.ControlPlane.csproj (in 137 ms).
|
||||
Restored /Users/dohertj2/Desktop/OtOpcUa/src/Server/ZB.MOM.WW.OtOpcUa.OpcUaServer/ZB.MOM.WW.OtOpcUa.OpcUaServer.csproj (in 32 ms).
|
||||
Restored /Users/dohertj2/Desktop/OtOpcUa/src/Server/ZB.MOM.WW.OtOpcUa.Security/ZB.MOM.WW.OtOpcUa.Security.csproj (in 59 ms).
|
||||
Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.csproj (in 137 ms).
|
||||
Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Browser/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Browser.csproj (in 3 ms).
|
||||
Restored /Users/dohertj2/Desktop/OtOpcUa/src/Core/ZB.MOM.WW.OtOpcUa.Core.Scripting/ZB.MOM.WW.OtOpcUa.Core.Scripting.csproj (in 6 ms).
|
||||
Restored /Users/dohertj2/Desktop/OtOpcUa/src/Core/ZB.MOM.WW.OtOpcUa.Core.VirtualTags/ZB.MOM.WW.OtOpcUa.Core.VirtualTags.csproj (in 3 ms).
|
||||
Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Sql.Contracts/ZB.MOM.WW.OtOpcUa.Driver.Sql.Contracts.csproj (in 4 ms).
|
||||
Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Contracts/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Contracts.csproj (in 4 ms).
|
||||
Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Browser/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Browser.csproj (in 2 ms).
|
||||
Restored /Users/dohertj2/Desktop/OtOpcUa/src/Server/ZB.MOM.WW.OtOpcUa.Runtime/ZB.MOM.WW.OtOpcUa.Runtime.csproj (in 54 ms).
|
||||
Restored /Users/dohertj2/Desktop/OtOpcUa/src/Core/ZB.MOM.WW.OtOpcUa.Commons/ZB.MOM.WW.OtOpcUa.Commons.csproj (in 12 ms).
|
||||
Restored /Users/dohertj2/Desktop/OtOpcUa/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/ZB.MOM.WW.OtOpcUa.AdminUI.csproj (in 140 ms).
|
||||
Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Addressing/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Addressing.csproj (in 6 ms).
|
||||
Restored /Users/dohertj2/Desktop/OtOpcUa/src/Core/ZB.MOM.WW.OtOpcUa.Cluster/ZB.MOM.WW.OtOpcUa.Cluster.csproj (in 15 ms).
|
||||
Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Contracts/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Contracts.csproj (in 2 ms).
|
||||
Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Browser/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Browser.csproj (in 3 ms).
|
||||
Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.Contracts/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.Contracts.csproj (in 0.9 ms).
|
||||
Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Sql/ZB.MOM.WW.OtOpcUa.Driver.Sql.csproj (in 13 ms).
|
||||
Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Galaxy/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.csproj (in 4 ms).
|
||||
Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.csproj (in 7 ms).
|
||||
Restored /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Sql.Dialect/ZB.MOM.WW.OtOpcUa.Driver.Sql.Dialect.csproj (in 28 ms).
|
||||
Restored /Users/dohertj2/Desktop/OtOpcUa/src/Core/ZB.MOM.WW.OtOpcUa.Configuration/ZB.MOM.WW.OtOpcUa.Configuration.csproj (in 61 ms).
|
||||
Restored /Users/dohertj2/Desktop/OtOpcUa/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/ZB.MOM.WW.OtOpcUa.AdminUI.Tests.csproj (in 309 ms).
|
||||
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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.Commons -> /tmp/ot04-05-artifacts/bin/ZB.MOM.WW.OtOpcUa.Commons/debug/ZB.MOM.WW.OtOpcUa.Commons.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.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.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.Cluster -> /tmp/ot04-05-artifacts/bin/ZB.MOM.WW.OtOpcUa.Cluster/debug/ZB.MOM.WW.OtOpcUa.Cluster.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.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.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.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.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.MTConnect -> /tmp/ot04-05-artifacts/bin/ZB.MOM.WW.OtOpcUa.Driver.MTConnect/debug/ZB.MOM.WW.OtOpcUa.Driver.MTConnect.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.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.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.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.27] ZB.MOM.WW.OtOpcUa.AdminUI.Tests.SecretsNavLinkTests.The_gate_is_the_pages_own_policy_constant_not_a_role_or_a_literal [FAIL]
|
||||
[xUnit.net 00:00:01.27] ZB.MOM.WW.OtOpcUa.AdminUI.Tests.SecretsNavLinkTests.The_rail_links_to_the_secrets_page [FAIL]
|
||||
[xUnit.net 00:00:01.27] ZB.MOM.WW.OtOpcUa.AdminUI.Tests.SecretsNavLinkTests.The_secrets_link_is_nested_inside_the_authorize_view [FAIL]
|
||||
Failed ZB.MOM.WW.OtOpcUa.AdminUI.Tests.SecretsNavLinkTests.The_gate_is_the_pages_own_policy_constant_not_a_role_or_a_literal [33 ms]
|
||||
Error Message:
|
||||
Shouldly.ShouldAssertException : dir
|
||||
should not be null but was
|
||||
|
||||
Additional Info:
|
||||
could not locate the repository root (no ZB.MOM.WW.OtOpcUa.slnx above the test binary)
|
||||
Stack Trace:
|
||||
at ZB.MOM.WW.OtOpcUa.AdminUI.Tests.SecretsNavLinkTests.ReadMainLayoutSource() in /Users/dohertj2/Desktop/OtOpcUa/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/SecretsNavLinkTests.cs:line 31
|
||||
at ZB.MOM.WW.OtOpcUa.AdminUI.Tests.SecretsNavLinkTests.The_gate_is_the_pages_own_policy_constant_not_a_role_or_a_literal() in /Users/dohertj2/Desktop/OtOpcUa/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/SecretsNavLinkTests.cs:line 81
|
||||
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.SecretsNavLinkTests.The_rail_links_to_the_secrets_page [< 1 ms]
|
||||
Error Message:
|
||||
Shouldly.ShouldAssertException : dir
|
||||
should not be null but was
|
||||
|
||||
Additional Info:
|
||||
could not locate the repository root (no ZB.MOM.WW.OtOpcUa.slnx above the test binary)
|
||||
Stack Trace:
|
||||
at ZB.MOM.WW.OtOpcUa.AdminUI.Tests.SecretsNavLinkTests.ReadMainLayoutSource() in /Users/dohertj2/Desktop/OtOpcUa/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/SecretsNavLinkTests.cs:line 31
|
||||
at ZB.MOM.WW.OtOpcUa.AdminUI.Tests.SecretsNavLinkTests.The_rail_links_to_the_secrets_page() in /Users/dohertj2/Desktop/OtOpcUa/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/SecretsNavLinkTests.cs:line 42
|
||||
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.SecretsNavLinkTests.The_secrets_link_is_nested_inside_the_authorize_view [< 1 ms]
|
||||
Error Message:
|
||||
Shouldly.ShouldAssertException : dir
|
||||
should not be null but was
|
||||
|
||||
Additional Info:
|
||||
could not locate the repository root (no ZB.MOM.WW.OtOpcUa.slnx above the test binary)
|
||||
Stack Trace:
|
||||
at ZB.MOM.WW.OtOpcUa.AdminUI.Tests.SecretsNavLinkTests.ReadMainLayoutSource() in /Users/dohertj2/Desktop/OtOpcUa/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/SecretsNavLinkTests.cs:line 31
|
||||
at ZB.MOM.WW.OtOpcUa.AdminUI.Tests.SecretsNavLinkTests.The_secrets_link_is_nested_inside_the_authorize_view() in /Users/dohertj2/Desktop/OtOpcUa/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/SecretsNavLinkTests.cs:line 59
|
||||
at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
|
||||
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
|
||||
|
||||
Failed! - Failed: 3, Passed: 8, Skipped: 0, Total: 11, Duration: 188 ms - ZB.MOM.WW.OtOpcUa.AdminUI.Tests.dll (net10.0)
|
||||
@@ -0,0 +1,94 @@
|
||||
|
||||
ZB.MOM.WW.OtOpcUa.Analyzers -> /Users/dohertj2/Desktop/OtOpcUa/src/Tooling/ZB.MOM.WW.OtOpcUa.Analyzers/bin/Debug/netstandard2.0/ZB.MOM.WW.OtOpcUa.Analyzers.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.Calculation.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Calculation.Contracts/bin/Debug/net10.0/ZB.MOM.WW.OtOpcUa.Driver.Calculation.Contracts.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.Modbus.Addressing -> /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Addressing/bin/Debug/net10.0/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Addressing.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.Ab.Transport -> /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Ab.Transport/bin/Debug/net10.0/ZB.MOM.WW.OtOpcUa.Driver.Ab.Transport.dll
|
||||
ZB.MOM.WW.OtOpcUa.Core.Abstractions -> /Users/dohertj2/Desktop/OtOpcUa/src/Core/ZB.MOM.WW.OtOpcUa.Core.Abstractions/bin/Debug/net10.0/ZB.MOM.WW.OtOpcUa.Core.Abstractions.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.S7.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.S7.Contracts/bin/Debug/net10.0/ZB.MOM.WW.OtOpcUa.Driver.S7.Contracts.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.Contracts/bin/Debug/net10.0/ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.Contracts.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Contracts/bin/Debug/net10.0/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Contracts.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.FOCAS.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.FOCAS.Contracts/bin/Debug/net10.0/ZB.MOM.WW.OtOpcUa.Driver.FOCAS.Contracts.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Contracts/bin/Debug/net10.0/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Contracts.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.Contracts/bin/Debug/net10.0/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.Contracts.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.MTConnect.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.MTConnect.Contracts/bin/Debug/net10.0/ZB.MOM.WW.OtOpcUa.Driver.MTConnect.Contracts.dll
|
||||
ZB.MOM.WW.OtOpcUa.Core.Scripting.Abstractions -> /Users/dohertj2/Desktop/OtOpcUa/src/Core/ZB.MOM.WW.OtOpcUa.Core.Scripting.Abstractions/bin/Debug/net10.0/ZB.MOM.WW.OtOpcUa.Core.Scripting.Abstractions.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.Sql.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Sql.Contracts/bin/Debug/net10.0/ZB.MOM.WW.OtOpcUa.Driver.Sql.Contracts.dll
|
||||
ZB.MOM.WW.OtOpcUa.Commons -> /Users/dohertj2/Desktop/OtOpcUa/src/Core/ZB.MOM.WW.OtOpcUa.Commons/bin/Debug/net10.0/ZB.MOM.WW.OtOpcUa.Commons.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.Contracts/bin/Debug/net10.0/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.Contracts.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.AbCip.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.AbCip.Contracts/bin/Debug/net10.0/ZB.MOM.WW.OtOpcUa.Driver.AbCip.Contracts.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Contracts/bin/Debug/net10.0/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Contracts.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Browser -> /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Browser/bin/Debug/net10.0/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Browser.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Session -> /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Session/bin/Debug/net10.0/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Session.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Transport -> /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Transport/bin/Debug/net10.0/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Transport.dll
|
||||
ZB.MOM.WW.OtOpcUa.Core.AlarmHistorian -> /Users/dohertj2/Desktop/OtOpcUa/src/Core/ZB.MOM.WW.OtOpcUa.Core.AlarmHistorian/bin/Debug/net10.0/ZB.MOM.WW.OtOpcUa.Core.AlarmHistorian.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.Sql.Dialect -> /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Sql.Dialect/bin/Debug/net10.0/ZB.MOM.WW.OtOpcUa.Driver.Sql.Dialect.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Browser -> /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Browser/bin/Debug/net10.0/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Browser.dll
|
||||
ZB.MOM.WW.OtOpcUa.Cluster -> /Users/dohertj2/Desktop/OtOpcUa/src/Core/ZB.MOM.WW.OtOpcUa.Cluster/bin/Debug/net10.0/ZB.MOM.WW.OtOpcUa.Cluster.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.Modbus.Contracts -> /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Contracts/bin/Debug/net10.0/ZB.MOM.WW.OtOpcUa.Driver.Modbus.Contracts.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Browser -> /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Browser/bin/Debug/net10.0/ZB.MOM.WW.OtOpcUa.Driver.Mqtt.Browser.dll
|
||||
ZB.MOM.WW.OtOpcUa.Core.Scripting -> /Users/dohertj2/Desktop/OtOpcUa/src/Core/ZB.MOM.WW.OtOpcUa.Core.Scripting/bin/Debug/net10.0/ZB.MOM.WW.OtOpcUa.Core.Scripting.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.Sql.Browser -> /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Sql.Browser/bin/Debug/net10.0/ZB.MOM.WW.OtOpcUa.Driver.Sql.Browser.dll
|
||||
ZB.MOM.WW.OtOpcUa.Core.ScriptedAlarms -> /Users/dohertj2/Desktop/OtOpcUa/src/Core/ZB.MOM.WW.OtOpcUa.Core.ScriptedAlarms/bin/Debug/net10.0/ZB.MOM.WW.OtOpcUa.Core.ScriptedAlarms.dll
|
||||
ZB.MOM.WW.OtOpcUa.Core.VirtualTags -> /Users/dohertj2/Desktop/OtOpcUa/src/Core/ZB.MOM.WW.OtOpcUa.Core.VirtualTags/bin/Debug/net10.0/ZB.MOM.WW.OtOpcUa.Core.VirtualTags.dll
|
||||
ZB.MOM.WW.OtOpcUa.Configuration -> /Users/dohertj2/Desktop/OtOpcUa/src/Core/ZB.MOM.WW.OtOpcUa.Configuration/bin/Debug/net10.0/ZB.MOM.WW.OtOpcUa.Configuration.dll
|
||||
ZB.MOM.WW.OtOpcUa.Core -> /Users/dohertj2/Desktop/OtOpcUa/src/Core/ZB.MOM.WW.OtOpcUa.Core/bin/Debug/net10.0/ZB.MOM.WW.OtOpcUa.Core.dll
|
||||
ZB.MOM.WW.OtOpcUa.Security -> /Users/dohertj2/Desktop/OtOpcUa/src/Server/ZB.MOM.WW.OtOpcUa.Security/bin/Debug/net10.0/ZB.MOM.WW.OtOpcUa.Security.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.Sql -> /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Sql/bin/Debug/net10.0/ZB.MOM.WW.OtOpcUa.Driver.Sql.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.Heidenhain -> /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain/bin/Debug/net10.0/ZB.MOM.WW.OtOpcUa.Driver.Heidenhain.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient -> /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient/bin/Debug/net10.0/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.MTConnect -> /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.MTConnect/bin/Debug/net10.0/ZB.MOM.WW.OtOpcUa.Driver.MTConnect.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.Galaxy -> /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Galaxy/bin/Debug/net10.0/ZB.MOM.WW.OtOpcUa.Driver.Galaxy.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.AbCip -> /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.AbCip/bin/Debug/net10.0/ZB.MOM.WW.OtOpcUa.Driver.AbCip.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.AbLegacy -> /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy/bin/Debug/net10.0/ZB.MOM.WW.OtOpcUa.Driver.AbLegacy.dll
|
||||
ZB.MOM.WW.OtOpcUa.ControlPlane -> /Users/dohertj2/Desktop/OtOpcUa/src/Server/ZB.MOM.WW.OtOpcUa.ControlPlane/bin/Debug/net10.0/ZB.MOM.WW.OtOpcUa.ControlPlane.dll
|
||||
ZB.MOM.WW.OtOpcUa.Driver.FOCAS -> /Users/dohertj2/Desktop/OtOpcUa/src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.FOCAS/bin/Debug/net10.0/ZB.MOM.WW.OtOpcUa.Driver.FOCAS.dll
|
||||
ZB.MOM.WW.OtOpcUa.OpcUaServer -> /Users/dohertj2/Desktop/OtOpcUa/src/Server/ZB.MOM.WW.OtOpcUa.OpcUaServer/bin/Debug/net10.0/ZB.MOM.WW.OtOpcUa.OpcUaServer.dll
|
||||
ZB.MOM.WW.OtOpcUa.Runtime -> /Users/dohertj2/Desktop/OtOpcUa/src/Server/ZB.MOM.WW.OtOpcUa.Runtime/bin/Debug/net10.0/ZB.MOM.WW.OtOpcUa.Runtime.dll
|
||||
ZB.MOM.WW.OtOpcUa.AdminUI -> /Users/dohertj2/Desktop/OtOpcUa/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/bin/Debug/net10.0/ZB.MOM.WW.OtOpcUa.AdminUI.dll
|
||||
ZB.MOM.WW.OtOpcUa.AdminUI.Tests -> /Users/dohertj2/Desktop/OtOpcUa/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/bin/Debug/net10.0/ZB.MOM.WW.OtOpcUa.AdminUI.Tests.dll
|
||||
Test run for /Users/dohertj2/Desktop/OtOpcUa/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/bin/Debug/net10.0/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.17] ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.NavigationPolicyRenderTests.Navigation_UsesDestinationPolicies(editor: True, administrator: False) [FAIL]
|
||||
[xUnit.net 00:00:01.18] ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.NavigationPolicyRenderTests.Navigation_UsesDestinationPolicies(editor: False, administrator: False) [FAIL]
|
||||
[xUnit.net 00:00:01.18] ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.NavigationPolicyRenderTests.RetiredNamespaces_AreAbsentFromOrdinaryClusterNavigation [FAIL]
|
||||
Failed ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.NavigationPolicyRenderTests.Navigation_UsesDestinationPolicies(editor: True, administrator: False) [176 ms]
|
||||
Error Message:
|
||||
Shouldly.ShouldAssertException : cut.FindAll($"a[href='{path}']").Count
|
||||
should be
|
||||
0
|
||||
but was
|
||||
1
|
||||
|
||||
Additional Info:
|
||||
/role-grants
|
||||
Stack Trace:
|
||||
at ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.NavigationPolicyRenderTests.Navigation_UsesDestinationPolicies(Boolean editor, Boolean administrator) in /Users/dohertj2/Desktop/OtOpcUa/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/Pages/NavigationPolicyRenderTests.cs:line 35
|
||||
at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
|
||||
at System.Reflection.MethodBaseInvoker.InvokeDirectByRefWithFewArgs(Object obj, Span`1 copyOfArgs, BindingFlags invokeAttr)
|
||||
Failed ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.NavigationPolicyRenderTests.Navigation_UsesDestinationPolicies(editor: False, administrator: False) [3 ms]
|
||||
Error Message:
|
||||
Shouldly.ShouldAssertException : cut.FindAll($"a[href='{path}']").Count
|
||||
should be
|
||||
0
|
||||
but was
|
||||
1
|
||||
|
||||
Additional Info:
|
||||
/raw
|
||||
Stack Trace:
|
||||
at ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.NavigationPolicyRenderTests.Navigation_UsesDestinationPolicies(Boolean editor, Boolean administrator) in /Users/dohertj2/Desktop/OtOpcUa/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/Pages/NavigationPolicyRenderTests.cs:line 33
|
||||
at InvokeStub_NavigationPolicyRenderTests.Navigation_UsesDestinationPolicies(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.RetiredNamespaces_AreAbsentFromOrdinaryClusterNavigation [4 ms]
|
||||
Error Message:
|
||||
Shouldly.ShouldAssertException : cut.FindAll("a[href$='/namespaces']")
|
||||
should be empty but had
|
||||
1
|
||||
item and was
|
||||
[AngleSharp.Html.Dom.HtmlAnchorElement (19467089)]
|
||||
Stack Trace:
|
||||
at ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages.NavigationPolicyRenderTests.RetiredNamespaces_AreAbsentFromOrdinaryClusterNavigation() in /Users/dohertj2/Desktop/OtOpcUa/tests/Server/ZB.MOM.WW.OtOpcUa.AdminUI.Tests/Pages/NavigationPolicyRenderTests.cs:line 42
|
||||
at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
|
||||
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
|
||||
|
||||
Failed! - Failed: 3, Passed: 1, Skipped: 0, Total: 4, Duration: 194 ms - ZB.MOM.WW.OtOpcUa.AdminUI.Tests.dll (net10.0)
|
||||
@@ -0,0 +1,37 @@
|
||||
[
|
||||
{
|
||||
"path": "src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Layout/MainLayout.razor",
|
||||
"beforeSha256": "7785711c6c2f06a2d8ab654674b9bf6a948325e68c0eb7db96e49859ae290088",
|
||||
"afterSha256": "f3c32fcb6f4afaf57486c0868a34264dd30c1be58bf57c2514e7c3ef324e9cee",
|
||||
"routesAndPagePolicyDirectivesUnchanged": true,
|
||||
"existingCSharpUnchanged": true
|
||||
},
|
||||
{
|
||||
"path": "src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Shared/ClusterNav.razor",
|
||||
"beforeSha256": "9911aee91559b83053ffc27f3f488e7c2071bd1e08679b910e21d8f27fee4cc2",
|
||||
"afterSha256": "1c44d92a17c27cd8bd140b0a1d77dd8f94ad7185c88ec6d41ed9039269aac8c3",
|
||||
"routesAndPagePolicyDirectivesUnchanged": true,
|
||||
"existingCSharpUnchanged": true
|
||||
},
|
||||
{
|
||||
"path": "src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/Home.razor",
|
||||
"beforeSha256": "45144ddbcfabcd4fe2187eef615e200f17cd354f4d9fbc0438849a1f1195cfd9",
|
||||
"afterSha256": "0ca1d6ab6d67dd2e0d453e05b6b5a61b8b6a701f096eb3e0b2f25f32cd5ba98e",
|
||||
"routesAndPagePolicyDirectivesUnchanged": true,
|
||||
"existingCSharpUnchanged": true
|
||||
},
|
||||
{
|
||||
"path": "src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/Clusters/ClusterNamespaces.razor",
|
||||
"beforeSha256": "d786e68d86ce81e0d052fbbef217d3021ad822b77d11a5e8d3a6cc7f11cba561",
|
||||
"afterSha256": "2bf016845805167a06c53280c8672fbba49d607071571c0f26cb391553d1fae6",
|
||||
"routesAndPagePolicyDirectivesUnchanged": true,
|
||||
"existingCSharpUnchanged": true
|
||||
},
|
||||
{
|
||||
"path": "src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/Clusters/NamespaceEdit.razor",
|
||||
"beforeSha256": "7fc647595d296a2bb8af4a0784d64f6224a56872d2f44798b7d5a3e4809a6ccc",
|
||||
"afterSha256": "15ed7b93351f78d01572b44537b98d81eac384fa0cfc36250461b06fc6ed11d3",
|
||||
"routesAndPagePolicyDirectivesUnchanged": true,
|
||||
"existingCSharpUnchanged": true
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,44 @@
|
||||
[
|
||||
{
|
||||
"width": 1440,
|
||||
"path": "/",
|
||||
"h1": "OtOpcUa",
|
||||
"h2": "OPERATIONS",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"width": 1440,
|
||||
"path": "/clusters/C1/namespaces",
|
||||
"h1": "Retired namespaces \u00b7 C1",
|
||||
"h2": "NAMESPACES ARE RETIRED IN V3",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"width": 1440,
|
||||
"path": "/clusters/C1/namespaces/N1",
|
||||
"h1": "Retired namespaces \u00b7 C1",
|
||||
"h2": "NAMESPACES ARE RETIRED IN V3",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"width": 390,
|
||||
"path": "/",
|
||||
"h1": "OtOpcUa",
|
||||
"h2": "OPERATIONS",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"width": 390,
|
||||
"path": "/clusters/C1/namespaces",
|
||||
"h1": "Retired namespaces \u00b7 C1",
|
||||
"h2": "NAMESPACES ARE RETIRED IN V3",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"width": 390,
|
||||
"path": "/clusters/C1/namespaces/N1",
|
||||
"h1": "Retired namespaces \u00b7 C1",
|
||||
"h2": "NAMESPACES ARE RETIRED IN V3",
|
||||
"passed": true
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,18 @@
|
||||
"""Narrow heading/copy follow-up on the existing synthetic fixture."""
|
||||
from pathlib import Path
|
||||
import json
|
||||
from playwright.sync_api import sync_playwright,expect
|
||||
out=Path(__file__).parent;results=[]
|
||||
with sync_playwright() as p:
|
||||
b=p.chromium.launch(channel='chromium')
|
||||
for width in [1440,390]:
|
||||
page=b.new_page(viewport={'width':width,'height':900})
|
||||
for path in ['/','/clusters/C1/namespaces','/clusters/C1/namespaces/N1']:
|
||||
response=page.goto('http://127.0.0.1:58714'+path+'?role=Designer');assert response.status==200
|
||||
expect(page.locator('h1')).to_have_count(1);expect(page.locator('h2.panel-head')).to_have_count(1);expect(page.locator('.page-head h1')).to_have_count(1)
|
||||
assert 'placeholder' not in page.locator('main').inner_text()
|
||||
if path.endswith('/namespaces'):assert 'Existing namespace links remain available for reference.' in page.locator('main').inner_text()
|
||||
results.append({'width':width,'path':path,'h1':page.locator('h1').inner_text(),'h2':page.locator('h2.panel-head').inner_text(),'passed':True})
|
||||
page.close()
|
||||
b.close()
|
||||
(out/'final-render.json').write_text(json.dumps(results,indent=2)+'\n');print(len(results),'passed')
|
||||
|
After Width: | Height: | Size: 33 KiB |
|
After Width: | Height: | Size: 32 KiB |
|
After Width: | Height: | Size: 33 KiB |
|
After Width: | Height: | Size: 33 KiB |
|
After Width: | Height: | Size: 3.8 KiB |
|
After Width: | Height: | Size: 4.1 KiB |
|
After Width: | Height: | Size: 9.2 KiB |
|
After Width: | Height: | Size: 9.2 KiB |
@@ -0,0 +1,30 @@
|
||||
# OT04–05 navigation and orientation
|
||||
|
||||
The six assigned existing files and new NavigationPolicyRenderTests complete the bounded navigation/Home/Namespace compatibility slice. Existing routes, route authorization attributes, C# page parameter declarations and the MainLayout session/footer/body are unchanged (source-guard.json). No endpoint, data-loading, model, configuration, operation or deployment behavior changed.
|
||||
|
||||
## Result
|
||||
|
||||
- MainLayout enables canonical Theme1.0.1 ScrollNav and groups existing destinations into Operations, Configuration, Scripting, Administration and Secrets. ConfigEditor gates Raw/UNS/Scripts/Deployments; FleetAdmin gates role grants/API keys; the package's own ManagePolicy independently gates Secrets. Read-only routes remain available, including certificates, reservations and script log. Gates use exact destination policies, not inferred role strings.
|
||||
- Home supplies a useful Fleet status action and existing host/cluster orientation, with authoring/deployment links only for ConfigEditor. It adds no aggregate data, environment guess or status metric.
|
||||
- ClusterNav removes the ordinary retired Namespace destination and adds aria-current for its four existing readable destinations. Namespace list/new/edit URLs remain; both compatibility pages now have h1 and product title, plus real Raw/UNS links only for ConfigEditor.
|
||||
- SecretsNavLinkTests identifies the Secrets-specific policy wrapper rather than assuming the first AuthorizeView. Its source-root lookup now starts at the compiled test's CallerFilePath, supporting isolated artifacts without changing assertions. Stale remarks claiming no bUnit were corrected.
|
||||
|
||||
## Verification
|
||||
|
||||
Meaningful root-authored NavigationPolicyRenderTests baseline: 3 failures/1 pass, retained evidence/red.log. Added Home/compatibility role cases and an independent Secrets-policy case. The first isolated-artifacts run exposed the old sourceguard's testbinary ancestry assumption (3 source-root failures/8 passes); fixed source lookup, retained raw evidence. No bypass, skip or removed assertion.
|
||||
|
||||
```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~SecretsNavLinkTests|FullyQualifiedName~PageAuthorizationGuardTests|FullyQualifiedName~DeleteConfirmRenderTests'
|
||||
```
|
||||
|
||||
**18/18 pass, zero skips**, including original delete confirmation tests. No new build warnings in this checkpoint. Full suite belongs to the coordinated integration freeze; this report does not claim it ran here.
|
||||
|
||||
`canary/` is a separate, source-referencing Razor host with its own route assembly, synthetic authenticated principals and the real role-policy mapping. It registers no operational/data providers. Actual application route attributes remain protected by the independent reflection guards; fixture deep-link rendering is markup validation, not an authentication endpoint test. The fixture maps only its explicit Home/three compatibility routes and read-only provenance endpoint; no real service action endpoint exists.
|
||||
|
||||
**12 actual Chromium scenes/288 assertions**: Viewer, Operator, Designer and Administrator at 1440px, 390px, and real 200% browser zoom (720px layout viewport/DPR2). Each verifies one h1, product-qualified title, first useful Fleet action before opening navigation, exact policy link presence/absence, retained readable links, current Overview location, reachable session footer, breakpoint-appropriate scrolling, no horizontal overflow, all three retained compatibility routes with gated links and no retired ordinary tab, no page errors. `browser-results.json`, twelve screenshots and `browser.py` retain proof. The script imports ignitionoee's existing loopback-only real browser zoom helper; this explicit harness dependency does not affect production.
|
||||
|
||||
The first browser run incorrectly expected independent ScrollNav scrolling on phones. Canonical layout intentionally uses page scrolling below 992px; corrected the assertion to match the documented shared behavior, retaining the initial log. No theme override or local CSS workaround was introduced. No state persistence/business operations were exercised.
|
||||
|
||||
## Scope and limitations
|
||||
|
||||
The old Namespace pages continue to describe their compatibility purpose; no retired editor behavior was reinstated. Policy checks affect discoverability only and preserve endpoint/route security. Cluster overview action links are a different agent's tested slice. This checkpoint does not claim operational fleet data, live roles against an identity provider, or a deployed host acceptance. Parent review accepted the separate Secrets section as a taxonomy refinement of the planned four groups: it remains independently governed by the package policy rather than nested under FleetAdmin. Final copy/heading corrections use canonical page-head/h2.panel-head and concise compatibility wording. A narrow final render passed all six Home/list/edit scenes at1440/390 after these markup-only corrections (final-render.json), checking h1/page-head/h2.panel-head and final compatibility copy. Fixture shutdown and exact scoped commit follow parent review. No ledger/gate edits.
|
||||
@@ -12,42 +12,42 @@
|
||||
Accent as an inline --accent on the shell root, which would silently beat any
|
||||
future scheme-level override (the exact defect ScadaBridge hit). A real brand
|
||||
accent belongs in site.css :root, not here. *@
|
||||
<ThemeShell Product="OtOpcUa">
|
||||
<ThemeShell Product="OtOpcUa" ScrollNav="true">
|
||||
<Nav>
|
||||
<NavRailSection Title="Navigation" Key="nav">
|
||||
<NavRailSection Title="Operations" Key="operations">
|
||||
<NavRailItem Href="/" Text="Overview" Match="NavLinkMatch.All" />
|
||||
<NavRailItem Href="/fleet" Text="Fleet status" />
|
||||
<NavRailItem Href="/hosts" Text="Host status" />
|
||||
<NavRailItem Href="/clusters" Text="Clusters" />
|
||||
<NavRailItem Href="/uns" Text="UNS" />
|
||||
<NavRailItem Href="/raw" Text="Raw" />
|
||||
<NavRailItem Href="/reservations" Text="Reservations" />
|
||||
<NavRailItem Href="/certificates" Text="Certificates" />
|
||||
<NavRailItem Href="/role-grants" Text="Role grants" />
|
||||
<NavRailItem Href="/apikeys" Text="API keys" />
|
||||
@* Gated on the page's OWN policy constant, not Roles="Administrator", so the rail
|
||||
can never drift from what the page actually admits (pinned by SecretsNavLinkTests).
|
||||
ManagePolicy resolves to AdminRole "Administrator" over the same ClaimTypes.Role
|
||||
claim FleetAdmin reads.
|
||||
|
||||
NOTE this is currently the ONLY gated item, and the rail is therefore inconsistent:
|
||||
/role-grants and /apikeys are FleetAdmin (Administrator-only) too and stay visible
|
||||
to everyone, i.e. still advertised dead ends for a Designer/Operator. That is a
|
||||
deliberate scope boundary, not an oversight — hiding them is a UX call for the
|
||||
whole rail, filed as a follow-up rather than smuggled in here. *@
|
||||
<AuthorizeView Policy="@ZB.MOM.WW.Secrets.Ui.SecretsAuthorization.ManagePolicy">
|
||||
<NavRailItem Href="/admin/secrets" Text="Secrets" />
|
||||
</AuthorizeView>
|
||||
</NavRailSection>
|
||||
<NavRailSection Title="Scripting" Key="scripting">
|
||||
<NavRailItem Href="/scripts" Text="Scripts" />
|
||||
<NavRailItem Href="/script-log" Text="Script log" />
|
||||
</NavRailSection>
|
||||
<NavRailSection Title="Live" Key="live">
|
||||
<NavRailItem Href="/deployments" Text="Deployments" />
|
||||
<NavRailItem Href="/alerts" Text="Alerts" />
|
||||
<NavRailItem Href="/alarms-historian" Text="Alarms historian" />
|
||||
</NavRailSection>
|
||||
<NavRailSection Title="Configuration" Key="configuration">
|
||||
<AuthorizeView Policy="@AdminUiPolicies.ConfigEditor">
|
||||
<NavRailItem Href="/uns" Text="UNS" />
|
||||
<NavRailItem Href="/raw" Text="Raw" />
|
||||
<NavRailItem Href="/deployments" Text="Deployments" />
|
||||
</AuthorizeView>
|
||||
<NavRailItem Href="/reservations" Text="Reservations" />
|
||||
<NavRailItem Href="/certificates" Text="Certificates" />
|
||||
</NavRailSection>
|
||||
<NavRailSection Title="Scripting" Key="scripting">
|
||||
<AuthorizeView Policy="@AdminUiPolicies.ConfigEditor">
|
||||
<NavRailItem Href="/scripts" Text="Scripts" />
|
||||
</AuthorizeView>
|
||||
<NavRailItem Href="/script-log" Text="Script log" />
|
||||
</NavRailSection>
|
||||
<AuthorizeView Policy="@AdminUiPolicies.FleetAdmin" Context="fleetAdmin">
|
||||
<NavRailSection Title="Administration" Key="administration">
|
||||
<NavRailItem Href="/role-grants" Text="Role grants" />
|
||||
<NavRailItem Href="/apikeys" Text="API keys" />
|
||||
</NavRailSection>
|
||||
</AuthorizeView>
|
||||
<AuthorizeView Policy="@ZB.MOM.WW.Secrets.Ui.SecretsAuthorization.ManagePolicy" Context="secretsAdmin">
|
||||
<NavRailSection Title="Secrets" Key="secrets">
|
||||
<NavRailItem Href="/admin/secrets" Text="Secrets" />
|
||||
</NavRailSection>
|
||||
</AuthorizeView>
|
||||
</Nav>
|
||||
<RailFooter>
|
||||
<AuthorizeView>
|
||||
|
||||
@@ -2,19 +2,22 @@
|
||||
@attribute [Authorize(Policy = AdminUiPolicies.AuthenticatedRead)]
|
||||
@rendermode RenderMode.InteractiveServer
|
||||
|
||||
<PageTitle>Retired namespaces · OtOpcUa</PageTitle>
|
||||
|
||||
<PageErrorBoundary>
|
||||
<div class="d-flex justify-content-between align-items-center mb-3">
|
||||
<h4 class="mb-0">Namespaces · <span class="mono">@ClusterId</span></h4>
|
||||
<div class="page-head">
|
||||
<h1 class="mb-0">Retired namespaces · <span class="mono">@ClusterId</span></h1>
|
||||
</div>
|
||||
|
||||
<ClusterNav ClusterId="@ClusterId" ActiveTab="namespaces" />
|
||||
|
||||
<section class="panel notice rise" style="animation-delay:.02s">
|
||||
<div class="panel-head">Namespaces are retired in v3</div>
|
||||
<h2 class="panel-head">Namespaces are retired in v3</h2>
|
||||
<div style="padding:1rem">
|
||||
The <code>Namespace</code> entity has been removed. The v3 Raw/UNS split replaces it —
|
||||
raw driver folders and the unified namespace are managed on the <strong>/raw</strong> and
|
||||
<strong>/uns</strong> pages. This page is a placeholder so existing links do not 404.
|
||||
The <code>Namespace</code> entity has been removed. Raw driver folders and the unified namespace replace it.
|
||||
<AuthorizeView Policy="@AdminUiPolicies.ConfigEditor">
|
||||
<p>Manage drivers and tags in <a href="/raw">Raw</a> or equipment in <a href="/uns">UNS</a>.</p>
|
||||
</AuthorizeView> Existing namespace links remain available for reference.
|
||||
</div>
|
||||
</section>
|
||||
</PageErrorBoundary>
|
||||
|
||||
@@ -3,20 +3,23 @@
|
||||
@attribute [Authorize(Policy = AdminUiPolicies.ConfigEditor)]
|
||||
@rendermode RenderMode.InteractiveServer
|
||||
|
||||
<PageTitle>Retired namespaces · OtOpcUa</PageTitle>
|
||||
|
||||
<PageErrorBoundary>
|
||||
<div class="d-flex justify-content-between align-items-center mb-3">
|
||||
<h4 class="mb-0">Namespaces · <span class="mono">@ClusterId</span></h4>
|
||||
<div class="page-head">
|
||||
<h1 class="mb-0">Retired namespaces · <span class="mono">@ClusterId</span></h1>
|
||||
<a href="/clusters/@ClusterId/namespaces" class="btn btn-outline-secondary btn-sm">Back</a>
|
||||
</div>
|
||||
|
||||
<ClusterNav ClusterId="@ClusterId" ActiveTab="namespaces" />
|
||||
|
||||
<section class="panel notice rise" style="animation-delay:.02s">
|
||||
<div class="panel-head">Namespaces are retired in v3</div>
|
||||
<h2 class="panel-head">Namespaces are retired in v3</h2>
|
||||
<div style="padding:1rem">
|
||||
The <code>Namespace</code> entity has been removed. The v3 Raw/UNS split replaces it —
|
||||
raw driver folders and the unified namespace are managed on the <strong>/raw</strong> and
|
||||
<strong>/uns</strong> pages. This editor no longer applies.
|
||||
The <code>Namespace</code> entity has been removed. Raw driver folders and the unified namespace replace it.
|
||||
<AuthorizeView Policy="@AdminUiPolicies.ConfigEditor">
|
||||
<p>Manage drivers and tags in <a href="/raw">Raw</a> or equipment in <a href="/uns">UNS</a>.</p>
|
||||
</AuthorizeView> This editor no longer applies.
|
||||
</div>
|
||||
</section>
|
||||
</PageErrorBoundary>
|
||||
|
||||
@@ -1,7 +1,22 @@
|
||||
@page "/"
|
||||
@attribute [Authorize(Policy = AdminUiPolicies.AuthenticatedRead)]
|
||||
|
||||
<PageTitle>OtOpcUa</PageTitle>
|
||||
<PageTitle>Overview · OtOpcUa</PageTitle>
|
||||
|
||||
<h1>OtOpcUa Admin</h1>
|
||||
<p>Use the nav above to configure clusters, drivers, and tags, then deploy.</p>
|
||||
<div class="page-head">
|
||||
<div>
|
||||
<h1>OtOpcUa</h1>
|
||||
<p class="text-muted">Inspect fleet health, then open a cluster for its status and diagnostics.</p>
|
||||
</div>
|
||||
<a class="btn btn-primary btn-sm" href="/fleet">View fleet status</a>
|
||||
</div>
|
||||
<section class="panel">
|
||||
<h2 class="panel-head">Operations</h2>
|
||||
<div class="panel-body">
|
||||
<p><a href="/hosts">Host status</a> shows the available hosts. <a href="/clusters">Clusters</a> opens cluster status, diagnostics and audit history.</p>
|
||||
<AuthorizeView Policy="@AdminUiPolicies.ConfigEditor">
|
||||
<p>Author drivers and tags in <a href="/raw">Raw</a>, organize equipment in <a href="/uns">UNS</a>, and review <a href="/deployments">Deployments</a>. Configuration changes take effect through deployment.</p>
|
||||
</AuthorizeView>
|
||||
<p class="mb-0">Use the side navigation to return to operations, configuration and scripting.</p>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
@@ -9,11 +9,10 @@
|
||||
}
|
||||
|
||||
<ul class="nav nav-tabs mb-3">
|
||||
<li class="nav-item"><a class="nav-link @Active("overview")" href="/clusters/@ClusterId">Overview</a></li>
|
||||
<li class="nav-item"><a class="nav-link @Active("namespaces")" href="/clusters/@ClusterId/namespaces">Namespaces</a></li>
|
||||
<li class="nav-item"><a class="nav-link @Active("acls")" href="/clusters/@ClusterId/acls">ACLs</a></li>
|
||||
<li class="nav-item"><a class="nav-link @Active("audit")" href="/clusters/@ClusterId/audit">Audit</a></li>
|
||||
<li class="nav-item"><a class="nav-link @Active("redundancy")" href="/clusters/@ClusterId/redundancy">Redundancy</a></li>
|
||||
<li class="nav-item"><a class="nav-link @Active("overview")" aria-current='@(ActiveTab == "overview" ? "page" : null)' href="/clusters/@ClusterId">Overview</a></li>
|
||||
<li class="nav-item"><a class="nav-link @Active("acls")" aria-current='@(ActiveTab == "acls" ? "page" : null)' href="/clusters/@ClusterId/acls">ACLs</a></li>
|
||||
<li class="nav-item"><a class="nav-link @Active("audit")" aria-current='@(ActiveTab == "audit" ? "page" : null)' href="/clusters/@ClusterId/audit">Audit</a></li>
|
||||
<li class="nav-item"><a class="nav-link @Active("redundancy")" aria-current='@(ActiveTab == "redundancy" ? "page" : null)' href="/clusters/@ClusterId/redundancy">Redundancy</a></li>
|
||||
</ul>
|
||||
|
||||
@code {
|
||||
|
||||
@@ -0,0 +1,77 @@
|
||||
using Bunit;
|
||||
using Bunit.TestDoubles;
|
||||
using Microsoft.AspNetCore.Components;
|
||||
using Shouldly;
|
||||
using Xunit;
|
||||
using ZB.MOM.WW.OtOpcUa.AdminUI.Components.Layout;
|
||||
using ZB.MOM.WW.OtOpcUa.AdminUI.Components.Shared;
|
||||
using ZB.MOM.WW.OtOpcUa.Security.Auth;
|
||||
using ZB.MOM.WW.Secrets.Ui;
|
||||
|
||||
namespace ZB.MOM.WW.OtOpcUa.AdminUI.Tests.Pages;
|
||||
|
||||
/// <summary>Real rail destinations retain their route-policy visibility.</summary>
|
||||
[Trait("Category", "Unit")]
|
||||
public sealed class NavigationPolicyRenderTests : BunitContext
|
||||
{
|
||||
[Theory]
|
||||
[InlineData(false, false)]
|
||||
[InlineData(true, false)]
|
||||
[InlineData(true, true)]
|
||||
public void Navigation_UsesDestinationPolicies(bool editor, bool administrator)
|
||||
{
|
||||
var auth = this.AddAuthorization();
|
||||
auth.SetAuthorized("fixture");
|
||||
var policies = new List<string> { AdminUiPolicies.AuthenticatedRead };
|
||||
if (editor) policies.Add(AdminUiPolicies.ConfigEditor);
|
||||
if (administrator) policies.AddRange([AdminUiPolicies.FleetAdmin, SecretsAuthorization.ManagePolicy]);
|
||||
auth.SetPolicies(policies.ToArray());
|
||||
var cut = Render<MainLayout>();
|
||||
foreach (var path in new[] { "/fleet", "/hosts", "/clusters", "/certificates", "/script-log", "/alerts" })
|
||||
cut.FindAll($"a[href='{path}']").Count.ShouldBe(1, path);
|
||||
foreach (var path in new[] { "/raw", "/uns", "/scripts", "/deployments" })
|
||||
cut.FindAll($"a[href='{path}']").Count.ShouldBe(editor ? 1 : 0, path);
|
||||
foreach (var path in new[] { "/role-grants", "/apikeys", "/admin/secrets" })
|
||||
cut.FindAll($"a[href='{path}']").Count.ShouldBe(administrator ? 1 : 0, path);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void RetiredNamespaces_AreAbsentFromOrdinaryClusterNavigation()
|
||||
{
|
||||
var cut = Render<ClusterNav>(p => p.Add(x => x.ClusterId,"C1").Add(x => x.ActiveTab,"overview"));
|
||||
cut.FindAll("a[href$='/namespaces']").ShouldBeEmpty();
|
||||
cut.Find("a[href='/clusters/C1']").GetAttribute("aria-current").ShouldBe("page");
|
||||
}
|
||||
|
||||
[Theory]
|
||||
[InlineData(false)]
|
||||
[InlineData(true)]
|
||||
public void CompatibilityAndHome_OfferOnlyAuthorizedAuthoring(bool editor)
|
||||
{
|
||||
var auth = this.AddAuthorization();
|
||||
auth.SetAuthorized("fixture");
|
||||
auth.SetPolicies(editor
|
||||
? [AdminUiPolicies.AuthenticatedRead, AdminUiPolicies.ConfigEditor]
|
||||
: [AdminUiPolicies.AuthenticatedRead]);
|
||||
var home = Render<ZB.MOM.WW.OtOpcUa.AdminUI.Components.Pages.Home>();
|
||||
home.FindAll("h1").Count.ShouldBe(1);
|
||||
home.Find("a[href='/fleet']").ShouldNotBeNull();
|
||||
home.FindAll("a[href='/raw']").Count.ShouldBe(editor ? 1 : 0);
|
||||
home.FindAll("a[href='/uns']").Count.ShouldBe(editor ? 1 : 0);
|
||||
var compatibility = Render<ZB.MOM.WW.OtOpcUa.AdminUI.Components.Pages.Clusters.ClusterNamespaces>(p => p.Add(x => x.ClusterId, "C1"));
|
||||
compatibility.FindAll("h1").Count.ShouldBe(1);
|
||||
compatibility.FindAll("a[href='/raw']").Count.ShouldBe(editor ? 1 : 0);
|
||||
compatibility.FindAll("a[href='/uns']").Count.ShouldBe(editor ? 1 : 0);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void SecretsPolicy_IsIndependentOfFleetAdministration()
|
||||
{
|
||||
var auth = this.AddAuthorization();
|
||||
auth.SetAuthorized("fixture");
|
||||
auth.SetPolicies(AdminUiPolicies.AuthenticatedRead, SecretsAuthorization.ManagePolicy);
|
||||
var cut = Render<MainLayout>();
|
||||
cut.Find("a[href='/admin/secrets']").ShouldNotBeNull();
|
||||
cut.FindAll("a[href='/role-grants'],a[href='/apikeys']").ShouldBeEmpty();
|
||||
}
|
||||
}
|
||||
@@ -15,24 +15,20 @@ namespace ZB.MOM.WW.OtOpcUa.AdminUI.Tests;
|
||||
/// user can get there.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Source scan rather than a rendering assertion: the repo has no bUnit (the central
|
||||
/// <c>PackageVersion</c> for it is referenced by no project), and razor layout markup — unlike
|
||||
/// a page's <c>@page</c>/<c>@attribute</c> directives — does not survive into class metadata
|
||||
/// any form a reflection guard can read. So this proves the link and its gate are *written*;
|
||||
/// that the gate actually admits an Administrator and hides the item from a Designer is
|
||||
/// live-verified on the docker-dev rig, per this repo's Razor convention.
|
||||
/// This source guard preserves the exact package policy expression. Rendered policy visibility
|
||||
/// is independently covered by NavigationPolicyRenderTests; neither replaces route authorization.
|
||||
/// </remarks>
|
||||
[Trait("Category", "Unit")]
|
||||
public sealed class SecretsNavLinkTests
|
||||
{
|
||||
private const string NavItem = "<NavRailItem Href=\"/admin/secrets\"";
|
||||
|
||||
private static string ReadMainLayoutSource()
|
||||
private static string ReadMainLayoutSource([System.Runtime.CompilerServices.CallerFilePath] string sourceFile = "")
|
||||
{
|
||||
var dir = new DirectoryInfo(AppContext.BaseDirectory);
|
||||
var dir = new DirectoryInfo(Path.GetDirectoryName(sourceFile)!);
|
||||
while (dir is not null && !File.Exists(Path.Combine(dir.FullName, "ZB.MOM.WW.OtOpcUa.slnx")))
|
||||
dir = dir.Parent;
|
||||
dir.ShouldNotBeNull("could not locate the repository root (no ZB.MOM.WW.OtOpcUa.slnx above the test binary)");
|
||||
dir.ShouldNotBeNull("could not locate the repository root (no ZB.MOM.WW.OtOpcUa.slnx above the test source)");
|
||||
|
||||
return File.ReadAllText(Path.Combine(
|
||||
dir!.FullName, "src", "Server", "ZB.MOM.WW.OtOpcUa.AdminUI",
|
||||
@@ -62,7 +58,7 @@ public sealed class SecretsNavLinkTests
|
||||
{
|
||||
var source = ReadMainLayoutSource();
|
||||
|
||||
var open = source.IndexOf("<AuthorizeView Policy=", StringComparison.Ordinal);
|
||||
var open = source.IndexOf("<AuthorizeView Policy=\"@ZB.MOM.WW.Secrets.Ui.SecretsAuthorization.ManagePolicy\"", StringComparison.Ordinal);
|
||||
var item = source.IndexOf(NavItem, StringComparison.Ordinal);
|
||||
var close = source.IndexOf("</AuthorizeView>", open + 1, StringComparison.Ordinal);
|
||||
|
||||
|
||||