call-workflow-inactive.json 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. {
  2. "name": "verify-call-workflow-inactive",
  3. "helpers": [
  4. {
  5. "key": "sub",
  6. "name": "verify sub: not published",
  7. "active": false,
  8. "nodes": [
  9. {
  10. "id": "in",
  11. "name": "Input",
  12. "type": "workflow-input",
  13. "position": {
  14. "x": 0,
  15. "y": 0
  16. },
  17. "config": {
  18. "fields": [
  19. {
  20. "name": "n",
  21. "type": "number",
  22. "required": true
  23. }
  24. ]
  25. }
  26. },
  27. {
  28. "id": "out",
  29. "name": "Output",
  30. "type": "workflow-output",
  31. "position": {
  32. "x": 0,
  33. "y": 100
  34. },
  35. "config": {}
  36. }
  37. ],
  38. "connections": [
  39. {
  40. "sourceNodeId": "in",
  41. "sourceOutput": "main",
  42. "targetNodeId": "out",
  43. "targetInput": "data"
  44. }
  45. ]
  46. }
  47. ],
  48. "nodes": [
  49. {
  50. "id": "n1",
  51. "name": "Trigger",
  52. "type": "click-trigger",
  53. "position": {
  54. "x": 0,
  55. "y": 0
  56. },
  57. "config": {}
  58. },
  59. {
  60. "id": "call",
  61. "name": "Call",
  62. "type": "call-workflow",
  63. "position": {
  64. "x": 0,
  65. "y": 100
  66. },
  67. "config": {
  68. "workflowId": "{{helper:sub}}",
  69. "inputSource": "fields",
  70. "fields": [
  71. {
  72. "name": "n",
  73. "value": "1"
  74. }
  75. ]
  76. }
  77. }
  78. ],
  79. "connections": [
  80. {
  81. "sourceNodeId": "n1",
  82. "sourceOutput": "main",
  83. "targetNodeId": "call",
  84. "targetInput": "data"
  85. }
  86. ],
  87. "expect": {
  88. "call": {
  89. "status": "failed",
  90. "errorContains": "is not active"
  91. }
  92. }
  93. }