test(grpc-data): A4 live scenarios part 2 harness — A03 origin failover (same-incarnation stream reset via mapping revision bump, clear-and-re-raise in the gap, RefreshRequired, BadEventIdUnknown, refreshed EventId acks), A06 consumer Primary change across both nodes + second CONSUMER principal fixture-cli-alt, A07 consumer restart refresh-vs-barrier; CLI alarms prints EventType (names RefreshStart/End/Required)

This commit is contained in:
Joseph Doherty
2026-11-25 01:44:58 -05:00
parent c82b8683b0
commit 9ea50c11b2
8 changed files with 365 additions and 12 deletions
@@ -1129,6 +1129,7 @@ public sealed class OpcUaClientService : IOpcUaClientService
var conditionName = fields.Count > 6 ? ValueConverter.ToClrObject(fields[6]) as string ?? string.Empty : string.Empty;
var retain = fields.Count > 7 && ParseBool(ValueConverter.ToClrObject(fields[7]));
var conditionNodeId = fields.Count > 12 ? ValueConverter.ToClrObject(fields[12])?.ToString() : null;
var eventType = fields.Count > 1 ? ValueConverter.ToClrObject(fields[1])?.ToString() : null;
// Try standard OPC UA ActiveState/AckedState fields first
bool? ackedField = fields.Count > 8 && ValueConverter.ToClrObject(fields[8]) != null ? ParseBool(ValueConverter.ToClrObject(fields[8])) : null;
@@ -1142,7 +1143,7 @@ public sealed class OpcUaClientService : IOpcUaClientService
AlarmEvent?.Invoke(this, new AlarmEventArgs(
sourceName, conditionName, severity, message, retain, activeState, ackedState, time,
eventId, conditionNodeId));
eventId, conditionNodeId, eventType: eventType));
}
private static bool ParseBool(object? value)