configurator-per-target.json 1.2 KB

12345678910111213141516171819202122232425
  1. {
  2. "name": "verify-configurator-per-target",
  3. "nodes": [
  4. {"id": "n1", "name": "Trigger", "type": "click-trigger", "position": {"x": 0, "y": 0}, "config": {}},
  5. {"id": "cfg", "name": "Shared", "type": "configurator", "position": {"x": -200, "y": 100},
  6. "config": {"settings": [
  7. {"name": "mode", "value": "stop"},
  8. {"name": "message", "value": "only for A", "targets": ["tA"]}
  9. ]}},
  10. {"id": "tA", "name": "TargetA", "type": "stop-and-error", "position": {"x": -100, "y": 250},
  11. "config": {"message": "A's own", "mode": "error"}},
  12. {"id": "tB", "name": "TargetB", "type": "stop-and-error", "position": {"x": 150, "y": 250},
  13. "config": {"message": "B's own", "mode": "error"}}
  14. ],
  15. "connections": [
  16. {"sourceNodeId": "n1", "sourceOutput": "main", "targetNodeId": "cfg", "targetInput": "data"},
  17. {"sourceNodeId": "n1", "sourceOutput": "main", "targetNodeId": "tA", "targetInput": "data"},
  18. {"sourceNodeId": "cfg", "sourceOutput": "main", "targetNodeId": "tA", "targetInput": "config"},
  19. {"sourceNodeId": "cfg", "sourceOutput": "main", "targetNodeId": "tB", "targetInput": "config"}
  20. ],
  21. "expectStatus": "completed",
  22. "expect": {
  23. "tA": {"status": "completed", "output": {"stopped": true, "reason": "only for A"}}
  24. }
  25. }