test(grpc-data): A2a smoke — address the UNS export root by EquipmentId + subject; publish tools and set the scenario deadline
This commit is contained in:
@@ -256,7 +256,9 @@ try
|
||||
// A2a smoke (opt-in conditions fixture): a root-scoped condition item on each SOURCE listener's UNS equipment root.
|
||||
failurePhase = ProbeFailurePhase.WireOperation;
|
||||
var unsUri = root.GetProperty("fixture").GetProperty("namespace_uris").GetProperty("uns").GetString()!;
|
||||
// The UNS export root: the equipment's catalog identifier (EquipmentId) and its subject (the area/line/equipment path).
|
||||
var equipmentPath = arguments.GetValueOrDefault("--equipment", "area/line/plc");
|
||||
var equipmentSubject = arguments.GetValueOrDefault("--subject", equipmentPath);
|
||||
var deviceUrl = endpoints.GetProperty("device.control").GetProperty("url").GetString()!;
|
||||
using var http = new HttpClient();
|
||||
async Task SetScalar(int value)
|
||||
@@ -266,7 +268,7 @@ try
|
||||
response.EnsureSuccessStatusCode();
|
||||
}
|
||||
var equipmentView = new W.View { Address = new() { OriginClusterId = "SOURCE", NamespaceUri = unsUri, IdentifierKind = "string",
|
||||
Identifier = equipmentPath }, Realm = (int)DataRealm.Uns, Subject = equipmentPath };
|
||||
Identifier = equipmentPath }, Realm = (int)DataRealm.Uns, Subject = equipmentSubject };
|
||||
static object Record(W.ConditionState r) => new
|
||||
{
|
||||
key = r.ConditionKey, r.Version, r.Removed, r.StateKnown, r.Active, r.Acknowledged, r.Severity, r.Message,
|
||||
|
||||
Reference in New Issue
Block a user