| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104 |
- {
- "name": "verify-sdcpp-model-load-idempotent",
- "requires": {
- "http": "https://mulan:8077/health",
- "expect": {
- "model_loaded": true
- }
- },
- "nodes": [
- {
- "id": "n1",
- "name": "Trigger",
- "type": "click-trigger",
- "position": {
- "x": 0,
- "y": 0
- },
- "config": {}
- },
- {
- "id": "srv",
- "name": "SD.cpp Server",
- "type": "configurator",
- "position": {
- "x": -260,
- "y": 100
- },
- "config": {
- "label": "SD.cpp Server",
- "settings": [
- {
- "name": "serverUrl",
- "value": "https://mulan:8077"
- },
- {
- "name": "credentialId",
- "value": "cred_62748b40-e9d1-4659-b175-6dbc691cc0b1"
- }
- ]
- }
- },
- {
- "id": "health",
- "name": "Health",
- "type": "sdcpp-health",
- "position": {
- "x": 0,
- "y": 200
- },
- "config": {}
- },
- {
- "id": "load",
- "name": "Load",
- "type": "sdcpp-model-load",
- "position": {
- "x": 0,
- "y": 320
- },
- "config": {
- "modelName": "{{$node[\"Health\"].modelName}}",
- "streamLayers": true,
- "eagerLoad": true
- }
- }
- ],
- "connections": [
- {
- "sourceNodeId": "n1",
- "sourceOutput": "main",
- "targetNodeId": "health",
- "targetInput": "data"
- },
- {
- "sourceNodeId": "health",
- "sourceOutput": "main",
- "targetNodeId": "load",
- "targetInput": "data"
- },
- {
- "sourceNodeId": "srv",
- "sourceOutput": "main",
- "targetNodeId": "health",
- "targetInput": "config"
- },
- {
- "sourceNodeId": "srv",
- "sourceOutput": "main",
- "targetNodeId": "load",
- "targetInput": "config"
- }
- ],
- "expectStatus": "completed",
- "expect": {
- "load": {
- "status": "completed",
- "output": {
- "alreadyLoaded": true,
- "loaded": false,
- "reloadedFor": []
- }
- }
- }
- }
|