configurator-basic.json 1.0 KB

12345678910111213141516171819202122
  1. {
  2. "name": "verify-configurator-basic",
  3. "nodes": [
  4. {"id": "n1", "name": "Trigger", "type": "click-trigger", "position": {"x": 0, "y": 0}, "config": {}},
  5. {"id": "cfg", "name": "Preset", "type": "configurator", "position": {"x": -150, "y": 100},
  6. "config": {"label": "Preset", "settings": [
  7. {"name": "message", "value": "from the configurator"},
  8. {"name": "mode", "value": "stop"}
  9. ]}},
  10. {"id": "target", "name": "Target", "type": "stop-and-error", "position": {"x": 0, "y": 200},
  11. "config": {"message": "the node's own value", "mode": "error"}}
  12. ],
  13. "connections": [
  14. {"sourceNodeId": "n1", "sourceOutput": "main", "targetNodeId": "cfg", "targetInput": "data"},
  15. {"sourceNodeId": "n1", "sourceOutput": "main", "targetNodeId": "target", "targetInput": "data"},
  16. {"sourceNodeId": "cfg", "sourceOutput": "main", "targetNodeId": "target", "targetInput": "config"}
  17. ],
  18. "expectStatus": "completed",
  19. "expect": {
  20. "target": {"status": "completed", "output": {"stopped": true, "reason": "from the configurator"}}
  21. }
  22. }