@gregoriusrippenstein/erlang-red-unittest 0.21.0 → 0.21.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (83) hide show
  1. package/examples/assert values/ignores failures if requested and boolean not-equal test.json +1 -0
  2. package/examples/catch/catch all in group except those handler elsewhere.json +1 -1
  3. package/examples/catch/deal with it yourself.json +1 -1
  4. package/examples/catch/don't catch if the node isn't selected.json +1 -1
  5. package/examples/change/set functionality.json +1 -1
  6. package/examples/complete/split node.json +1 -1
  7. package/examples/debug/Jsonata expressions in output field.json +1 -0
  8. package/examples/debug/ensure debug messages are generated.json +1 -1
  9. package/examples/debug/handle largish json files as content.json +1 -1
  10. package/examples/debug/status message counter.json +1 -1
  11. package/examples/debug/type hadling of JSONata results (ered).json +1 -0
  12. package/examples/debug/type hadling of JSONata results (node-red).json +1 -0
  13. package/examples/delay/respect the reset flag and dont pass on the reset msg.json +1 -0
  14. package/examples/exec/handle multiple process at once (ered).json +1 -0
  15. package/examples/exec/handle multiple process at once (nred).json +1 -0
  16. package/examples/exec/support timeout specification (ered).json +1 -0
  17. package/examples/exec/support timeout specification (nred).json +1 -0
  18. package/examples/exec/synchronised execution (ered).json +1 -0
  19. package/examples/exec/synchronised execution (nred).json +1 -0
  20. package/examples/file in/basic functionality of being able to read a file.json +1 -1
  21. package/examples/file in/will accept file name from msg obj.json +1 -1
  22. package/examples/filter/ignore initial value.json +1 -1
  23. package/examples/filter/post if value changed.json +1 -1
  24. package/examples/flowhubpull/retrieve flow id.json +1 -1
  25. package/examples/function/divide by zero throws kills node.json +1 -1
  26. package/examples/function/ensure /"on stop/" code is executed.json" +1 -1
  27. package/examples/function/function and module work together.json +1 -1
  28. package/examples/function/handle corrupt code.json +1 -1
  29. package/examples/function/set node context.json +1 -1
  30. package/examples/function/support timeout setting.json +1 -1
  31. package/examples/function/supports completed node.json +1 -1
  32. package/examples/http/Dynamic Routing.json +1 -1
  33. package/examples/http/POST & GET have different endpoints.json +1 -1
  34. package/examples/http/dynamic redirect.json +1 -1
  35. package/examples/http/have params in the path.json +1 -1
  36. package/examples/http/http static routing.json +1 -1
  37. package/examples/http/multiple endpoints don't all get the request.json +1 -1
  38. package/examples/http/nodes should be able to handle requests.json +1 -1
  39. package/examples/http/post requests - json content.json +1 -1
  40. package/examples/http/request parses JSON conent.json +1 -1
  41. package/examples/http/set content type.json +1 -1
  42. package/examples/http/support query string on get request.json +1 -1
  43. package/examples/inject/repeat interval.json +1 -1
  44. package/examples/inject/trigger after - does not trigger.json +1 -1
  45. package/examples/inject/unsupported JSONata function.json +1 -1
  46. package/examples/join/manual config with count & nested property name.json +1 -1
  47. package/examples/json/parse example json content.json +1 -1
  48. package/examples/json/raise exception if content not valid.json +1 -1
  49. package/examples/json/support prettify json content.json +1 -1
  50. package/examples/link nodes/across flow tabs.json +1 -1
  51. package/examples/link nodes/cascading link calls.json +1 -1
  52. package/examples/markdown/allow for inline html.json +1 -1
  53. package/examples/markdown/convert markdown to html.json +1 -1
  54. package/examples/markdown/support code block.json +1 -1
  55. package/examples/mqtt/auto-(re)connect.json +1 -1
  56. package/examples/range/basic examples.json +1 -1
  57. package/examples/split/Array type.json +1 -1
  58. package/examples/split/binary type.json +1 -1
  59. package/examples/split/work with binary data as string data (ered).json +1 -0
  60. package/examples/split/work with binary data as string data (nred).json +1 -0
  61. package/examples/statemachine/exception if no action to perform.json +1 -1
  62. package/examples/status/basic working version.json +1 -1
  63. package/examples/status/only one message per status value.json +1 -1
  64. package/examples/switch/JSONata undefined value & exceptions.json +1 -1
  65. package/examples/switch/post debug on JSONata exception.json +1 -1
  66. package/examples/switch/raise exception if JSONata has exception.json +1 -1
  67. package/examples/tcp/Bad value on output port (3425).json +1 -1
  68. package/examples/tcp/multiple tcp in connectors (1194).json +1 -1
  69. package/examples/template/support mustache template.json +1 -1
  70. package/nodes/ut-assert-debug.js +239 -2
  71. package/package.json +3 -2
  72. package/plugins/sidebar.html +79 -13
  73. package/priv/testdata/helloworld.txt +1 -0
  74. package/priv/testdata/test.json +126 -0
  75. package/examples/.core/assert values ignores failures if requested.json +0 -1
  76. package/examples/debug/handling of Jsonata expressions.json +0 -1
  77. package/examples/debug/type hadling of JSONata reslults (ered).json +0 -1
  78. package/examples/debug/type hadling of JSONata reslults (node-red).json +0 -1
  79. package/examples/exec/handle multiple process at once.json +0 -1
  80. package/examples/exec/support timeout specification.json +0 -1
  81. package/examples/exec/synchronised execution.json +0 -1
  82. package/examples/split/work with binary data as string data.json +0 -1
  83. /package/examples/comment/{what is there to test?.json → what is there to test-.json} +0 -0
