test(grpc-data): A4 review r2 NITs — F4 ungranted caller is refused without promoting the folder (fake gate honours ConditionBearing; control is BadUserAccessDenied), EventId retention across a held-set takeover

Adds the ProjectedFolderEventNotifier test observation.

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Joseph Doherty
2026-11-25 04:07:19 -05:00
parent d72f2d966d
commit 6bdca132fe
3 changed files with 67 additions and 3 deletions
@@ -709,6 +709,14 @@ public sealed partial class OtOpcUaNodeManager : IProjectedConditionSink
IsImportedConditionId(nodeId) ? AuthorizeImportedCondition(identity, operation, nodeId) : null;
/// <summary>Test observation: whether a projected folder is currently wired as a notifier of some imported condition.</summary>
/// <summary>Test observation (A4 review r2): a projected folder's <c>EventNotifier</c> (null when it is no known projected folder).</summary>
internal byte? ProjectedFolderEventNotifier(NodeId folderId)
{
lock (Lock)
return _importedConditions.FolderKeys.TryGetValue(folderId, out var key) && FindProjectedFolder(key) is { } folder
? folder.EventNotifier : null;
}
internal bool IsImportedNotifierWired(NodeId folderId)
{
lock (Lock) return _importedConditions.WiredByFolder.ContainsKey(folderId);