test(grpc-data): A3 live smoke — conditions profile makes the CONSUMER condition-bearing; conditions_a3_smoke.py acknowledges the imported ScalarHigh through the consumer
This commit is contained in:
@@ -388,7 +388,10 @@ try
|
||||
db.DataConnections.Add(new() { DataConnectionRowId = Guid.NewGuid(), DataConnectionId = "consumer-source", ClusterId = "CONSUMER", Enabled = true,
|
||||
ConsumerNodeIds = ["consumer-1:4053", "consumer-2:4053"], TargetMode = DataTargetMode.Cluster, ExpectedClusterId = "SOURCE",
|
||||
EligibleTargetNodeIds = ["source-1:4053", "source-2:4053"], Endpoints = ["https://source-1:4057", "https://source-2:4057"],
|
||||
SecretReference = "secret:data/source", SecretScopeClusterId = "CONSUMER", AllowedOperations = grantedOperations,
|
||||
// A3: the conditions profile makes the CONSUMER condition-bearing too (connection + mappings carry AlarmSubscribe and
|
||||
// the method bits), so a consumer Server-object subscription imports ScalarHigh and can acknowledge it remotely.
|
||||
SecretReference = "secret:data/source", SecretScopeClusterId = "CONSUMER",
|
||||
AllowedOperations = grantedOperations | (conditions ? DataOperationSets.ConditionGrants : DataOperations.None),
|
||||
TimeoutMilliseconds = 30000 });
|
||||
foreach (var realm in new[] { DataRealm.Raw, DataRealm.Uns })
|
||||
{
|
||||
@@ -406,7 +409,8 @@ try
|
||||
ClusterId = "CONSUMER", DataConnectionId = "consumer-source", Enabled = true, ConsumerNodeIds = ["consumer-1:4053", "consumer-2:4053"],
|
||||
Realm = realm, RemoteRealm = realm, LocalParentKind = "Cluster", LocalParentId = "CONSUMER", BranchName = "remote-source",
|
||||
RemoteRootEntityId = entity, RemoteNamespaceUri = realm == DataRealm.Raw ? V3NodeIds.RawNamespaceUri : V3NodeIds.UnsNamespaceUri,
|
||||
RemoteIdentifierKind = "string", RemoteIdentifier = realm == DataRealm.Raw ? "modbus/plc" : equipment, AllowedOperations = grantedOperations, WriteThrough = true });
|
||||
RemoteIdentifierKind = "string", RemoteIdentifier = realm == DataRealm.Raw ? "modbus/plc" : equipment,
|
||||
AllowedOperations = grantedOperations | (conditions ? DataOperationSets.ConditionGrants : DataOperations.None), WriteThrough = true });
|
||||
if (history)
|
||||
db.NodeAcls.Add(new() { NodeAclRowId = Guid.NewGuid(), NodeAclId = "cli-history-map-" + name, ClusterId = "CONSUMER", Principal = "fixture-cli",
|
||||
ScopeKind = NodeAclScopeKind.RemoteNamespaceMapping, ScopeId = "map-" + name, PermissionFlags = NodePermissions.Browse | NodePermissions.HistoryRead });
|
||||
|
||||
Reference in New Issue
Block a user