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:
@@ -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 });
|
||||
|
||||
Reference in New Issue
Block a user