| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- {
- "name": "verify-call-workflow-inactive",
- "helpers": [
- {
- "key": "sub",
- "name": "verify sub: not published",
- "active": false,
- "nodes": [
- {
- "id": "in",
- "name": "Input",
- "type": "workflow-input",
- "position": {
- "x": 0,
- "y": 0
- },
- "config": {
- "fields": [
- {
- "name": "n",
- "type": "number",
- "required": true
- }
- ]
- }
- },
- {
- "id": "out",
- "name": "Output",
- "type": "workflow-output",
- "position": {
- "x": 0,
- "y": 100
- },
- "config": {}
- }
- ],
- "connections": [
- {
- "sourceNodeId": "in",
- "sourceOutput": "main",
- "targetNodeId": "out",
- "targetInput": "data"
- }
- ]
- }
- ],
- "nodes": [
- {
- "id": "n1",
- "name": "Trigger",
- "type": "click-trigger",
- "position": {
- "x": 0,
- "y": 0
- },
- "config": {}
- },
- {
- "id": "call",
- "name": "Call",
- "type": "call-workflow",
- "position": {
- "x": 0,
- "y": 100
- },
- "config": {
- "workflowId": "{{helper:sub}}",
- "inputSource": "fields",
- "fields": [
- {
- "name": "n",
- "value": "1"
- }
- ]
- }
- }
- ],
- "connections": [
- {
- "sourceNodeId": "n1",
- "sourceOutput": "main",
- "targetNodeId": "call",
- "targetInput": "data"
- }
- ],
- "expect": {
- "call": {
- "status": "failed",
- "errorContains": "is not active"
- }
- }
- }
|