sdcpp-model-load-idempotent.json 1.7 KB

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