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:
@@ -19,10 +19,15 @@ def main(argv=None):
|
||||
parser.add_argument("--settle-seconds", type=int, default=8)
|
||||
arguments = parser.parse_args(argv)
|
||||
runner = scenarios.ScenarioRunner(arguments.run_id)
|
||||
runner.active, runner.deadline = "A2a", time.monotonic() + 600
|
||||
runner.publish()
|
||||
runner.device("set", address=20, value=150)
|
||||
time.sleep(arguments.settle_seconds)
|
||||
output = runner.folder / "A2a-conditions-wire.json"
|
||||
result = runner.process(["dotnet", str(runner.probe_dll), "--manifest", str(runner.manifest_path), "--scenario", "conditions",
|
||||
# The UNS export root is the equipment, addressed by its catalog identifier (the EquipmentId).
|
||||
"--equipment", runner.manifest["fixture"]["browse_roots"]["uns"],
|
||||
"--subject", runner.manifest["fixture"]["browse_subjects"]["uns"],
|
||||
"--output", str(output)], "A2a-conditions-wire", timeout=240)
|
||||
wire = scenarios.restricted_json(output) if output.exists() else {"passed": False, "stderr": result.stderr[-4000:]}
|
||||
runner.device("set", address=20, value=0)
|
||||
|
||||
Reference in New Issue
Block a user