sdcpp-model-load-idempotent.json 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. {
  2. "name": "verify-sdcpp-model-load-idempotent",
  3. "nodes": [
  4. {
  5. "id": "n1",
  6. "name": "Trigger",
  7. "type": "click-trigger",
  8. "position": {
  9. "x": 0,
  10. "y": 0
  11. },
  12. "config": {}
  13. },
  14. {
  15. "id": "srv",
  16. "name": "SD.cpp Server",
  17. "type": "configurator",
  18. "position": {
  19. "x": -260,
  20. "y": 100
  21. },
  22. "config": {
  23. "label": "SD.cpp Server",
  24. "settings": [
  25. {
  26. "name": "serverUrl",
  27. "value": "http://mulan:8077"
  28. },
  29. {
  30. "name": "credentialId",
  31. "value": "cred_62748b40-e9d1-4659-b175-6dbc691cc0b1"
  32. }
  33. ]
  34. }
  35. },
  36. {
  37. "id": "health",
  38. "name": "Health",
  39. "type": "sdcpp-health",
  40. "position": {
  41. "x": 0,
  42. "y": 200
  43. },
  44. "config": {}
  45. },
  46. {
  47. "id": "load",
  48. "name": "Load",
  49. "type": "sdcpp-model-load",
  50. "position": {
  51. "x": 0,
  52. "y": 320
  53. },
  54. "config": {
  55. "modelName": "{{$node[\"Health\"].modelName}}",
  56. "streamLayers": true,
  57. "eagerLoad": true
  58. }
  59. }
  60. ],
  61. "connections": [
  62. {
  63. "sourceNodeId": "n1",
  64. "sourceOutput": "main",
  65. "targetNodeId": "health",
  66. "targetInput": "data"
  67. },
  68. {
  69. "sourceNodeId": "health",
  70. "sourceOutput": "main",
  71. "targetNodeId": "load",
  72. "targetInput": "data"
  73. },
  74. {
  75. "sourceNodeId": "srv",
  76. "sourceOutput": "main",
  77. "targetNodeId": "health",
  78. "targetInput": "config"
  79. },
  80. {
  81. "sourceNodeId": "srv",
  82. "sourceOutput": "main",
  83. "targetNodeId": "load",
  84. "targetInput": "config"
  85. }
  86. ],
  87. "expectStatus": "completed",
  88. "expect": {
  89. "load": {
  90. "status": "completed",
  91. "output": {
  92. "alreadyLoaded": true,
  93. "loaded": false,
  94. "reloadedFor": []
  95. }
  96. }
  97. }
  98. }