@@ -0,0 +1 @@
1
+ [{"id":"0e54563ba63b1501","type":"tab","label":"[assert values] ignores failures if requested and boolean not-equal test","disabled":false,"info":"## ignore failures if one succeeds\n\nA switch on the assert values node that allows it to ignore failures if and only if one test was successful.\n\nNote in this setting, there is no message sent on success or failure.\n\nThis status is only computed when the node is stopped, i.e., the whole flow is stopped.","env":[]},{"id":"b96b25c81ffde2d5","type":"group","z":"0e54563ba63b1501","name":"with no tests, an assert values node is true","style":{"label":true},"nodes":["94fe955d500666d3","5c3616418bb07f28","8a7f0152df036c71","2f4cf817bc093586"],"x":300,"y":1134,"w":678,"h":240.5},{"id":"8c5f4a89fa17b8aa","type":"group","z":"0e54563ba63b1501","name":"true with no tests even if ignoring failures","style":{"label":true},"nodes":["caed8b03803cf4dc","076081d6a85ac218","783b8e75afe662e7","cf1984315a7efdec"],"x":309,"y":736,"w":582,"h":337.5},{"id":"523c46ef8e93bd7c","type":"ut-assert-values","z":"0e54563ba63b1501","name":"","ignore_failure_if_succeed":true,"rules":[{"t":"eql","p":"payload","pt":"msg","to":"success","tot":"str"}],"x":862,"y":446.5,"wires":[[]]},{"id":"295a12ef1ddcd098","type":"inject","z":"0e54563ba63b1501","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"success","payloadType":"str","x":328,"y":314,"wires":[["523c46ef8e93bd7c"]]},{"id":"f0e8e9e90c57db74","type":"inject","z":"0e54563ba63b1501","name":"failure","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":444,"y":474,"wires":[["523c46ef8e93bd7c"]]},{"id":"9de952f98805912e","type":"inject","z":"0e54563ba63b1501","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"failure","payloadType":"str","x":532,"y":574,"wires":[["523c46ef8e93bd7c"]]},{"id":"5ee5fc2d69e70b6f","type":"inject","z":"0e54563ba63b1501","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"success","payloadType":"str","x":298,"y":391,"wires":[["523c46ef8e93bd7c"]]},{"id":"caed8b03803cf4dc","type":"ut-assert-values","z":"0e54563ba63b1501","g":"8c5f4a89fa17b8aa","name":"","ignore_failure_if_succeed":true,"rules":[],"x":785,"y":884,"wires":[[]]},{"id":"076081d6a85ac218","type":"inject","z":"0e54563ba63b1501","g":"8c5f4a89fa17b8aa","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":422,"y":881.5,"wires":[["caed8b03803cf4dc"]]},{"id":"783b8e75afe662e7","type":"inject","z":"0e54563ba63b1501","g":"8c5f4a89fa17b8aa","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":440,"y":1032.5,"wires":[["caed8b03803cf4dc"]]},{"id":"cf1984315a7efdec","type":"inject","z":"0e54563ba63b1501","g":"8c5f4a89fa17b8aa","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":415,"y":777,"wires":[["caed8b03803cf4dc"]]},{"id":"94fe955d500666d3","type":"ut-assert-values","z":"0e54563ba63b1501","g":"b96b25c81ffde2d5","name":"","ignore_failure_if_succeed":false,"rules":[],"x":872,"y":1185,"wires":[[]]},{"id":"5c3616418bb07f28","type":"inject","z":"0e54563ba63b1501","g":"b96b25c81ffde2d5","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":459,"y":1271.5,"wires":[["94fe955d500666d3"]]},{"id":"8a7f0152df036c71","type":"inject","z":"0e54563ba63b1501","g":"b96b25c81ffde2d5","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":527,"y":1333.5,"wires":[["94fe955d500666d3"]]},{"id":"2f4cf817bc093586","type":"inject","z":"0e54563ba63b1501","g":"b96b25c81ffde2d5","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":406,"y":1175,"wires":[["94fe955d500666d3"]]},{"id":"894b75c34c09984b","type":"inject","z":"0e54563ba63b1501","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"failure","payloadType":"str","x":504,"y":529,"wires":[[]]},{"id":"e495537cf88dee3f","type":"inject","z":"0e54563ba63b1501","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"failure","payloadType":"str","x":423,"y":227,"wires":[["523c46ef8e93bd7c"]]},{"id":"d934b8bcc3811dfa","type":"inject","z":"0e54563ba63b1501","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"failure","payloadType":"str","x":574,"y":259,"wires":[["523c46ef8e93bd7c"]]},{"id":"0b6367a9bae84ee8","type":"inject","z":"0e54563ba63b1501","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"failure","payloadType":"str","x":655,"y":318,"wires":[["523c46ef8e93bd7c"]]},{"id":"78b1ee0d3a5f3619","type":"inject","z":"0e54563ba63b1501","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"failure","payloadType":"str","x":734,"y":364,"wires":[["523c46ef8e93bd7c"]]},{"id":"ef3e3b6460bb1db4","type":"ut-assert-values","z":"0e54563ba63b1501","name":"","ignore_failure_if_succeed":false,"rules":[{"t":"noteql","p":"payload","pt":"msg","to":"true","tot":"bool"}],"x":1582,"y":656,"wires":[[]]},{"id":"5de04f62ce0b8927","type":"inject","z":"0e54563ba63b1501","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"false","payloadType":"bool","x":1232,"y":571,"wires":[["ef3e3b6460bb1db4"]]},{"id":"34e73f63beb41cbd","type":"ut-assert-values","z":"0e54563ba63b1501","name":"","ignore_failure_if_succeed":false,"rules":[{"t":"noteql","p":"payload","pt":"msg","to":"false","tot":"bool"}],"x":1577,"y":758,"wires":[[]]},{"id":"378e2d071941c582","type":"inject","z":"0e54563ba63b1501","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"true","payloadType":"bool","x":1227,"y":673,"wires":[["34e73f63beb41cbd"]]}]
@@ -1 +1 @@
1
- [{"id":"eb24c92ce5621760","type":"tab","label":"[catch] catch all in group except those handler elsewhere","disabled":false,"info":"","env":[]},{"id":"5ea70f167d125afc","type":"group","z":"eb24c92ce5621760","style":{"stroke":"#999999","stroke-opacity":"1","fill":"none","fill-opacity":"1","label":true,"label-position":"nw","color":"#a4a4a4"},"nodes":["a703aaba38a383b9","3bf38b22cdb0fa95","98023732b523561f","e846b7ff5f8f635f","b4a34cf82fc8630d","0fb3435653486c14"],"x":347.85716247558594,"y":426.8214364051819,"w":956.1428375244141,"h":271.46425199508667},{"id":"a703aaba38a383b9","type":"function","z":"eb24c92ce5621760","g":"5ea70f167d125afc","name":"function 22","func":"node.wrnd(\"dd\")\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":952.4285736083984,"y":657.2856884002686,"wires":[[]]},{"id":"3bf38b22cdb0fa95","type":"inject","z":"eb24c92ce5621760","g":"5ea70f167d125afc","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":545.2857666015625,"y":657.2856884002686,"wires":[["a703aaba38a383b9"]]},{"id":"98023732b523561f","type":"catch","z":"eb24c92ce5621760","g":"5ea70f167d125afc","name":"","scope":["a703aaba38a383b9"],"uncaught":false,"x":952.4285736083984,"y":604.4285936355591,"wires":[["0fb3435653486c14"]]},{"id":"e846b7ff5f8f635f","type":"catch","z":"eb24c92ce5621760","g":"5ea70f167d125afc","name":"catch all in group except those already dealt with","scope":"group","uncaught":true,"x":553.8571624755859,"y":467.8214364051819,"wires":[["b4a34cf82fc8630d"]]},{"id":"b4a34cf82fc8630d","type":"ut-assert-failure","z":"eb24c92ce5621760","g":"5ea70f167d125afc","name":"","x":936,"y":467.8214364051819,"wires":[]},{"id":"0fb3435653486c14","type":"ut-assert-success","z":"eb24c92ce5621760","g":"5ea70f167d125afc","name":"","msglimit":"==","count":1,"x":1188,"y":467.8214364051819,"wires":[]}]
1
+ [{"id":"eb24c92ce5621760","type":"tab","label":"[catch] catch all in group except those handler elsewhere","disabled":false,"info":"","env":[{"name":"NODE_RED_ONLY","value":"true","type":"bool"}]},{"id":"5ea70f167d125afc","type":"group","z":"eb24c92ce5621760","style":{"color":"#a4a4a4","fill":"none","fill-opacity":"1","label":true,"label-position":"nw","stroke":"#999999","stroke-opacity":"1"},"nodes":["a703aaba38a383b9","3bf38b22cdb0fa95","98023732b523561f","e846b7ff5f8f635f","b4a34cf82fc8630d","0fb3435653486c14"],"x":347.85716247558594,"y":426.8214364051819,"w":956.1428375244141,"h":271.46425199508667},{"id":"a703aaba38a383b9","type":"function","z":"eb24c92ce5621760","g":"5ea70f167d125afc","name":"function 22","func":"node.wrnd(\"dd\")\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":952.4285736083984,"y":657.2856884002686,"wires":[[]]},{"id":"3bf38b22cdb0fa95","type":"inject","z":"eb24c92ce5621760","g":"5ea70f167d125afc","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":545.2857666015625,"y":657.2856884002686,"wires":[["a703aaba38a383b9"]]},{"id":"98023732b523561f","type":"catch","z":"eb24c92ce5621760","g":"5ea70f167d125afc","name":"","scope":["a703aaba38a383b9"],"uncaught":false,"x":952.4285736083984,"y":604.4285936355591,"wires":[["0fb3435653486c14"]]},{"id":"e846b7ff5f8f635f","type":"catch","z":"eb24c92ce5621760","g":"5ea70f167d125afc","name":"catch all in group except those already dealt with","scope":"group","uncaught":true,"x":553.8571624755859,"y":467.8214364051819,"wires":[["b4a34cf82fc8630d"]]},{"id":"b4a34cf82fc8630d","type":"ut-assert-failure","z":"eb24c92ce5621760","g":"5ea70f167d125afc","name":"","x":936,"y":467.8214364051819,"wires":[]},{"id":"0fb3435653486c14","type":"ut-assert-success","z":"eb24c92ce5621760","g":"5ea70f167d125afc","name":"","msglimit":"==","count":1,"x":1188,"y":467.8214364051819,"wires":[]}]
@@ -1 +1 @@
1
- [{"id":"f94db507552f4934","type":"tab","label":"[catch] deal with it yourself","disabled":false,"info":"If the catch node is disabled, then a node has to do something by itself\n","env":[]},{"id":"9e18baf7e0889dad","type":"catch","z":"f94db507552f4934","d":true,"name":"","scope":null,"uncaught":false,"x":361,"y":467.25,"wires":[["143c0ba573b8b6b8"]]},{"id":"d46005ed85071b3d","type":"inject","z":"f94db507552f4934","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":144,"y":467.25,"wires":[["44c66f81d4f45cc9","8231e588c38b43cf"]]},{"id":"44c66f81d4f45cc9","type":"file in","z":"f94db507552f4934","name":"this file does not exist","filename":"this file does not exist","filenameType":"str","format":"utf8","chunk":false,"sendError":false,"encoding":"none","allProps":false,"x":398,"y":617,"wires":[["582cb0e7df56cd98"]]},{"id":"8231e588c38b43cf","type":"ut-assert-values","z":"f94db507552f4934","name":"","rules":[{"p":"error","pt":"msg","t":"notset"}],"x":360,"y":288,"wires":[[]]},{"id":"e2c4d5d899ec5ba9","type":"ut-assert-debug","z":"f94db507552f4934","name":"","scope":["44c66f81d4f45cc9"],"nodeid":"44c66f81d4f45cc9","msgtype":"error","inverse":false,"x":547,"y":692.5,"wires":[["4776773f6dc5f3b9"]]},{"id":"143c0ba573b8b6b8","type":"ut-assert-failure","z":"f94db507552f4934","name":"","x":631,"y":467.25,"wires":[]},{"id":"582cb0e7df56cd98","type":"ut-assert-failure","z":"f94db507552f4934","name":"","x":682,"y":559,"wires":[]},{"id":"4776773f6dc5f3b9","type":"ut-assert-values","z":"f94db507552f4934","name":"","ignore_failure_if_succeed":false,"rules":[{"t":"eql","p":"data.format","pt":"msg","to":"error","tot":"str"},{"t":"eql","p":"data.name","pt":"msg","to":"this file does not exist","tot":"str"},{"t":"eql","p":"data.level","pt":"msg","to":"20","tot":"num"}],"x":921,"y":692.5,"wires":[[]]}]
1
+ [{"id":"f94db507552f4934","type":"tab","label":"[catch] deal with it yourself","disabled":false,"info":"If the catch node is disabled, then a node has to do something by itself\n","env":[]},{"id":"9e18baf7e0889dad","type":"catch","z":"f94db507552f4934","d":true,"name":"","scope":null,"uncaught":false,"x":361,"y":467.25,"wires":[["143c0ba573b8b6b8"]]},{"id":"d46005ed85071b3d","type":"inject","z":"f94db507552f4934","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":144,"y":467.25,"wires":[["44c66f81d4f45cc9","8231e588c38b43cf"]]},{"id":"44c66f81d4f45cc9","type":"file in","z":"f94db507552f4934","name":"this file does not exist","filename":"this file does not exist","filenameType":"str","format":"utf8","chunk":false,"sendError":false,"encoding":"none","allProps":false,"x":398,"y":617,"wires":[["582cb0e7df56cd98"]]},{"id":"8231e588c38b43cf","type":"ut-assert-values","z":"f94db507552f4934","name":"","rules":[{"p":"error","pt":"msg","t":"notset"}],"x":360,"y":288,"wires":[[]]},{"id":"e2c4d5d899ec5ba9","type":"ut-assert-debug","z":"f94db507552f4934","name":"","scope":["44c66f81d4f45cc9"],"nodeid":"44c66f81d4f45cc9","msgtype":"error","inverse":false,"x":547,"y":692.5,"wires":[["4776773f6dc5f3b9"]]},{"id":"143c0ba573b8b6b8","type":"ut-assert-failure","z":"f94db507552f4934","name":"","x":631,"y":467.25,"wires":[]},{"id":"582cb0e7df56cd98","type":"ut-assert-failure","z":"f94db507552f4934","name":"","x":682,"y":559,"wires":[]},{"id":"4776773f6dc5f3b9","type":"ut-assert-values","z":"f94db507552f4934","name":"","ignore_failure_if_succeed":false,"rules":[{"t":"eql","p":"data.id","pt":"msg","to":"44c66f81d4f45cc9","tot":"str"},{"t":"eql","p":"data.name","pt":"msg","to":"this file does not exist","tot":"str"},{"t":"eql","p":"data['level']","pt":"msg","to":"20","tot":"num"}],"x":921,"y":692.5,"wires":[[]]}]
@@ -1 +1 @@
1
- [{"id":"16b254125478329a","type":"tab","label":"[catch] don't catch if the node isn't selected","disabled":false,"info":"","env":[{"name":"ERED_PENDING","value":"false","type":"bool"}]},{"id":"82f3f6b3ff681682","type":"catch","z":"16b254125478329a","name":"","scope":["c54c1c52fe116e87","c970c0e90333caef"],"uncaught":false,"x":408,"y":486,"wires":[["a3e89a14b26e7684"]]},{"id":"c970c0e90333caef","type":"inject","z":"16b254125478329a","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":171,"y":373,"wires":[["06c87a703facf99b"]]},{"id":"06c87a703facf99b","type":"file in","z":"16b254125478329a","name":"","filename":"dfsafsdf","filenameType":"str","format":"utf8","chunk":false,"sendError":false,"encoding":"none","allProps":false,"x":413,"y":545,"wires":[[]]},{"id":"a3e89a14b26e7684","type":"ut-assert-failure","z":"16b254125478329a","name":"","x":732,"y":424.5,"wires":[]},{"id":"e192e68e59d47ac0","type":"ut-assert-debug","z":"16b254125478329a","name":"","scope":["06c87a703facf99b"],"nodeid":"06c87a703facf99b","msgtype":"error","inverse":false,"x":424,"y":603.5,"wires":[["8d548e4d5baf78dc"]]},{"id":"8d548e4d5baf78dc","type":"ut-assert-values","z":"16b254125478329a","name":"","ignore_failure_if_succeed":false,"rules":[{"t":"eql","p":"data.id","pt":"msg","to":"06c87a703facf99b","tot":"str"},{"t":"eql","p":"data.type","pt":"msg","to":"file in","tot":"str"},{"t":"eql","p":"data['level']","pt":"msg","to":"20","tot":"num"}],"x":912,"y":603.5,"wires":[[]]}]
1
+ [{"id":"16b254125478329a","type":"tab","label":"[catch] don't catch if the node isn't selected","disabled":false,"info":"","env":[{"name":"ERED_PENDING","value":"false","type":"bool"}]},{"id":"82f3f6b3ff681682","type":"catch","z":"16b254125478329a","name":"","scope":["c970c0e90333caef"],"uncaught":false,"x":408,"y":486,"wires":[["a3e89a14b26e7684"]]},{"id":"c970c0e90333caef","type":"inject","z":"16b254125478329a","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":171,"y":373,"wires":[["06c87a703facf99b"]]},{"id":"06c87a703facf99b","type":"file in","z":"16b254125478329a","name":"","filename":"dfsafsdf","filenameType":"str","format":"utf8","chunk":false,"sendError":false,"encoding":"none","allProps":false,"x":413,"y":545,"wires":[[]]},{"id":"a3e89a14b26e7684","type":"ut-assert-failure","z":"16b254125478329a","name":"","x":732,"y":424.5,"wires":[]},{"id":"e192e68e59d47ac0","type":"ut-assert-debug","z":"16b254125478329a","name":"","scope":["06c87a703facf99b"],"nodeid":"06c87a703facf99b","msgtype":"error","inverse":false,"x":424,"y":603.5,"wires":[["8d548e4d5baf78dc"]]},{"id":"8d548e4d5baf78dc","type":"ut-assert-values","z":"16b254125478329a","name":"","ignore_failure_if_succeed":false,"rules":[{"t":"eql","p":"data.id","pt":"msg","to":"06c87a703facf99b","tot":"str"},{"t":"eql","p":"data['level']","pt":"msg","to":"20","tot":"num"}],"x":912,"y":603.5,"wires":[[]]}]
@@ -1 +1 @@
1
- [{"id":"4657dbc0aa4a97bb","type":"tab","label":"[change] set functionality","disabled":false,"info":"Supported are:\n\n- setting a value that is a str type\n\n```\n \"t\": \"set\",\n \"p\": \"fubar\",\n \"pt\": \"msg\",\n \"to\": \"snafu\",\n \"tot\": \"str\"\n```\n\n- setting a value from another property on the msg object \n\n```\n \"t\": \"set\",\n \"p\": \"fubar\",\n \"pt\": \"msg\",\n \"to\": \"snafu\",\n \"tot\": \"msg\"\n```\n\nAlso ensure that if the source property is not defined on the msg, then the target property is set to undefined (or empty as is the case here).\n\n","env":[]},{"id":"38e09ddf95db5069","type":"change","z":"4657dbc0aa4a97bb","name":"","rules":[{"p":"fubar","pt":"msg","t":"set","to":"snafu","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":427,"y":425,"wires":[["1211d0e78178856d"]]},{"id":"f86ba5f64447659b","type":"inject","z":"4657dbc0aa4a97bb","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"topic","payload":"","payloadType":"date","x":253,"y":260,"wires":[["38e09ddf95db5069"]]},{"id":"1211d0e78178856d","type":"ut-assert-values","z":"4657dbc0aa4a97bb","name":"","rules":[{"p":"payload","pt":"msg","t":"set"},{"p":"fubar","pt":"msg","t":"eql","to":"snafu","tot":"str"},{"p":"topic","pt":"msg","t":"eql","to":"topic","tot":"str"}],"x":634,"y":575,"wires":[[]]},{"id":"a177012a0c9e6c19","type":"change","z":"4657dbc0aa4a97bb","name":"","rules":[{"t":"set","p":"fubar","pt":"msg","to":"snafu","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":636,"y":245,"wires":[["09d3f8b00f8e8156"]]},{"id":"f2aaf0e5915a10fa","type":"inject","z":"4657dbc0aa4a97bb","name":"","props":[{"p":"snafu","v":"the value of snafu","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":466,"y":130,"wires":[["a177012a0c9e6c19"]]},{"id":"09d3f8b00f8e8156","type":"ut-assert-values","z":"4657dbc0aa4a97bb","name":"","rules":[{"p":"fubar","pt":"msg","t":"eql","to":"the value of snafu","tot":"str"},{"p":"snafu","pt":"msg","t":"eql","to":"the value of snafu","tot":"str"}],"x":833,"y":382,"wires":[[]]},{"id":"238152625b291c2e","type":"inject","z":"4657dbc0aa4a97bb","name":"","props":[],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":360,"y":751,"wires":[["8a1ac220f84437db"]]},{"id":"8a1ac220f84437db","type":"change","z":"4657dbc0aa4a97bb","name":"","rules":[{"t":"set","p":"fubar","pt":"msg","to":"snafu","tot":"msg","dc":true}],"action":"","property":"","from":"","to":"","reg":false,"x":585,"y":774,"wires":[["5d13af8e122e1fe8"]]},{"id":"5d13af8e122e1fe8","type":"ut-assert-values","z":"4657dbc0aa4a97bb","name":"","ignore_failure_if_succeed":false,"rules":[{"t":"notset","p":"fubar","pt":"msg"},{"t":"notset","p":"snafu","pt":"msg"}],"x":879,"y":836,"wires":[[]]}]
1
+ [{"id":"4657dbc0aa4a97bb","type":"tab","label":"[change] set functionality","disabled":false,"info":"Supported are:\n\n- setting a value that is a str type\n\n```\n \"t\": \"set\",\n \"p\": \"fubar\",\n \"pt\": \"msg\",\n \"to\": \"snafu\",\n \"tot\": \"str\"\n```\n\n- setting a value from another property on the msg object \n\n```\n \"t\": \"set\",\n \"p\": \"fubar\",\n \"pt\": \"msg\",\n \"to\": \"snafu\",\n \"tot\": \"msg\"\n```\n\nAlso ensure that if the source property is not defined on the msg, then the target property is set to undefined (or empty as is the case here).\n\n## ERed pending\n\nThe non-setting of an attribute if the original attribute wasn't set test fails in ERed.","env":[{"name":"ERED_PENDING","value":"true","type":"bool"}]},{"id":"38e09ddf95db5069","type":"change","z":"4657dbc0aa4a97bb","name":"","rules":[{"p":"fubar","pt":"msg","t":"set","to":"snafu","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":427,"y":425,"wires":[["1211d0e78178856d"]]},{"id":"f86ba5f64447659b","type":"inject","z":"4657dbc0aa4a97bb","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"topic","payload":"","payloadType":"date","x":253,"y":260,"wires":[["38e09ddf95db5069"]]},{"id":"1211d0e78178856d","type":"ut-assert-values","z":"4657dbc0aa4a97bb","name":"","rules":[{"p":"payload","pt":"msg","t":"set"},{"p":"fubar","pt":"msg","t":"eql","to":"snafu","tot":"str"},{"p":"topic","pt":"msg","t":"eql","to":"topic","tot":"str"}],"x":634,"y":575,"wires":[[]]},{"id":"a177012a0c9e6c19","type":"change","z":"4657dbc0aa4a97bb","name":"","rules":[{"p":"fubar","pt":"msg","t":"set","to":"snafu","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":636,"y":245,"wires":[["09d3f8b00f8e8156"]]},{"id":"f2aaf0e5915a10fa","type":"inject","z":"4657dbc0aa4a97bb","name":"","props":[{"p":"snafu","v":"the value of snafu","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":466,"y":130,"wires":[["a177012a0c9e6c19"]]},{"id":"09d3f8b00f8e8156","type":"ut-assert-values","z":"4657dbc0aa4a97bb","name":"","rules":[{"p":"fubar","pt":"msg","t":"eql","to":"the value of snafu","tot":"str"},{"p":"snafu","pt":"msg","t":"eql","to":"the value of snafu","tot":"str"}],"x":833,"y":382,"wires":[[]]},{"id":"238152625b291c2e","type":"inject","z":"4657dbc0aa4a97bb","name":"","props":[],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":360,"y":751,"wires":[["8a1ac220f84437db"]]},{"id":"8a1ac220f84437db","type":"change","z":"4657dbc0aa4a97bb","name":"","rules":[{"t":"set","p":"fubar","pt":"msg","to":"snafu","tot":"msg","dc":true}],"action":"","property":"","from":"","to":"","reg":false,"x":585,"y":774,"wires":[["5d13af8e122e1fe8"]]},{"id":"5d13af8e122e1fe8","type":"ut-assert-values","z":"4657dbc0aa4a97bb","name":"","ignore_failure_if_succeed":false,"rules":[{"t":"notset","p":"fubar","pt":"msg"},{"t":"notset","p":"snafu","pt":"msg"}],"x":879,"y":836,"wires":[[]]}]
@@ -1 +1 @@
1
- [{"id":"8d041d29e8fbe087","type":"tab","label":"[complete] split node","disabled":false,"info":"## Complete node listening to a split node\n\nHere the complete node is listening to the split node and waiting for it to complete.\n\nThis is done once it sent out its four messages, it then sends a complete message to the complete node containing the original content.\n\nSplit nodes do not send out a complete per-message rather a complete for the message it received.\n\nIt is important to note which mesasge is complete: its the message a node receives with which it completes - for the complete node - not the message it passes out again. Or messages in the case of the split node.\n\n","env":[]},{"id":"801126629e8ab7c2","type":"inject","z":"8d041d29e8fbe087","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"[1,2,3,4]","payloadType":"json","x":243,"y":215,"wires":[["43e9c21fa8e74c31"]]},{"id":"50914d4efa31df6e","type":"complete","z":"8d041d29e8fbe087","name":"","scope":["43e9c21fa8e74c31"],"uncaught":false,"x":406,"y":390,"wires":[["f416b4f0c8e9f616","2f7dd0ef9d1497cc"]]},{"id":"43e9c21fa8e74c31","type":"split","z":"8d041d29e8fbe087","name":"","splt":"\\n","spltType":"str","arraySplt":1,"arraySpltType":"len","stream":false,"addname":"","property":"payload","x":405,"y":514,"wires":[["baa1ccd2a8a5c7bd","74a0ee31bf45938b"]]},{"id":"baa1ccd2a8a5c7bd","type":"join","z":"8d041d29e8fbe087","name":"","mode":"custom","build":"array","property":"","propertyType":"full","key":"topic","joiner":"\\n","joinerType":"str","useparts":false,"accumulate":false,"timeout":"","count":"4","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"num","reduceFixup":"","x":567.2856750488281,"y":628.3571691513062,"wires":[["ec28c749a29920aa"]]},{"id":"74a0ee31bf45938b","type":"ut-assert-success","z":"8d041d29e8fbe087","name":"","count":"4","x":878,"y":664.2142581939697,"wires":[]},{"id":"f416b4f0c8e9f616","type":"ut-assert-success","z":"8d041d29e8fbe087","name":"","count":1,"x":868,"y":431.42858505249023,"wires":[]},{"id":"2f7dd0ef9d1497cc","type":"ut-assert-values","z":"8d041d29e8fbe087","name":"","ignore_failure_if_succeed":false,"rules":[{"t":"eql","p":"complete.source.id","pt":"msg","to":"43e9c21fa8e74c31","tot":"str"},{"t":"eql","p":"payload","pt":"msg","to":"[1,2,3,4]","tot":"json"}],"x":878,"y":286.2142505645752,"wires":[[]]},{"id":"ec28c749a29920aa","type":"join","z":"8d041d29e8fbe087","name":"","mode":"custom","build":"array","property":"","propertyType":"full","key":"topic","joiner":"\\n","joinerType":"str","useparts":false,"accumulate":false,"timeout":"","count":"2","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"","reduceFixup":"","x":710.5714683532715,"y":721.7142391204834,"wires":[["1337f76196efe3ab"]]},{"id":"1337f76196efe3ab","type":"ut-assert-failure","z":"8d041d29e8fbe087","name":"","x":868,"y":795.5,"wires":[]}]
1
+ [{"id":"8d041d29e8fbe087","type":"tab","label":"[complete] split node","disabled":false,"info":"## Complete node listening to a split node\n\nHere the complete node is listening to the split node and waiting for it to complete.\n\nThis is done once it sent out its four messages, it then sends a complete message to the complete node containing the original content.\n\nSplit nodes do not send out a complete per-message rather a complete for the message it received.\n\nIt is important to note which mesasge is complete: its the message a node receives with which it completes - for the complete node - not the message it passes out again. Or messages in the case of the split node.\n\n","env":[]},{"id":"801126629e8ab7c2","type":"inject","z":"8d041d29e8fbe087","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"[1,2,3,4]","payloadType":"json","x":243,"y":215,"wires":[["43e9c21fa8e74c31"]]},{"id":"50914d4efa31df6e","type":"complete","z":"8d041d29e8fbe087","name":"","scope":["43e9c21fa8e74c31"],"uncaught":false,"x":406,"y":390,"wires":[["f416b4f0c8e9f616","2f7dd0ef9d1497cc"]]},{"id":"43e9c21fa8e74c31","type":"split","z":"8d041d29e8fbe087","name":"","splt":"\\n","spltType":"str","arraySplt":1,"arraySpltType":"len","stream":false,"addname":"","property":"payload","x":405,"y":514,"wires":[["baa1ccd2a8a5c7bd","74a0ee31bf45938b"]]},{"id":"baa1ccd2a8a5c7bd","type":"join","z":"8d041d29e8fbe087","name":"","mode":"custom","build":"array","property":"","propertyType":"full","key":"topic","joiner":"\\n","joinerType":"str","useparts":false,"accumulate":false,"timeout":"","count":"4","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"num","reduceFixup":"","x":567.2856750488281,"y":628.3571691513062,"wires":[["ec28c749a29920aa"]]},{"id":"74a0ee31bf45938b","type":"ut-assert-success","z":"8d041d29e8fbe087","name":"","count":"4","x":878,"y":664.2142581939697,"wires":[]},{"id":"f416b4f0c8e9f616","type":"ut-assert-success","z":"8d041d29e8fbe087","name":"","count":1,"x":868,"y":431.42858505249023,"wires":[]},{"id":"2f7dd0ef9d1497cc","type":"ut-assert-values","z":"8d041d29e8fbe087","name":"","ignore_failure_if_succeed":false,"rules":[{"t":"eql","p":"complete.source.id","pt":"msg","to":"43e9c21fa8e74c31","tot":"str"},{"t":"eql","p":"payload","pt":"msg","to":"[1,2,3,4]","tot":"json"},{"t":"eql","p":"complete.source.type","pt":"msg","to":"split","tot":"str"}],"x":878,"y":286.2142505645752,"wires":[[]]},{"id":"ec28c749a29920aa","type":"join","z":"8d041d29e8fbe087","name":"","mode":"custom","build":"array","property":"","propertyType":"full","key":"topic","joiner":"\\n","joinerType":"str","useparts":false,"accumulate":false,"timeout":"","count":"2","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"","reduceFixup":"","x":710.5714683532715,"y":721.7142391204834,"wires":[["1337f76196efe3ab"]]},{"id":"1337f76196efe3ab","type":"ut-assert-failure","z":"8d041d29e8fbe087","name":"","x":868,"y":795.5,"wires":[]}]
@@ -0,0 +1 @@
1
+ [{"id":"182731f54d855071","type":"tab","label":"[debug] Jsonata expressions in output field","disabled":false,"info":"## Debug node supports Jsonata expressions\n\nThese have to be also supported.\n\n## Erlang-Red only\n\nBecauese the status colour does not work in Node-RED. This test is a false failure test.","env":[{"name":"ERED_ONLY","value":"true","type":"bool"}]},{"id":"61a9f46f4e45d1df","type":"inject","z":"182731f54d855071","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"hello world","payloadType":"str","x":429,"y":553,"wires":[["891450618f8a6f69"]]},{"id":"fd16228152b89d92","type":"ut-assert-debug","z":"182731f54d855071","name":"","scope":["891450618f8a6f69"],"nodeid":"891450618f8a6f69","msgtype":"normal","inverse":false,"x":770,"y":598,"wires":[["46e301e1f826d17e"]]},{"id":"ac01b84d28e1742c","type":"ut-assert-status","z":"182731f54d855071","name":"","scope":["891450618f8a6f69"],"nodeid":"891450618f8a6f69","content":"hello world","colour":"grey","shape":"dot","inverse":false,"x":848.5714874267578,"y":536.7857341766357,"wires":[[]]},{"id":"891450618f8a6f69","type":"debug","z":"182731f54d855071","name":"debug 1","active":true,"tosidebar":true,"console":false,"tostatus":true,"complete":"$$.payload","targetType":"jsonata","statusVal":"$$.payload","statusType":"jsonata","x":690,"y":407,"wires":[]},{"id":"46e301e1f826d17e","type":"ut-assert-values","z":"182731f54d855071","name":"","ignore_failure_if_succeed":false,"rules":[{"p":"data.id","pt":"msg","t":"eql","to":"891450618f8a6f69","tot":"str"},{"p":"data.format","pt":"msg","t":"mth","to":"string","tot":"str"},{"p":"data.msg","pt":"msg","t":"eql","to":"hello world","tot":"str"}],"x":1160,"y":693,"wires":[[]]}]
@@ -1 +1 @@
1
- [{"id":"34f859d75b76d03c","type":"tab","label":"[debug] ensure debug messages are generated","disabled":false,"info":"","env":[]},{"id":"2b76bf763f582018","type":"ut-assert-debug","z":"34f859d75b76d03c","name":"","scope":["622df56860effec3"],"nodeid":"","msgtype":"normal","inverse":false,"x":718,"y":499,"wires":[[]]},{"id":"eabb7d02fd623806","type":"inject","z":"34f859d75b76d03c","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":249,"y":372,"wires":[["622df56860effec3"]]},{"id":"622df56860effec3","type":"debug","z":"34f859d75b76d03c","name":"debug 1","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":628,"y":457,"wires":[]},{"id":"73c3460b00529cad","type":"ut-assert-debug","z":"34f859d75b76d03c","name":"","scope":["d6140fc723c1c3bd"],"nodeid":"","msgtype":"error","inverse":false,"x":796,"y":634,"wires":[[]]},{"id":"5beca0e0f8232ad5","type":"inject","z":"34f859d75b76d03c","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":252,"y":470,"wires":[["d6140fc723c1c3bd"]]},{"id":"d6140fc723c1c3bd","type":"function","z":"34f859d75b76d03c","name":"function 1","func":"node.wran(\"ddd\")\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":704,"y":597,"wires":[[]]},{"id":"c1f94cfa4ba96cf7","type":"inject","z":"34f859d75b76d03c","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":243,"y":275,"wires":[["b89ab5a5ce54ec12"]]},{"id":"b89ab5a5ce54ec12","type":"function","z":"34f859d75b76d03c","name":"generate warning message","func":"node.warn(\"ddd\")\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":658,"y":300,"wires":[[]]},{"id":"e3f8a1668bc2fb07","type":"ut-assert-debug","z":"34f859d75b76d03c","name":"","scope":["b89ab5a5ce54ec12"],"nodeid":"","msgtype":"warning","inverse":false,"x":767,"y":350,"wires":[[]]}]
1
+ [{"id":"34f859d75b76d03c","type":"tab","label":"[debug] ensure debug messages are generated","disabled":false,"info":"","env":[{"name":"NODE_RED_ONLY","value":"true","type":"bool"}]},{"id":"2b76bf763f582018","type":"ut-assert-debug","z":"34f859d75b76d03c","name":"","scope":["622df56860effec3"],"nodeid":"","msgtype":"normal","inverse":false,"x":718,"y":499,"wires":[[]]},{"id":"eabb7d02fd623806","type":"inject","z":"34f859d75b76d03c","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":249,"y":372,"wires":[["622df56860effec3"]]},{"id":"622df56860effec3","type":"debug","z":"34f859d75b76d03c","name":"debug 1","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":628,"y":457,"wires":[]},{"id":"73c3460b00529cad","type":"ut-assert-debug","z":"34f859d75b76d03c","name":"","scope":["d6140fc723c1c3bd"],"nodeid":"","msgtype":"error","inverse":false,"x":796,"y":634,"wires":[[]]},{"id":"5beca0e0f8232ad5","type":"inject","z":"34f859d75b76d03c","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":252,"y":470,"wires":[["d6140fc723c1c3bd"]]},{"id":"d6140fc723c1c3bd","type":"function","z":"34f859d75b76d03c","name":"function 1","func":"node.wran(\"ddd\")\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":704,"y":597,"wires":[[]]},{"id":"c1f94cfa4ba96cf7","type":"inject","z":"34f859d75b76d03c","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":243,"y":275,"wires":[["b89ab5a5ce54ec12"]]},{"id":"b89ab5a5ce54ec12","type":"function","z":"34f859d75b76d03c","name":"generate warning message","func":"node.warn(\"ddd\")\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":658,"y":300,"wires":[[]]},{"id":"e3f8a1668bc2fb07","type":"ut-assert-debug","z":"34f859d75b76d03c","name":"","scope":["b89ab5a5ce54ec12"],"nodeid":"","msgtype":"warning","inverse":false,"x":767,"y":350,"wires":[[]]}]
@@ -1 +1 @@
1
- [{"id":"af57984ed3302e3e","type":"tab","label":"[debug] handle largish json files as content","disabled":false,"info":"something is going wrong.","env":[{"name":"ERED_ONLY","value":"true","type":"bool"}]},{"id":"eed6e232d1d7b941","type":"inject","z":"af57984ed3302e3e","name":"","props":[{"p":"filename","v":"${priv}/testdata/test.json","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":203,"y":311,"wires":[["f07ab922c0b0d713","334521bc24b21544"]]},{"id":"f07ab922c0b0d713","type":"file in","z":"af57984ed3302e3e","name":"","filename":"filename","filenameType":"msg","format":"utf8","chunk":false,"sendError":false,"encoding":"none","allProps":false,"x":392,"y":420.5,"wires":[["a0f648ebec37e562","7718f360b8eb0106"]]},{"id":"a0f648ebec37e562","type":"debug","z":"af57984ed3302e3e","name":"debug 9 [af57984ed3302e3e]","active":true,"tosidebar":true,"console":true,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":730,"y":520,"wires":[]},{"id":"334521bc24b21544","type":"debug","z":"af57984ed3302e3e","name":"debug 10 [af57984ed3302e3e]","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":730,"y":311,"wires":[]},{"id":"7718f360b8eb0106","type":"ut-assert-success","z":"af57984ed3302e3e","name":"","count":1,"x":670,"y":420.5,"wires":[]}]
1
+ [{"id":"af57984ed3302e3e","type":"tab","label":"[debug] handle largish json files as content","disabled":false,"info":"something is going wrong.","env":[{"name":"ERED_ONLY","value":"false","type":"bool"}]},{"id":"eed6e232d1d7b941","type":"inject","z":"af57984ed3302e3e","name":"","props":[{"p":"filename","v":"${priv}/testdata/test.json","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":203,"y":311,"wires":[["f07ab922c0b0d713","334521bc24b21544"]]},{"id":"f07ab922c0b0d713","type":"file in","z":"af57984ed3302e3e","name":"","filename":"filename","filenameType":"msg","format":"utf8","chunk":false,"sendError":false,"encoding":"none","allProps":false,"x":392,"y":420.5,"wires":[["a0f648ebec37e562","7718f360b8eb0106"]]},{"id":"a0f648ebec37e562","type":"debug","z":"af57984ed3302e3e","name":"debug 9 [af57984ed3302e3e]","active":true,"tosidebar":true,"console":true,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":730,"y":520,"wires":[]},{"id":"334521bc24b21544","type":"debug","z":"af57984ed3302e3e","name":"debug 10 [af57984ed3302e3e]","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":730,"y":311,"wires":[]},{"id":"7718f360b8eb0106","type":"ut-assert-success","z":"af57984ed3302e3e","name":"","count":1,"x":670,"y":420.5,"wires":[]}]
@@ -1 +1 @@
1
- [{"id":"700c94899fdd3334","type":"tab","label":"[debug] status message counter","disabled":false,"info":"","env":[]},{"id":"ec5287fe2b0f255b","type":"inject","z":"700c94899fdd3334","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":266,"y":562,"wires":[["d5f4066d0a2c803f"]]},{"id":"d5f4066d0a2c803f","type":"debug","z":"700c94899fdd3334","name":"debug 5","active":true,"tosidebar":true,"console":false,"tostatus":true,"complete":"true","targetType":"full","statusVal":"","statusType":"counter","x":573,"y":333,"wires":[]},{"id":"805fcc499e5801e2","type":"ut-assert-status","z":"700c94899fdd3334","name":"","scope":["d5f4066d0a2c803f"],"nodeid":"d5f4066d0a2c803f","content":"","colour":"blue","shape":"ring","inverse":false,"x":701,"y":580.5,"wires":[[]]},{"id":"7a1fe79fe2b1d5b0","type":"ut-assert-debug","z":"700c94899fdd3334","name":"","scope":["d5f4066d0a2c803f"],"nodeid":"d5f4066d0a2c803f","msgtype":"normal","inverse":false,"x":698,"y":520.5,"wires":[["679012a99df557ac"]]},{"id":"4927f71cda6374a0","type":"status","z":"700c94899fdd3334","name":"","scope":["d5f4066d0a2c803f"],"x":642.2222595214844,"y":285.5555782318115,"wires":[["7de62755d4938b79","0307230c805c9754"]]},{"id":"7de62755d4938b79","type":"ut-assert-values","z":"700c94899fdd3334","name":"one counter","ignore_failure_if_succeed":true,"rules":[{"p":"status.fill","pt":"msg","t":"eql","to":"blue","tot":"str"},{"p":"status.shape","pt":"msg","t":"eql","to":"ring","tot":"str"},{"p":"status.text","pt":"msg","t":"eql","to":"1","tot":"str"}],"x":1044.3333740234375,"y":364.6666259765625,"wires":[[]]},{"id":"0307230c805c9754","type":"ut-assert-values","z":"700c94899fdd3334","name":"initially counter is zero","ignore_failure_if_succeed":true,"rules":[{"t":"eql","p":"status.fill","pt":"msg","to":"blue","tot":"str"},{"t":"eql","p":"status.shape","pt":"msg","to":"ring","tot":"str"},{"t":"eql","p":"status.text","pt":"msg","to":"1","tot":"str"}],"x":1074.3333740234375,"y":286.3334045410156,"wires":[[]]},{"id":"679012a99df557ac","type":"ut-assert-values","z":"700c94899fdd3334","name":"","ignore_failure_if_succeed":false,"rules":[{"t":"notset","p":"data['level']","pt":"msg"},{"t":"eql","p":"data.format","pt":"msg","to":"Object","tot":"str"},{"t":"eql","p":"data.id","pt":"msg","to":"d5f4066d0a2c803f","tot":"str"},{"t":"eql","p":"data.name","pt":"msg","to":"debug 5","tot":"str"}],"x":1054.3333740234375,"y":520.5,"wires":[[]]}]
1
+ [{"id":"700c94899fdd3334","type":"tab","label":"[debug] status message counter","disabled":false,"info":"","env":[]},{"id":"ec5287fe2b0f255b","type":"inject","z":"700c94899fdd3334","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":266,"y":562,"wires":[["d5f4066d0a2c803f"]]},{"id":"d5f4066d0a2c803f","type":"debug","z":"700c94899fdd3334","name":"debug 5","active":true,"tosidebar":true,"console":false,"tostatus":true,"complete":"true","targetType":"full","statusVal":"","statusType":"counter","x":573,"y":333,"wires":[]},{"id":"805fcc499e5801e2","type":"ut-assert-status","z":"700c94899fdd3334","name":"","scope":["d5f4066d0a2c803f"],"nodeid":"d5f4066d0a2c803f","content":"","colour":"blue","shape":"ring","inverse":false,"x":701,"y":580.5,"wires":[[]]},{"id":"7a1fe79fe2b1d5b0","type":"ut-assert-debug","z":"700c94899fdd3334","name":"","scope":["d5f4066d0a2c803f"],"nodeid":"d5f4066d0a2c803f","msgtype":"normal","inverse":false,"x":698,"y":520.5,"wires":[["679012a99df557ac"]]},{"id":"4927f71cda6374a0","type":"status","z":"700c94899fdd3334","name":"","scope":["d5f4066d0a2c803f"],"x":642.2222595214844,"y":285.5555782318115,"wires":[["7de62755d4938b79","0307230c805c9754"]]},{"id":"7de62755d4938b79","type":"ut-assert-values","z":"700c94899fdd3334","name":"one counter","ignore_failure_if_succeed":true,"rules":[{"p":"status.fill","pt":"msg","t":"eql","to":"blue","tot":"str"},{"p":"status.shape","pt":"msg","t":"eql","to":"ring","tot":"str"},{"p":"status.text","pt":"msg","t":"eql","to":"1","tot":"str"}],"x":1044.3333740234375,"y":364.6666259765625,"wires":[[]]},{"id":"0307230c805c9754","type":"ut-assert-values","z":"700c94899fdd3334","name":"initially counter is zero","ignore_failure_if_succeed":true,"rules":[{"p":"status.fill","pt":"msg","t":"eql","to":"blue","tot":"str"},{"p":"status.shape","pt":"msg","t":"eql","to":"ring","tot":"str"},{"p":"status.text","pt":"msg","t":"eql","to":"1","tot":"str"}],"x":1074.3333740234375,"y":286.3334045410156,"wires":[[]]},{"id":"679012a99df557ac","type":"ut-assert-values","z":"700c94899fdd3334","name":"","ignore_failure_if_succeed":false,"rules":[{"t":"notset","p":"data['level']","pt":"msg"},{"t":"mth","p":"data.format","pt":"msg","to":"bject","tot":"str"},{"t":"eql","p":"data.id","pt":"msg","to":"d5f4066d0a2c803f","tot":"str"},{"t":"eql","p":"data.name","pt":"msg","to":"debug 5","tot":"str"}],"x":1054.3333740234375,"y":520.5,"wires":[[]]}]
@@ -0,0 +1 @@
1
+ [{"id":"07452607645aeeb7","type":"tab","label":"[debug] type hadling of JSONata results (ered)","disabled":false,"info":"Ensure that the corrent format type is set for the results of the JSONata expression.\n\n## Erlang-Red only \n\nThis uses the `$toString(..)` JSONata function only defined in Erlang-Red\n\nThe version for Node-RED has the id: baf9b878754d019f","env":[{"name":"ERED_ONLY","value":"true","type":"bool"}]},{"id":"bffb78cb1ac976a2","type":"group","z":"07452607645aeeb7","name":"appending hash/map to string does not work in JSONata","style":{"label":true},"nodes":["2bea31d3828bc60c","340a0798b871641f","b2f66cf4694a1f60","26cca2c2fb5c36aa","415733697ed0abbf","f2979b9a3d787354"],"x":85,"y":806,"w":731,"h":278},{"id":"fbed45b6963bab39","type":"group","z":"07452607645aeeb7","name":"always string because JSONata converts to string","style":{"label":true},"nodes":["9a574c543df17059","05aa6a4218f4e846","ffd75ed0d76ac539","a541e66eca84817d","b75a71a46914f437","384b559b03a12628","4ebbcaa7ee91744f"],"x":92,"y":479,"w":704,"h":301},{"id":"9a574c543df17059","type":"inject","z":"07452607645aeeb7","g":"fbed45b6963bab39","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"252457650000","payloadType":"num","x":222,"y":520,"wires":[["05aa6a4218f4e846"]]},{"id":"05aa6a4218f4e846","type":"debug","z":"07452607645aeeb7","g":"fbed45b6963bab39","name":"debug 1","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"$toString($$.payload & \"apart\")","targetType":"jsonata","statusVal":"","statusType":"auto","x":485,"y":520,"wires":[]},{"id":"ffd75ed0d76ac539","type":"inject","z":"07452607645aeeb7","g":"fbed45b6963bab39","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"[1,2,3,4,5]","payloadType":"json","x":202,"y":604.5,"wires":[["05aa6a4218f4e846"]]},{"id":"a541e66eca84817d","type":"inject","z":"07452607645aeeb7","g":"fbed45b6963bab39","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"\"ddd\"","payloadType":"json","x":192,"y":688,"wires":[["05aa6a4218f4e846"]]},{"id":"b75a71a46914f437","type":"ut-assert-debug","z":"07452607645aeeb7","g":"fbed45b6963bab39","name":"","scope":["05aa6a4218f4e846"],"nodeid":"05aa6a4218f4e846","msgtype":"normal","inverse":false,"x":561,"y":614,"wires":[["384b559b03a12628"]]},{"id":"5f7b2ae4244160d3","type":"inject","z":"07452607645aeeb7","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"252457650000","payloadType":"num","x":1087,"y":189,"wires":[["f3a0419d04ed4222"]]},{"id":"f3a0419d04ed4222","type":"debug","z":"07452607645aeeb7","name":"debug 4","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"$$.payload","targetType":"jsonata","statusVal":"","statusType":"auto","x":1070,"y":237,"wires":[]},{"id":"5d63579344ca7e87","type":"ut-assert-debug","z":"07452607645aeeb7","name":"","scope":["f3a0419d04ed4222"],"nodeid":"f3a0419d04ed4222","msgtype":"normal","inverse":false,"x":1151,"y":293,"wires":[["a035f292b851a76e"]]},{"id":"2bea31d3828bc60c","type":"debug","z":"07452607645aeeb7","g":"bffb78cb1ac976a2","name":"debug 6","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"$toString($$.payload & \"apart\")","targetType":"jsonata","statusVal":"","statusType":"auto","x":256,"y":916.25,"wires":[]},{"id":"340a0798b871641f","type":"inject","z":"07452607645aeeb7","g":"bffb78cb1ac976a2","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"{\"d\":\"d\"}","payloadType":"json","x":191,"y":847,"wires":[["2bea31d3828bc60c"]]},{"id":"b2f66cf4694a1f60","type":"catch","z":"07452607645aeeb7","g":"bffb78cb1ac976a2","name":"","scope":["2bea31d3828bc60c"],"uncaught":false,"x":318,"y":985.5,"wires":[["26cca2c2fb5c36aa"]]},{"id":"26cca2c2fb5c36aa","type":"ut-assert-failure","z":"07452607645aeeb7","g":"bffb78cb1ac976a2","name":"","x":598,"y":985.5,"wires":[]},{"id":"415733697ed0abbf","type":"ut-assert-debug","z":"07452607645aeeb7","g":"bffb78cb1ac976a2","name":"","scope":["2bea31d3828bc60c"],"nodeid":"2bea31d3828bc60c","msgtype":"normal","inverse":false,"x":418,"y":1043,"wires":[["f2979b9a3d787354"]]},{"id":"f2979b9a3d787354","type":"ut-assert-values","z":"07452607645aeeb7","g":"bffb78cb1ac976a2","name":"","ignore_failure_if_succeed":false,"rules":[{"t":"eql","p":"data.msg","pt":"msg","to":"Invalid JSONata expression: badarg (<<\"$toString($$.payload & \\\"apart\\\")\">>)","tot":"str"}],"x":690,"y":1043,"wires":[[]]},{"id":"384b559b03a12628","type":"ut-assert-values","z":"07452607645aeeb7","g":"fbed45b6963bab39","name":"","ignore_failure_if_succeed":false,"rules":[{"t":"eql","p":"data.format","pt":"msg","to":"string","tot":"str"}],"x":670,"y":736,"wires":[[]]},{"id":"4ebbcaa7ee91744f","type":"inject","z":"07452607645aeeb7","g":"fbed45b6963bab39","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"1.123","payloadType":"num","x":188,"y":739,"wires":[["05aa6a4218f4e846"]]},{"id":"6b1554f4f74b1805","type":"debug","z":"07452607645aeeb7","name":"debug 3","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"$$.payload","targetType":"jsonata","statusVal":"","statusType":"auto","x":1130,"y":455,"wires":[]},{"id":"c437d84fbae30b7c","type":"inject","z":"07452607645aeeb7","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"{\"d\":\"d\"}","payloadType":"json","x":1080,"y":404,"wires":[["6b1554f4f74b1805"]]},{"id":"b514b39670fd62d6","type":"ut-assert-debug","z":"07452607645aeeb7","name":"","scope":["6b1554f4f74b1805"],"nodeid":"6b1554f4f74b1805","msgtype":"normal","inverse":false,"x":1210,"y":522,"wires":[["a6e2ccd2e332dbcd"]]},{"id":"6dd0d2a212c62666","type":"debug","z":"07452607645aeeb7","name":"debug 7","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"$$.payload","targetType":"jsonata","statusVal":"","statusType":"auto","x":1139,"y":679,"wires":[]},{"id":"0e952db2b13797ba","type":"inject","z":"07452607645aeeb7","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"[1,2,3,4,5]","payloadType":"json","x":1083,"y":630,"wires":[["6dd0d2a212c62666"]]},{"id":"8dbb1864d191a8bd","type":"ut-assert-debug","z":"07452607645aeeb7","name":"","scope":["6dd0d2a212c62666"],"nodeid":"6dd0d2a212c62666","msgtype":"normal","inverse":false,"x":1219,"y":738,"wires":[["ab9c55e84b9f6c15"]]},{"id":"aabf09218c1ae0d4","type":"debug","z":"07452607645aeeb7","name":"debug 9","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"$$.payload","targetType":"jsonata","statusVal":"","statusType":"auto","x":1144,"y":918,"wires":[]},{"id":"b0dfd8b253bc035b","type":"inject","z":"07452607645aeeb7","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"\"ddd\"","payloadType":"json","x":1075,"y":870,"wires":[["aabf09218c1ae0d4"]]},{"id":"9ea41437d97547bc","type":"ut-assert-debug","z":"07452607645aeeb7","name":"","scope":["aabf09218c1ae0d4"],"nodeid":"aabf09218c1ae0d4","msgtype":"normal","inverse":false,"x":1224,"y":987,"wires":[["a3595ef7f66f5a4a"]]},{"id":"a035f292b851a76e","type":"ut-assert-values","z":"07452607645aeeb7","name":"","ignore_failure_if_succeed":false,"rules":[{"t":"eql","p":"data.format","pt":"msg","to":"number","tot":"str"}],"x":1497,"y":293,"wires":[[]]},{"id":"a6e2ccd2e332dbcd","type":"ut-assert-values","z":"07452607645aeeb7","name":"","ignore_failure_if_succeed":false,"rules":[{"t":"eql","p":"data.format","pt":"msg","to":"Object","tot":"str"}],"x":1497,"y":522,"wires":[[]]},{"id":"ab9c55e84b9f6c15","type":"ut-assert-values","z":"07452607645aeeb7","name":"","ignore_failure_if_succeed":false,"rules":[{"t":"eql","p":"data.format","pt":"msg","to":"array","tot":"str"}],"x":1497,"y":738,"wires":[[]]},{"id":"a3595ef7f66f5a4a","type":"ut-assert-values","z":"07452607645aeeb7","name":"","ignore_failure_if_succeed":false,"rules":[{"t":"eql","p":"data.format","pt":"msg","to":"string","tot":"str"}],"x":1497,"y":930,"wires":[[]]}]
@@ -0,0 +1 @@
1
+ [{"id":"baf9b878754d019f","type":"tab","label":"[debug] type hadling of JSONata results (node-red)","disabled":false,"info":"Ensure that the corrent format type is set for the results of the JSONata expression.\n\n## Node-RED only \n\nThis makes use of JSONata features not supported by Erlang-RED. \n\nThe version for Erlang has the id: 07452607645aeeb7","env":[{"name":"NODE_RED_ONLY","value":"true","type":"bool"}]},{"id":"498940371c5e7262","type":"group","z":"baf9b878754d019f","name":"appending hash/map to string does not work in JSONata","style":{"label":true},"nodes":["ca8b8388dfb9f8c0","bce067b41abaf230","e3a9529a21f39386","8360508afa99cd5c","9e02c9d3c4f00694","38150c16edf16e34"],"x":85,"y":806,"w":731,"h":278},{"id":"f7f03178d4c9ca22","type":"group","z":"baf9b878754d019f","name":"always string because JSONata converts to string","style":{"label":true},"nodes":["0d899a44179e4ec4","f715a10ef4cbff65","dadb026a03d442df","2ce03f81fa60834e","2a70065cc088bf48","60d2992e6845fef9","def5a84d3e95c056"],"x":92,"y":479,"w":724,"h":301},{"id":"0d899a44179e4ec4","type":"inject","z":"baf9b878754d019f","g":"f7f03178d4c9ca22","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"252457650000","payloadType":"num","x":222,"y":520,"wires":[["f715a10ef4cbff65"]]},{"id":"f715a10ef4cbff65","type":"debug","z":"baf9b878754d019f","g":"f7f03178d4c9ca22","name":"debug 1","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"$$.payload & \"apart\"","targetType":"jsonata","statusVal":"","statusType":"auto","x":485,"y":520,"wires":[]},{"id":"dadb026a03d442df","type":"inject","z":"baf9b878754d019f","g":"f7f03178d4c9ca22","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"[1,2,3,4,5]","payloadType":"json","x":202,"y":604.5,"wires":[["f715a10ef4cbff65"]]},{"id":"2ce03f81fa60834e","type":"inject","z":"baf9b878754d019f","g":"f7f03178d4c9ca22","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"\"ddd\"","payloadType":"json","x":192,"y":688,"wires":[["f715a10ef4cbff65"]]},{"id":"2a70065cc088bf48","type":"ut-assert-debug","z":"baf9b878754d019f","g":"f7f03178d4c9ca22","name":"","scope":["f715a10ef4cbff65"],"nodeid":"05aa6a4218f4e846","msgtype":"normal","inverse":false,"x":561,"y":614,"wires":[["60d2992e6845fef9"]]},{"id":"fa3fea11c4da617d","type":"inject","z":"baf9b878754d019f","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"252457650000","payloadType":"num","x":1087,"y":189,"wires":[["921a32eaf695806f"]]},{"id":"921a32eaf695806f","type":"debug","z":"baf9b878754d019f","name":"debug 4","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"$$.payload","targetType":"jsonata","statusVal":"","statusType":"auto","x":1070,"y":237,"wires":[]},{"id":"fb6bf866c285f225","type":"ut-assert-debug","z":"baf9b878754d019f","name":"","scope":["921a32eaf695806f"],"nodeid":"f3a0419d04ed4222","msgtype":"normal","inverse":false,"x":1151,"y":293,"wires":[["906b1d1ae993f1a6"]]},{"id":"ca8b8388dfb9f8c0","type":"debug","z":"baf9b878754d019f","g":"498940371c5e7262","name":"debug 6","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"$$.payload & \"apart\"","targetType":"jsonata","statusVal":"","statusType":"auto","x":256,"y":916.25,"wires":[]},{"id":"bce067b41abaf230","type":"inject","z":"baf9b878754d019f","g":"498940371c5e7262","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"{\"d\":\"d\"}","payloadType":"json","x":191,"y":847,"wires":[["ca8b8388dfb9f8c0"]]},{"id":"e3a9529a21f39386","type":"catch","z":"baf9b878754d019f","g":"498940371c5e7262","name":"","scope":["ca8b8388dfb9f8c0"],"uncaught":false,"x":318,"y":985.5,"wires":[["8360508afa99cd5c"]]},{"id":"8360508afa99cd5c","type":"ut-assert-failure","z":"baf9b878754d019f","g":"498940371c5e7262","name":"","x":598,"y":985.5,"wires":[]},{"id":"9e02c9d3c4f00694","type":"ut-assert-debug","z":"baf9b878754d019f","g":"498940371c5e7262","name":"","scope":["ca8b8388dfb9f8c0"],"nodeid":"2bea31d3828bc60c","msgtype":"normal","inverse":false,"x":418,"y":1043,"wires":[["38150c16edf16e34"]]},{"id":"38150c16edf16e34","type":"ut-assert-values","z":"baf9b878754d019f","g":"498940371c5e7262","name":"","ignore_failure_if_succeed":false,"rules":[{"t":"eql","p":"data.msg","pt":"msg","to":"{\"d\":\"d\"}apart","tot":"str"}],"x":690,"y":1043,"wires":[[]]},{"id":"60d2992e6845fef9","type":"ut-assert-values","z":"baf9b878754d019f","g":"f7f03178d4c9ca22","name":"","ignore_failure_if_succeed":false,"rules":[{"t":"mth","p":"data.format","pt":"msg","to":"string","tot":"str"}],"x":680,"y":736,"wires":[[]]},{"id":"def5a84d3e95c056","type":"inject","z":"baf9b878754d019f","g":"f7f03178d4c9ca22","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"1.123","payloadType":"num","x":188,"y":739,"wires":[["f715a10ef4cbff65"]]},{"id":"189c7547491ace3a","type":"debug","z":"baf9b878754d019f","name":"debug 3","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"$$.payload","targetType":"jsonata","statusVal":"","statusType":"auto","x":1130,"y":455,"wires":[]},{"id":"9cf3a3ed61ae92c1","type":"inject","z":"baf9b878754d019f","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"{\"d\":\"d\"}","payloadType":"json","x":1080,"y":404,"wires":[["189c7547491ace3a"]]},{"id":"45f0bf480637e493","type":"ut-assert-debug","z":"baf9b878754d019f","name":"","scope":["189c7547491ace3a"],"nodeid":"6b1554f4f74b1805","msgtype":"normal","inverse":false,"x":1210,"y":522,"wires":[["f56a479ba69432fc"]]},{"id":"7857a0902bcc29b9","type":"debug","z":"baf9b878754d019f","name":"debug 7","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"$$.payload","targetType":"jsonata","statusVal":"","statusType":"auto","x":1139,"y":679,"wires":[]},{"id":"6c7a5ad6fa71c2e8","type":"inject","z":"baf9b878754d019f","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"[1,2,3,4,5]","payloadType":"json","x":1083,"y":630,"wires":[["7857a0902bcc29b9"]]},{"id":"b0bda5fd931ffc10","type":"ut-assert-debug","z":"baf9b878754d019f","name":"","scope":["7857a0902bcc29b9"],"nodeid":"6dd0d2a212c62666","msgtype":"normal","inverse":false,"x":1219,"y":738,"wires":[["909438219ca5555d"]]},{"id":"221961747a68d0b1","type":"debug","z":"baf9b878754d019f","name":"debug 9","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"$$.payload","targetType":"jsonata","statusVal":"","statusType":"auto","x":1144,"y":918,"wires":[]},{"id":"6388680da73682e5","type":"inject","z":"baf9b878754d019f","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"\"ddd\"","payloadType":"json","x":1075,"y":870,"wires":[["221961747a68d0b1"]]},{"id":"04dcedac8e324351","type":"ut-assert-debug","z":"baf9b878754d019f","name":"","scope":["221961747a68d0b1"],"nodeid":"aabf09218c1ae0d4","msgtype":"normal","inverse":false,"x":1224,"y":987,"wires":[["157ff7914775fc88"]]},{"id":"906b1d1ae993f1a6","type":"ut-assert-values","z":"baf9b878754d019f","name":"","ignore_failure_if_succeed":false,"rules":[{"t":"eql","p":"data.format","pt":"msg","to":"number","tot":"str"}],"x":1497,"y":293,"wires":[[]]},{"id":"f56a479ba69432fc","type":"ut-assert-values","z":"baf9b878754d019f","name":"","ignore_failure_if_succeed":false,"rules":[{"t":"eql","p":"data.format","pt":"msg","to":"Object","tot":"str"}],"x":1497,"y":522,"wires":[[]]},{"id":"909438219ca5555d","type":"ut-assert-values","z":"baf9b878754d019f","name":"","ignore_failure_if_succeed":false,"rules":[{"t":"eql","p":"data.format","pt":"msg","to":"array[5]","tot":"str"}],"x":1497,"y":738,"wires":[[]]},{"id":"157ff7914775fc88","type":"ut-assert-values","z":"baf9b878754d019f","name":"","ignore_failure_if_succeed":false,"rules":[{"t":"eql","p":"data.format","pt":"msg","to":"string[3]","tot":"str"}],"x":1497,"y":930,"wires":[[]]}]
@@ -0,0 +1 @@
1
+ [{"id":"92d7c96c36992549","type":"tab","label":"[delay] respect the reset flag and dont pass on the reset msg","disabled":false,"info":"","env":[{"name":"ERED_PENDING","value":"true","type":"bool"}]},{"id":"9ad0a7f552783f34","type":"delay","z":"92d7c96c36992549","name":"","pauseType":"delay","timeout":"211","timeoutUnits":"milliseconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":921,"y":512,"wires":[["37805f9c4930aaa7"]]},{"id":"03cae6b9cd1e9cad","type":"inject","z":"92d7c96c36992549","name":"","props":[{"p":"payload"},{"p":"reset","v":"true","vt":"bool"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":665,"y":451,"wires":[["9ad0a7f552783f34"]]},{"id":"37805f9c4930aaa7","type":"ut-assert-failure","z":"92d7c96c36992549","name":"","x":1286,"y":619,"wires":[]}]
@@ -0,0 +1 @@
1
+ [{"id":"47514a335b4cd67e","type":"tab","label":"[exec] handle multiple process at once (ered)","disabled":false,"info":"this flow demonstrates the ability of the exec node to manage multiple running processes at one time.\n\nexternal processes of `sleep 1000` are started one after another and then are terminated by a separate kill message.\n\nNote: if the timeout is set on the exec node, it will also kill each process individually.","env":[{"name":"ERED_PENDING","value":"false","type":"bool"},{"name":"ERED_TIMEOUT","value":"15","type":"num"},{"name":"NRED_TIMEOUT","value":"15","type":"num"},{"name":"ERED_ONLY","value":"true","type":"bool"}]},{"id":"e85bbe5329de235b","type":"exec","z":"47514a335b4cd67e","command":"sleep 1000","addpay":"","append":"","useSpawn":"true","timer":"","winHide":false,"oldrc":false,"name":"","x":674,"y":446,"wires":[[],[],["21e6d1d6b458f0d7"]]},{"id":"bf20bf7cb45143fb","type":"inject","z":"47514a335b4cd67e","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":122,"y":152,"wires":[["e85bbe5329de235b","e62f1b9598c87031","fb986ae1a73e3f36","7db1e4f0398b4f23","58326eca1ab40f88","160ebe4acd0960ef","a88dcf477e938c6b"]]},{"id":"bf98365c60dbcd7b","type":"status","z":"47514a335b4cd67e","name":"","scope":["e85bbe5329de235b"],"x":676.0000610351562,"y":525.75,"wires":[["f0f77e64ce2c6c9b"]]},{"id":"14924cd18ebc1d21","type":"change","z":"47514a335b4cd67e","name":"","rules":[{"p":"pid","pt":"msg","t":"set","to":"$split($$.status.text, \":\")","tot":"jsonata"},{"p":"pid","pt":"msg","t":"set","to":"$$.pid[1]","tot":"jsonata"},{"p":"kill","pt":"msg","t":"set","to":"SIGTERM","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":298,"y":728,"wires":[["60f3aa384adc4efa"]]},{"id":"60f3aa384adc4efa","type":"delay","z":"47514a335b4cd67e","name":"","pauseType":"delay","timeout":"3","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":488,"y":599,"wires":[["e85bbe5329de235b"]]},{"id":"e62f1b9598c87031","type":"delay","z":"47514a335b4cd67e","name":"","pauseType":"delay","timeout":"1","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":488,"y":152,"wires":[["e85bbe5329de235b"]]},{"id":"fb986ae1a73e3f36","type":"delay","z":"47514a335b4cd67e","name":"","pauseType":"delay","timeout":"2","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":488,"y":212.5,"wires":[["e85bbe5329de235b"]]},{"id":"7db1e4f0398b4f23","type":"delay","z":"47514a335b4cd67e","name":"","pauseType":"delay","timeout":"3","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":488,"y":273,"wires":[["e85bbe5329de235b"]]},{"id":"58326eca1ab40f88","type":"delay","z":"47514a335b4cd67e","name":"","pauseType":"delay","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":310,"y":385,"wires":[["e85bbe5329de235b"]]},{"id":"160ebe4acd0960ef","type":"delay","z":"47514a335b4cd67e","name":"","pauseType":"delay","timeout":"6","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":310,"y":446,"wires":[["e85bbe5329de235b"]]},{"id":"f0f77e64ce2c6c9b","type":"switch","z":"47514a335b4cd67e","name":"","property":"status.text","propertyType":"msg","rules":[{"t":"neq","v":"Killed","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":839,"y":657,"wires":[["14924cd18ebc1d21","a29ef1babc809299"]]},{"id":"a88dcf477e938c6b","type":"delay","z":"47514a335b4cd67e","name":"","pauseType":"delay","timeout":"4","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":310,"y":324,"wires":[["e85bbe5329de235b"]]},{"id":"a29ef1babc809299","type":"ut-assert-success","z":"47514a335b4cd67e","name":"","count":"7","x":1046,"y":657,"wires":[]},{"id":"21e6d1d6b458f0d7","type":"ut-assert-success","z":"47514a335b4cd67e","name":"","count":"7","x":1046,"y":459.75,"wires":[]}]
@@ -0,0 +1 @@
1
+ [{"id":"66d522e80730b8d3","type":"tab","label":"[exec] handle multiple process at once (nred)","disabled":false,"info":"this flow demonstrates the ability of the exec node to manage multiple running processes at one time.\n\nexternal processes of `sleep 1000` are started one after another and then are terminated by a separate kill message.\n\nNote: if the timeout is set on the exec node, it will also kill each process individually.","env":[{"name":"NRED_TIMEOUT","value":"15","type":"num"},{"name":"NODE_RED_ONLY","value":"true","type":"bool"}]},{"id":"6f7d310d4b7d4e4a","type":"exec","z":"66d522e80730b8d3","command":"sleep 1000","addpay":"","append":"","useSpawn":"true","timer":"","winHide":false,"oldrc":false,"name":"","x":674,"y":446,"wires":[[],[],["fed2ad2e2ab76c4f"]]},{"id":"80105065b359cff4","type":"inject","z":"66d522e80730b8d3","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":122,"y":152,"wires":[["6f7d310d4b7d4e4a","668cf1bc6d294235","e2ced983ac96bb50","75c3e419cb3fc39c","d928eea624d077fd","b79423133776a2bf","09fc3516b0627ad7"]]},{"id":"e59eae323be9ce44","type":"status","z":"66d522e80730b8d3","name":"","scope":["6f7d310d4b7d4e4a"],"x":676.0000610351562,"y":525.75,"wires":[["dcd73932adca443f"]]},{"id":"dcbb0e596b459bf6","type":"change","z":"66d522e80730b8d3","name":"","rules":[{"p":"pid","pt":"msg","t":"set","to":"$split($$.status.text, \":\")","tot":"jsonata"},{"p":"pid","pt":"msg","t":"set","to":"$$.pid[1]","tot":"jsonata"},{"p":"kill","pt":"msg","t":"set","to":"SIGTERM","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":298,"y":728,"wires":[["86df1075b0dd4406"]]},{"id":"86df1075b0dd4406","type":"delay","z":"66d522e80730b8d3","name":"","pauseType":"delay","timeout":"3","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":488,"y":599,"wires":[["6f7d310d4b7d4e4a"]]},{"id":"668cf1bc6d294235","type":"delay","z":"66d522e80730b8d3","name":"","pauseType":"delay","timeout":"1","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":488,"y":152,"wires":[["6f7d310d4b7d4e4a"]]},{"id":"e2ced983ac96bb50","type":"delay","z":"66d522e80730b8d3","name":"","pauseType":"delay","timeout":"2","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":488,"y":212.5,"wires":[["6f7d310d4b7d4e4a"]]},{"id":"75c3e419cb3fc39c","type":"delay","z":"66d522e80730b8d3","name":"","pauseType":"delay","timeout":"3","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":488,"y":273,"wires":[["6f7d310d4b7d4e4a"]]},{"id":"d928eea624d077fd","type":"delay","z":"66d522e80730b8d3","name":"","pauseType":"delay","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":310,"y":385,"wires":[["6f7d310d4b7d4e4a"]]},{"id":"b79423133776a2bf","type":"delay","z":"66d522e80730b8d3","name":"","pauseType":"delay","timeout":"6","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":310,"y":446,"wires":[["6f7d310d4b7d4e4a"]]},{"id":"dcd73932adca443f","type":"switch","z":"66d522e80730b8d3","name":"","property":"status.text","propertyType":"msg","rules":[{"t":"neq","v":"Killed","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":839,"y":657,"wires":[["dcbb0e596b459bf6","a0eb8b36714d8715"]]},{"id":"09fc3516b0627ad7","type":"delay","z":"66d522e80730b8d3","name":"","pauseType":"delay","timeout":"4","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":310,"y":324,"wires":[["6f7d310d4b7d4e4a"]]},{"id":"a0eb8b36714d8715","type":"ut-assert-success","z":"66d522e80730b8d3","name":"","msglimit":">=","count":"7","x":1046,"y":657,"wires":[]},{"id":"fed2ad2e2ab76c4f","type":"ut-assert-success","z":"66d522e80730b8d3","name":"","count":"7","x":1046,"y":459.75,"wires":[]}]
@@ -0,0 +1 @@
1
+ [{"id":"9746601768c3b3b6","type":"tab","label":"[exec] support timeout specification (ered)","disabled":false,"info":"the timeout on an exec node be used to stop daemon from running longer than a test case.\n\nIf the message isn't sent by the time the test case is killed, then the test case fails.","env":[{"name":"ERED_TIMEOUT","value":"7","type":"num"},{"name":"ERED_ONLY","value":"true","type":"bool"}]},{"id":"e5752543f573c690","type":"inject","z":"9746601768c3b3b6","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":271,"y":54,"wires":[["bc45ad0c3084eab2"]]},{"id":"bc45ad0c3084eab2","type":"exec","z":"9746601768c3b3b6","command":"sleep 30","addpay":"","append":"","useSpawn":"true","timer":"5","winHide":false,"oldrc":false,"name":"sleep 30 with a timeout of 5 seconds","x":547,"y":364,"wires":[[],[],["0f7ce66536de607a"]]},{"id":"0f7ce66536de607a","type":"ut-assert-values","z":"9746601768c3b3b6","name":"","ignore_failure_if_succeed":false,"rules":[{"t":"eql","p":"payload.code","pt":"msg","to":"15","tot":"num"}],"x":891.888916015625,"y":234.3333740234375,"wires":[[]]}]
@@ -0,0 +1 @@
1
+ [{"id":"569ff27317bcc1fd","type":"tab","label":"[exec] support timeout specification (nred)","disabled":false,"info":"the timeout on an exec node be used to stop daemon from running longer than a test case.\n\nIf the message isn't sent by the time the test case is killed, then the test case fails.","env":[{"name":"NRED_TIMEOUT","value":"7","type":"num"},{"name":"NODE_RED_ONLY","value":"true","type":"bool"}]},{"id":"2160c8af613065c2","type":"inject","z":"569ff27317bcc1fd","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":271,"y":54,"wires":[["fe3cdd7fcb5ddaa1"]]},{"id":"fe3cdd7fcb5ddaa1","type":"exec","z":"569ff27317bcc1fd","command":"sleep 30","addpay":"","append":"","useSpawn":"true","timer":"5","winHide":false,"oldrc":false,"name":"sleep 30 with a timeout of 5 seconds","x":547,"y":364,"wires":[[],[],["2f2326fa74d28e95"]]},{"id":"2f2326fa74d28e95","type":"ut-assert-values","z":"569ff27317bcc1fd","name":"","ignore_failure_if_succeed":false,"rules":[{"t":"eql","p":"payload.signal","pt":"msg","to":"SIGTERM","tot":"str"}],"x":879.444580078125,"y":256.888916015625,"wires":[[]]}]
@@ -0,0 +1 @@
1
+ [{"id":"c0b1cf6656eac77f","type":"tab","label":"[exec] synchronised execution (ered)","disabled":false,"info":"","env":[{"name":"ERED_TIMEOUT","value":"6","type":"num"},{"name":"ERED_ONLY","value":"true","type":"bool"}]},{"id":"2b4d9ee88eff618b","type":"group","z":"c0b1cf6656eac77f","name":"timeout that triggers after command completion","style":{"label":true},"nodes":["2f9029a33f3688a8","34ecd7044cb107c0","8a49eb330319b071","8e975e9b613ad34b","e59e3353ab52eb1a"],"x":94.75,"y":905,"w":991.25,"h":194},{"id":"b0a28454b231f29c","type":"group","z":"c0b1cf6656eac77f","name":"no time out normal completion","style":{"label":true},"nodes":["34584b1493b966d1","394f2a8574bcae04","1f7e2413bdf97ba6","0eb5e6fe3bbe4a54","8a95a8bbe8ec1711"],"x":181.75,"y":655,"w":889.25,"h":201},{"id":"fb93cca833bb943c","type":"group","z":"c0b1cf6656eac77f","name":"time out kills process, but message queue is flooded","style":{"label":true},"nodes":["3d0fc6b73f545bf1","c149f1afcce104c0","6b2197ef37baacf9","1071c9eb5be5f316","fdd9833ca1fa4e19","e0eb63220a075c77"],"x":240.75,"y":402,"w":789.25,"h":209.88885498046875},{"id":"af09a3c02e5dc779","type":"group","z":"c0b1cf6656eac77f","name":"timout but no flooding of message queue","style":{"label":true},"nodes":["3e608f637baf6d92","6ac13f394822cbdb","2e6aeadb4ff3c225","4a8c801fc0aeda71","d7bce7594d752e58"],"x":287,"y":134,"w":820,"h":232},{"id":"3e608f637baf6d92","type":"exec","z":"c0b1cf6656eac77f","g":"af09a3c02e5dc779","command":"echo dasdasd ; sleep 10","addpay":"","append":"","useSpawn":"false","timer":"4","winHide":false,"oldrc":false,"name":"","x":618.25,"y":313,"wires":[["2e6aeadb4ff3c225"],["4a8c801fc0aeda71"],["d7bce7594d752e58"]]},{"id":"6ac13f394822cbdb","type":"inject","z":"c0b1cf6656eac77f","g":"af09a3c02e5dc779","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":393,"y":314,"wires":[["3e608f637baf6d92"]]},{"id":"3d0fc6b73f545bf1","type":"exec","z":"c0b1cf6656eac77f","g":"fb93cca833bb943c","command":"yes hello","addpay":"","append":"","useSpawn":"false","timer":"2","winHide":false,"oldrc":false,"name":"","x":536,"y":526.5,"wires":[["6b2197ef37baacf9"],["e0eb63220a075c77"],["fdd9833ca1fa4e19"]]},{"id":"c149f1afcce104c0","type":"inject","z":"c0b1cf6656eac77f","g":"fb93cca833bb943c","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":346.75,"y":509.5,"wires":[["3d0fc6b73f545bf1"]]},{"id":"34584b1493b966d1","type":"exec","z":"c0b1cf6656eac77f","g":"b0a28454b231f29c","command":"echo \"Stdout\" ; echo \"stderr\" >&2 ; echo \"done\"","addpay":"","append":"","useSpawn":"false","timer":"","winHide":false,"oldrc":false,"name":"","x":445,"y":801,"wires":[["1f7e2413bdf97ba6"],["8a95a8bbe8ec1711"],["0eb5e6fe3bbe4a54"]]},{"id":"394f2a8574bcae04","type":"inject","z":"c0b1cf6656eac77f","g":"b0a28454b231f29c","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":287.75,"y":709,"wires":[["34584b1493b966d1"]]},{"id":"2f9029a33f3688a8","type":"exec","z":"c0b1cf6656eac77f","g":"2b4d9ee88eff618b","command":"echo \"timeout\" ; echo \"fires later\" >&2 ; echo \"done\"","addpay":"","append":"","useSpawn":"false","timer":"3","winHide":false,"oldrc":false,"name":"","x":459,"y":1045,"wires":[["8e975e9b613ad34b"],["e59e3353ab52eb1a"],["8a49eb330319b071"]]},{"id":"34ecd7044cb107c0","type":"inject","z":"c0b1cf6656eac77f","g":"2b4d9ee88eff618b","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":200.75,"y":982,"wires":[["2f9029a33f3688a8"]]},{"id":"6b2197ef37baacf9","type":"switch","z":"c0b1cf6656eac77f","g":"fb93cca833bb943c","name":"","property":"$length($$.payload)","propertyType":"jsonata","rules":[{"t":"gt","v":"1000","vt":"num"}],"checkall":"true","repair":false,"outputs":1,"x":730,"y":479,"wires":[["1071c9eb5be5f316"]]},{"id":"1071c9eb5be5f316","type":"ut-assert-success","z":"c0b1cf6656eac77f","g":"fb93cca833bb943c","name":"","count":1,"x":913,"y":443,"wires":[]},{"id":"2e6aeadb4ff3c225","type":"ut-assert-values","z":"c0b1cf6656eac77f","g":"af09a3c02e5dc779","name":"","ignore_failure_if_succeed":false,"rules":[{"t":"eql","p":"payload","pt":"msg","to":"dasdasd\\n","tot":"str"}],"x":943,"y":175,"wires":[[]]},{"id":"4a8c801fc0aeda71","type":"ut-assert-values","z":"c0b1cf6656eac77f","g":"af09a3c02e5dc779","name":"","ignore_failure_if_succeed":false,"rules":[{"p":"payload","pt":"msg","t":"eql","to":"","tot":"str"}],"x":945.2221603393555,"y":227.7777910232544,"wires":[[]]},{"id":"d7bce7594d752e58","type":"ut-assert-values","z":"c0b1cf6656eac77f","g":"af09a3c02e5dc779","name":"","ignore_failure_if_succeed":false,"rules":[{"t":"eql","p":"payload.code","pt":"msg","to":"15","tot":"num"}],"x":951,"y":325,"wires":[[]]},{"id":"1f7e2413bdf97ba6","type":"ut-assert-values","z":"c0b1cf6656eac77f","g":"b0a28454b231f29c","name":"","ignore_failure_if_succeed":false,"rules":[{"p":"payload","pt":"msg","t":"eql","to":"Stdout\\ndone\\n","tot":"str"}],"x":821,"y":696,"wires":[[]]},{"id":"0eb5e6fe3bbe4a54","type":"ut-assert-values","z":"c0b1cf6656eac77f","g":"b0a28454b231f29c","name":"","ignore_failure_if_succeed":false,"rules":[{"p":"payload.code","pt":"msg","t":"eql","to":"0","tot":"num"}],"x":925,"y":815,"wires":[[]]},{"id":"8a49eb330319b071","type":"ut-assert-values","z":"c0b1cf6656eac77f","g":"2b4d9ee88eff618b","name":"","ignore_failure_if_succeed":false,"rules":[{"p":"payload.code","pt":"msg","t":"eql","to":"0","tot":"num"}],"x":940,"y":1058,"wires":[[]]},{"id":"8a95a8bbe8ec1711","type":"ut-assert-values","z":"c0b1cf6656eac77f","g":"b0a28454b231f29c","name":"","ignore_failure_if_succeed":false,"rules":[{"p":"payload","pt":"msg","t":"eql","to":"stderr\\n","tot":"str"}],"x":863,"y":755.5,"wires":[[]]},{"id":"8e975e9b613ad34b","type":"ut-assert-values","z":"c0b1cf6656eac77f","g":"2b4d9ee88eff618b","name":"","ignore_failure_if_succeed":false,"rules":[{"p":"payload","pt":"msg","t":"eql","to":"timeout\\ndone\\n","tot":"str"}],"x":832.5,"y":946,"wires":[[]]},{"id":"e59e3353ab52eb1a","type":"ut-assert-values","z":"c0b1cf6656eac77f","g":"2b4d9ee88eff618b","name":"","ignore_failure_if_succeed":false,"rules":[{"p":"payload","pt":"msg","t":"eql","to":"fires later\\n","tot":"str"}],"x":876.25,"y":1002,"wires":[[]]},{"id":"fdd9833ca1fa4e19","type":"ut-assert-values","z":"c0b1cf6656eac77f","g":"fb93cca833bb943c","name":"","ignore_failure_if_succeed":false,"rules":[{"t":"eql","p":"payload.code","pt":"msg","to":"15","tot":"num"}],"x":868.77783203125,"y":570.8888549804688,"wires":[[]]},{"id":"e0eb63220a075c77","type":"ut-assert-success","z":"c0b1cf6656eac77f","g":"fb93cca833bb943c","name":"","msglimit":"==","count":1,"x":914,"y":505,"wires":[]}]
@@ -0,0 +1 @@
1
+ [{"id":"fde1d30a505103d6","type":"tab","label":"[exec] synchronised execution (nred)","disabled":false,"info":"This can generate an error message in the console:\n\n```\nerror:RangeError [ERR_CHILD_PROCESS_STDIO_MAXBUFFER]: stdout maxBuffer length exceeded\n```\n\nFor the test the is using `yes hello` - that will create much data.","env":[{"name":"NRED_TIMEOUT","value":"6","type":"num"},{"name":"NODE_RED_ONLY","value":"true","type":"bool"}]},{"id":"a86d14490187ca88","type":"group","z":"fde1d30a505103d6","name":"timeout that triggers after command completion","style":{"label":true},"nodes":["37d5a57aeb3453dd","191b0c041640805e","b54aa3c66c542976","c530420eb67bbb8a","c0d2695b9e2c54d5"],"x":94.75,"y":905,"w":991.25,"h":194},{"id":"5159616a40a5571f","type":"group","z":"fde1d30a505103d6","name":"no time out normal completion","style":{"label":true},"nodes":["58ccb98aa260245f","238537a3a70a5f95","6f3032facfa11b9b","709ac2f03cdc827b","b832ce7f95242497"],"x":181.75,"y":655,"w":889.25,"h":201},{"id":"9a5fcbdcfe3734c2","type":"group","z":"fde1d30a505103d6","name":"time out kills process, but message queue is flooded","style":{"label":true},"nodes":["bf5a3a8c06bf9dcc","6bfe373ba9db26f0","0e10377378a5136f","1742127e22cd9f32","11678b485405eb6e","70c5807ff7837267"],"x":240.75,"y":402,"w":894.138916015625,"h":194.37530612945557},{"id":"9ce6160770d3fa75","type":"group","z":"fde1d30a505103d6","name":"timout but no flooding of message queue","style":{"label":true},"nodes":["5dad697ff1602bb7","4276847ee0f00aeb","95756e7a496ee852","064ff5a2fb85bdb4","85271d6787e3b0e8"],"x":287,"y":134,"w":821.0448837280273,"h":227.5},{"id":"5dad697ff1602bb7","type":"exec","z":"fde1d30a505103d6","g":"9ce6160770d3fa75","command":"echo dasdasd ; sleep 10","addpay":"","append":"","useSpawn":"false","timer":"4","winHide":false,"oldrc":false,"name":"","x":618.25,"y":313,"wires":[["95756e7a496ee852"],["85271d6787e3b0e8"],["064ff5a2fb85bdb4"]]},{"id":"4276847ee0f00aeb","type":"inject","z":"fde1d30a505103d6","g":"9ce6160770d3fa75","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":393,"y":314,"wires":[["5dad697ff1602bb7"]]},{"id":"bf5a3a8c06bf9dcc","type":"exec","z":"fde1d30a505103d6","g":"9a5fcbdcfe3734c2","command":"yes hello","addpay":"","append":"","useSpawn":"false","timer":"2","winHide":false,"oldrc":false,"name":"","x":536,"y":526.5,"wires":[["0e10377378a5136f"],["70c5807ff7837267"],["11678b485405eb6e"]]},{"id":"6bfe373ba9db26f0","type":"inject","z":"fde1d30a505103d6","g":"9a5fcbdcfe3734c2","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":346.75,"y":509.5,"wires":[["bf5a3a8c06bf9dcc"]]},{"id":"58ccb98aa260245f","type":"exec","z":"fde1d30a505103d6","g":"5159616a40a5571f","command":"echo \"Stdout\" ; echo \"stderr\" >&2 ; echo \"done\"","addpay":"","append":"","useSpawn":"false","timer":"","winHide":false,"oldrc":false,"name":"","x":445,"y":801,"wires":[["6f3032facfa11b9b"],["b832ce7f95242497"],["709ac2f03cdc827b"]]},{"id":"238537a3a70a5f95","type":"inject","z":"fde1d30a505103d6","g":"5159616a40a5571f","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":287.75,"y":709,"wires":[["58ccb98aa260245f"]]},{"id":"37d5a57aeb3453dd","type":"exec","z":"fde1d30a505103d6","g":"a86d14490187ca88","command":"echo \"timeout\" ; echo \"fires later\" >&2 ; echo \"done\"","addpay":"","append":"","useSpawn":"false","timer":"3","winHide":false,"oldrc":false,"name":"","x":459,"y":1045,"wires":[["c530420eb67bbb8a"],["c0d2695b9e2c54d5"],["b54aa3c66c542976"]]},{"id":"191b0c041640805e","type":"inject","z":"fde1d30a505103d6","g":"a86d14490187ca88","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":200.75,"y":982,"wires":[["37d5a57aeb3453dd"]]},{"id":"0e10377378a5136f","type":"switch","z":"fde1d30a505103d6","g":"9a5fcbdcfe3734c2","name":"","property":"$length($$.payload)","propertyType":"jsonata","rules":[{"t":"gt","v":"1000","vt":"num"}],"checkall":"true","repair":false,"outputs":1,"x":730,"y":479,"wires":[["1742127e22cd9f32"]]},{"id":"1742127e22cd9f32","type":"ut-assert-success","z":"fde1d30a505103d6","g":"9a5fcbdcfe3734c2","name":"","count":1,"x":913,"y":443,"wires":[]},{"id":"95756e7a496ee852","type":"ut-assert-values","z":"fde1d30a505103d6","g":"9ce6160770d3fa75","name":"","ignore_failure_if_succeed":false,"rules":[{"t":"eql","p":"payload","pt":"msg","to":"dasdasd\\n","tot":"str"}],"x":943,"y":175,"wires":[[]]},{"id":"6f3032facfa11b9b","type":"ut-assert-values","z":"fde1d30a505103d6","g":"5159616a40a5571f","name":"","ignore_failure_if_succeed":false,"rules":[{"p":"payload","pt":"msg","t":"eql","to":"Stdout\\ndone\\n","tot":"str"}],"x":821,"y":696,"wires":[[]]},{"id":"709ac2f03cdc827b","type":"ut-assert-values","z":"fde1d30a505103d6","g":"5159616a40a5571f","name":"","ignore_failure_if_succeed":false,"rules":[{"p":"payload.code","pt":"msg","t":"eql","to":"0","tot":"num"}],"x":925,"y":815,"wires":[[]]},{"id":"b54aa3c66c542976","type":"ut-assert-values","z":"fde1d30a505103d6","g":"a86d14490187ca88","name":"","ignore_failure_if_succeed":false,"rules":[{"p":"payload.code","pt":"msg","t":"eql","to":"0","tot":"num"}],"x":940,"y":1058,"wires":[[]]},{"id":"b832ce7f95242497","type":"ut-assert-values","z":"fde1d30a505103d6","g":"5159616a40a5571f","name":"","ignore_failure_if_succeed":false,"rules":[{"p":"payload","pt":"msg","t":"eql","to":"stderr\\n","tot":"str"}],"x":863,"y":755.5,"wires":[[]]},{"id":"c530420eb67bbb8a","type":"ut-assert-values","z":"fde1d30a505103d6","g":"a86d14490187ca88","name":"","ignore_failure_if_succeed":false,"rules":[{"p":"payload","pt":"msg","t":"eql","to":"timeout\\ndone\\n","tot":"str"}],"x":832.5,"y":946,"wires":[[]]},{"id":"c0d2695b9e2c54d5","type":"ut-assert-values","z":"fde1d30a505103d6","g":"a86d14490187ca88","name":"","ignore_failure_if_succeed":false,"rules":[{"p":"payload","pt":"msg","t":"eql","to":"fires later\\n","tot":"str"}],"x":876.25,"y":1002,"wires":[[]]},{"id":"064ff5a2fb85bdb4","type":"ut-assert-values","z":"fde1d30a505103d6","g":"9ce6160770d3fa75","name":"","ignore_failure_if_succeed":false,"rules":[{"t":"eql","p":"payload.signal","pt":"msg","to":"SIGTERM","tot":"str"}],"x":972.0448837280273,"y":304.8383197784424,"wires":[[]]},{"id":"11678b485405eb6e","type":"ut-assert-values","z":"fde1d30a505103d6","g":"9a5fcbdcfe3734c2","name":"","ignore_failure_if_succeed":false,"rules":[{"t":"eql","p":"payload.code","pt":"msg","to":"ERR_CHILD_PROCESS_STDIO_MAXBUFFER","tot":"str"}],"x":877.1994781494141,"y":555.3753061294556,"wires":[[]]},{"id":"70c5807ff7837267","type":"ut-assert-failure","z":"fde1d30a505103d6","g":"9a5fcbdcfe3734c2","name":"","x":1038.888916015625,"y":503.3333435058594,"wires":[]},{"id":"85271d6787e3b0e8","type":"ut-assert-failure","z":"fde1d30a505103d6","g":"9ce6160770d3fa75","name":"","x":951.1871070861816,"y":237.5085163116455,"wires":[]}]
@@ -1 +1 @@
1
- [{"id":"538be5947c639b32","type":"tab","label":"[file in] basic functionality of being able to read a file","disabled":false,"info":"Read the contents of a file into the msg object setting the payload attribute.","env":[{"name":"ERED_ONLY","value":"true","type":"bool"}]},{"id":"9d31c507908f85b7","type":"inject","z":"538be5947c639b32","name":"","props":[],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":191,"y":387,"wires":[["d057038e3093d5ae"]]},{"id":"d057038e3093d5ae","type":"file in","z":"538be5947c639b32","name":"","filename":"${priv}/testdata/helloworld.txt","filenameType":"str","format":"utf8","chunk":false,"sendError":false,"encoding":"none","allProps":false,"x":427,"y":468,"wires":[["24f5da2bf8e77acc"]]},{"id":"24f5da2bf8e77acc","type":"ut-assert-values","z":"538be5947c639b32","name":"","ignore_failure_if_succeed":false,"rules":[{"t":"mth","p":"payload","pt":"msg","to":"hello world","tot":"str"}],"x":721,"y":402,"wires":[[]]}]
1
+ [{"id":"538be5947c639b32","type":"tab","label":"[file in] basic functionality of being able to read a file","disabled":false,"info":"Read the contents of a file into the msg object setting the payload attribute.","env":[{"name":"ERED_ONLY","value":"false","type":"bool"}]},{"id":"9d31c507908f85b7","type":"inject","z":"538be5947c639b32","name":"","props":[],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":191,"y":387,"wires":[["d057038e3093d5ae"]]},{"id":"d057038e3093d5ae","type":"file in","z":"538be5947c639b32","name":"","filename":"${priv}/testdata/helloworld.txt","filenameType":"str","format":"utf8","chunk":false,"sendError":false,"encoding":"none","allProps":false,"x":427,"y":468,"wires":[["24f5da2bf8e77acc"]]},{"id":"24f5da2bf8e77acc","type":"ut-assert-values","z":"538be5947c639b32","name":"","ignore_failure_if_succeed":false,"rules":[{"t":"mth","p":"payload","pt":"msg","to":"hello world","tot":"str"}],"x":721,"y":402,"wires":[[]]}]
@@ -1 +1 @@
1
- [{"id":"9e7ccc97f80d9afb","type":"tab","label":"[file in] will accept file name from msg obj","disabled":false,"info":"A file name can also be dynamic and be taken from the msg object passed to the file in node.","env":[{"name":"ERED_ONLY","value":"true","type":"bool"}]},{"id":"3de9bd2926669640","type":"inject","z":"9e7ccc97f80d9afb","name":"","props":[{"p":"filename","v":"${priv}/testdata/helloworld.txt","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":145.1428985595703,"y":147.14284896850586,"wires":[["e89d0c894d08b485"]]},{"id":"e89d0c894d08b485","type":"file in","z":"9e7ccc97f80d9afb","name":"","filename":"filename","filenameType":"msg","format":"utf8","chunk":false,"sendError":false,"encoding":"none","allProps":false,"x":342.1428985595703,"y":245.64284896850586,"wires":[["e0f13216032f1fe6","05c8dee92f3f6768"]]},{"id":"e0f13216032f1fe6","type":"ut-assert-values","z":"9e7ccc97f80d9afb","name":"","rules":[{"p":"payload","pt":"msg","t":"mth","to":"hello world","tot":"str"}],"x":594.1428985595703,"y":143.14284896850586,"wires":[[]]},{"id":"2b511c22a8ddb371","type":"ut-assert-debug","z":"9e7ccc97f80d9afb","name":"","scope":["e89d0c894d08b485"],"nodeid":"e89d0c894d08b485","msgtype":"normal","inverse":true,"x":274.1428985595703,"y":299.64284896850586,"wires":[["2fefb063b9b40a19"]]},{"id":"05c8dee92f3f6768","type":"ut-assert-success","z":"9e7ccc97f80d9afb","name":"","count":1,"x":636,"y":245.64284896850586,"wires":[]},{"id":"2fefb063b9b40a19","type":"ut-assert-failure","z":"9e7ccc97f80d9afb","name":"","x":636,"y":299.64284896850586,"wires":[]}]
1
+ [{"id":"9e7ccc97f80d9afb","type":"tab","label":"[file in] will accept file name from msg obj","disabled":false,"info":"A file name can also be dynamic and be taken from the msg object passed to the file in node.","env":[{"name":"ERED_ONLY","value":"false","type":"bool"}]},{"id":"3de9bd2926669640","type":"inject","z":"9e7ccc97f80d9afb","name":"","props":[{"p":"filename","v":"${priv}/testdata/helloworld.txt","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":145.1428985595703,"y":147.14284896850586,"wires":[["e89d0c894d08b485"]]},{"id":"e89d0c894d08b485","type":"file in","z":"9e7ccc97f80d9afb","name":"","filename":"filename","filenameType":"msg","format":"utf8","chunk":false,"sendError":false,"encoding":"none","allProps":false,"x":342.1428985595703,"y":245.64284896850586,"wires":[["e0f13216032f1fe6","05c8dee92f3f6768"]]},{"id":"e0f13216032f1fe6","type":"ut-assert-values","z":"9e7ccc97f80d9afb","name":"","rules":[{"p":"payload","pt":"msg","t":"mth","to":"hello world","tot":"str"}],"x":594.1428985595703,"y":143.14284896850586,"wires":[[]]},{"id":"2b511c22a8ddb371","type":"ut-assert-debug","z":"9e7ccc97f80d9afb","name":"","scope":["e89d0c894d08b485"],"nodeid":"e89d0c894d08b485","msgtype":"normal","inverse":true,"x":274.1428985595703,"y":299.64284896850586,"wires":[["2fefb063b9b40a19"]]},{"id":"05c8dee92f3f6768","type":"ut-assert-success","z":"9e7ccc97f80d9afb","name":"","count":1,"x":636,"y":245.64284896850586,"wires":[]},{"id":"2fefb063b9b40a19","type":"ut-assert-failure","z":"9e7ccc97f80d9afb","name":"","x":636,"y":299.64284896850586,"wires":[]}]