sdcpp-health.json 911 B

12345678910111213141516171819
  1. {
  2. "name": "verify-sdcpp-health",
  3. "nodes": [
  4. {"id": "n1", "name": "Trigger", "type": "click-trigger", "position": {"x": 0, "y": 0}, "config": {}},
  5. {"id": "up", "name": "Reachable", "type": "sdcpp-health", "position": {"x": 0, "y": 100},
  6. "config": {"serverUrl": "http://mulan:8077"}},
  7. {"id": "down", "name": "Unreachable", "type": "sdcpp-health", "position": {"x": 0, "y": 200},
  8. "config": {"serverUrl": "http://localhost:9", "timeout": 3000}}
  9. ],
  10. "connections": [
  11. {"sourceNodeId": "n1", "sourceOutput": "main", "targetNodeId": "up", "targetInput": "data"},
  12. {"sourceNodeId": "up", "sourceOutput": "main", "targetNodeId": "down", "targetInput": "data"}
  13. ],
  14. "expectStatus": "completed",
  15. "expect": {
  16. "up": {"status": "completed", "output": {"healthy": true, "reachable": true}},
  17. "down": {"status": "completed", "output": {"healthy": false, "reachable": false}}
  18. }
  19. }