09aaabbeef
The /alerts buttons went central->node fire-and-forget and always showed "Ack sent". AdminOperationsActor now spawns a per-request AlarmCommandVerdictCollector (7 s window, under the client's 10 s ask) that sends the command with AlarmCommand.VerdictRequested and gathers each node's answer, finishing early once every node it sent to has answered. - gRPC plane: CentralCommunicationActor tells the collector the dialled ClusterNode set and one verdict per node. A node handles a verdict_requested AlarmCommandMessage by asking its driver host (ScriptedAlarmHostActor.ExecuteAlarmCommand, the #937 path, no ask deadline, bounded 5 s) and returns it in the ADDITIVE ExecuteAck.alarm_verdict. Transport failure / timeout / empty ack (pre-#950 node) => that node unknown. - DPS: published with the collector as sender; each ScriptedAlarmHostActor answers (non-owners NotOwned); expected set = Up driver members. - Aggregation: any owner applied => Applied (partial noted); else any unknown/silent node => Outcome unknown (never "refused"); else owner refusal => Refused: <reason>; else no owner => Not applied. - UI: green Applied / red Refused (reason) / amber Outcome unknown, per-node detail in the details pane; a verdict-less reply (validation, server fault, pre-#950 singleton) renders as before. Wire is back-compatible both ways (new proto fields only; VerdictRequested and NotOwned default false). Real-wire test through the real router, dialer, interceptor and NodeCommandGrpcService (red without the node change). Co-Authored-By: Claude <noreply@anthropic.com>
ZB.MOM.WW.OtOpcUa.Host.IntegrationTests
Two-node Akka cluster integration tests on top of TwoNodeClusterHarness.
Default mode (no infra required)
dotnet test tests/Server/ZB.MOM.WW.OtOpcUa.Host.IntegrationTests
Uses Microsoft.EntityFrameworkCore.InMemory for ConfigDb and a stub ILdapAuthService that
accepts any username when the password is valid-password. Each harness instance creates a
unique in-memory database scoped to its lifetime. This is the mode CI runs by default.
Real-infra mode (SQL Server + OpenLDAP)
When you need to exercise EF behaviors that diverge between providers (index uniqueness,
RowVersion concurrency, JSON columns, migration application) or a real LDAP bind, bring up
the bundled compose stack and set the env-var switches:
docker compose -f tests/Server/ZB.MOM.WW.OtOpcUa.Host.IntegrationTests/docker-compose.yml up -d
export OTOPCUA_HARNESS_USE_SQL=1
export OTOPCUA_HARNESS_USE_LDAP=1
dotnet test tests/Server/ZB.MOM.WW.OtOpcUa.Host.IntegrationTests
docker compose -f tests/Server/ZB.MOM.WW.OtOpcUa.Host.IntegrationTests/docker-compose.yml down -v
SQL Server mode (OTOPCUA_HARNESS_USE_SQL=1)
- Container:
mcr.microsoft.com/mssql/server:2022-latestonlocalhost:14331 - Each
TwoNodeClusterHarness.StartAsync()creates a unique databaseOtOpcUa_Harness_{guid}viaDatabase.EnsureCreatedAsync()and drops it onDisposeAsync()(best-effort). - Port
14331chosen to avoid colliding with thedocker-dev/fleet (which uses14330).
LDAP mode (OTOPCUA_HARNESS_USE_LDAP=1)
- Container:
bitnami/openldap:2.6onlocalhost:3894 - Users
alice/alice123andbob/bob123, all underou=FleetAdmin. - Port
3894chosen to avoid colliding with thedocker-dev/fleet (which uses3893).
Local-dev caveat
This dev VM (DESKTOP-6JL3KKO) does not run Docker locally. Real-infra mode runs on the
shared Linux Docker host (10.100.0.35) per docs/v2/dev-environment.md, or in CI on Linux.