sdcpp-model-load-idempotent.json 1.3 KB

12345678910111213141516171819202122232425
  1. {
  2. "name": "verify-sdcpp-model-load-idempotent",
  3. "nodes": [
  4. {"id": "n1", "name": "Trigger", "type": "click-trigger", "position": {"x": 0, "y": 0}, "config": {}},
  5. {"id": "srv", "name": "SD.cpp Server", "type": "configurator", "position": {"x": -260, "y": 100},
  6. "config": {"label": "SD.cpp Server", "settings": [
  7. {"name": "serverUrl", "value": "http://mulan:8077"},
  8. {"name": "credentialId", "value": "cred_62748b40-e9d1-4659-b175-6dbc691cc0b1"}
  9. ]}},
  10. {"id": "health", "name": "Health", "type": "sdcpp-health", "position": {"x": 0, "y": 200},
  11. "config": {}},
  12. {"id": "load", "name": "Load", "type": "sdcpp-model-load", "position": {"x": 0, "y": 320},
  13. "config": {"modelName": "{{$node[\"Health\"].modelName}}"}}
  14. ],
  15. "connections": [
  16. {"sourceNodeId": "n1", "sourceOutput": "main", "targetNodeId": "health", "targetInput": "data"},
  17. {"sourceNodeId": "health", "sourceOutput": "main", "targetNodeId": "load", "targetInput": "data"},
  18. {"sourceNodeId": "srv", "sourceOutput": "main", "targetNodeId": "health", "targetInput": "config"},
  19. {"sourceNodeId": "srv", "sourceOutput": "main", "targetNodeId": "load", "targetInput": "config"}
  20. ],
  21. "expectStatus": "completed",
  22. "expect": {
  23. "load": {"status": "completed", "output": {"alreadyLoaded": true, "loaded": false}}
  24. }
  25. }