Pre-existing test failure: EquipmentNamespaceMaterializationTests deployment Rejected (not Accepted) #424

Open
opened 2026-06-27 01:57:21 -04:00 by dohertj2 · 0 comments
Owner

Summary

EquipmentNamespaceMaterializationTests.Deploying_an_equipment_namespace_carries_the_signal_into_the_artifact (in ZB.MOM.WW.OtOpcUa.Host.IntegrationTests) fails: StartDeploymentAsync returns StartDeploymentOutcome.Rejected where the test expects Accepted — assertion at tests/Server/ZB.MOM.WW.OtOpcUa.Host.IntegrationTests/EquipmentNamespaceMaterializationTests.cs:43.

The test seeds a 1-area / 1-line / 1-equipment / 1-tag Modbus equipment namespace (tag Speed, FullName = 40001) and StartDeployments it through the real ConfigComposer. The deployment is rejected at the DraftValidator / ConfigComposer stage, before the artifact is composed — so the downstream ParseComposition assertions are never reached.

Repro

dotnet test tests/Server/ZB.MOM.WW.OtOpcUa.Host.IntegrationTests/ZB.MOM.WW.OtOpcUa.Host.IntegrationTests.csproj \
  --filter "FullyQualifiedName~EquipmentNamespaceMaterializationTests.Deploying_an_equipment_namespace_carries_the_signal_into_the_artifact"

Result:

StartDeploymentOutcome.Accepted
    but was
StartDeploymentOutcome.Rejected
  ...EquipmentNamespaceMaterializationTests.cs:line 43

Pre-existing / scope

  • Not introduced by the OtOpcUa ↔ HistorianGateway integration (PR #423): that branch touches none of the Modbus / DraftValidator / ConfigComposer / equipment-namespace-materialization code path (git diff --stat master..HEAD confirms only *Historian* files changed), yet the test fails identically.
  • Surfaced while running the full suite during that integration; filed here so it is tracked independently of the historian work.

Next step

Root-cause the DraftValidator rejection of the Modbus-only namespace (the deployment is rejected before composition). Most likely a validation rule or environment/config expectation the seeded namespace no longer satisfies — capture the rejection reason from the StartDeployment outcome / validator diagnostics.

## Summary `EquipmentNamespaceMaterializationTests.Deploying_an_equipment_namespace_carries_the_signal_into_the_artifact` (in `ZB.MOM.WW.OtOpcUa.Host.IntegrationTests`) fails: `StartDeploymentAsync` returns `StartDeploymentOutcome.Rejected` where the test expects `Accepted` — assertion at `tests/Server/ZB.MOM.WW.OtOpcUa.Host.IntegrationTests/EquipmentNamespaceMaterializationTests.cs:43`. The test seeds a 1-area / 1-line / 1-equipment / 1-tag **Modbus** equipment namespace (tag `Speed`, `FullName = 40001`) and `StartDeployment`s it through the real `ConfigComposer`. The deployment is rejected at the `DraftValidator` / `ConfigComposer` stage, before the artifact is composed — so the downstream `ParseComposition` assertions are never reached. ## Repro ``` dotnet test tests/Server/ZB.MOM.WW.OtOpcUa.Host.IntegrationTests/ZB.MOM.WW.OtOpcUa.Host.IntegrationTests.csproj \ --filter "FullyQualifiedName~EquipmentNamespaceMaterializationTests.Deploying_an_equipment_namespace_carries_the_signal_into_the_artifact" ``` Result: ``` StartDeploymentOutcome.Accepted but was StartDeploymentOutcome.Rejected ...EquipmentNamespaceMaterializationTests.cs:line 43 ``` ## Pre-existing / scope - **Not introduced** by the OtOpcUa ↔ HistorianGateway integration (PR #423): that branch touches **none** of the Modbus / `DraftValidator` / `ConfigComposer` / equipment-namespace-materialization code path (`git diff --stat master..HEAD` confirms only `*Historian*` files changed), yet the test fails identically. - Surfaced while running the full suite during that integration; filed here so it is tracked **independently** of the historian work. ## Next step Root-cause the `DraftValidator` rejection of the Modbus-only namespace (the deployment is rejected before composition). Most likely a validation rule or environment/config expectation the seeded namespace no longer satisfies — capture the rejection reason from the `StartDeployment` outcome / validator diagnostics.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: dohertj2/lmxopcua#424