configurator-unknown-key.json 1.1 KB

1234567891011121314151617181920212223
  1. {
  2. "name": "verify-configurator-unknown-key",
  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": -150, "y": 100},
  6. "config": {"settings": [
  7. {"name": "message", "value": "applied"},
  8. {"name": "mode", "value": "stop"},
  9. {"name": "notASetting", "value": "ignored"}
  10. ]}},
  11. {"id": "target", "name": "Target", "type": "stop-and-error", "position": {"x": 0, "y": 200},
  12. "config": {"message": "own", "mode": "error"}}
  13. ],
  14. "connections": [
  15. {"sourceNodeId": "n1", "sourceOutput": "main", "targetNodeId": "cfg", "targetInput": "data"},
  16. {"sourceNodeId": "n1", "sourceOutput": "main", "targetNodeId": "target", "targetInput": "data"},
  17. {"sourceNodeId": "cfg", "sourceOutput": "main", "targetNodeId": "target", "targetInput": "config"}
  18. ],
  19. "expectStatus": "completed",
  20. "expect": {
  21. "target": {"status": "completed", "output": {"stopped": true, "reason": "applied", "_ignoredConfigKeys": ["notASetting"]}}
  22. }
  23. }