test(grpc-data): A2b smoke — conditions profile grants the method bits; probe remote ack (+ duplicate, header-less, Secondary); origin CLI alarms watcher counts exactly one ack

This commit is contained in:
Joseph Doherty
2026-11-24 13:55:45 -05:00
parent e29d9559ad
commit d63884e624
3 changed files with 81 additions and 10 deletions
+2 -1
View File
@@ -397,7 +397,8 @@ try
var entity = realm == DataRealm.Raw ? "source-device" : equipment;
db.DataExports.Add(new() { DataExportRowId = Guid.NewGuid(), DataExportId = "export-" + name, ClusterId = "SOURCE", Enabled = true,
Realm = realm, RootKind = rootKind, RootEntityId = entity, PrincipalId = "fixture-consumer",
AllowedOperations = grantedOperations | (conditions ? DataOperations.AlarmSubscribe : DataOperations.None) });
// A2b: the conditions profile also grants the remote condition methods (Acknowledge/AddComment, Confirm).
AllowedOperations = grantedOperations | (conditions ? DataOperationSets.ConditionGrants : DataOperations.None) });
if (history)
db.DataExports.Add(new() { DataExportRowId = Guid.NewGuid(), DataExportId = "export-" + name + "-nohistory", ClusterId = "SOURCE", Enabled = true,
Realm = realm, RootKind = rootKind, RootEntityId = entity, PrincipalId = "fixture-nohistory", AllowedOperations = operations });