@gregoriusrippenstein/erlang-red-unittest 0.21.4 → 0.21.8
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.
- package/examples/debug/handle largish json files as content.json +1 -1
- package/examples/exec/handle multiple process at once (ered).json +1 -1
- package/examples/exec/support timeout specification.json +1 -0
- package/examples/exec/synchronised execution.json +1 -0
- package/examples/file in/basic functionality of being able to read a file.json +1 -1
- package/examples/file in/will accept file name from msg obj.json +1 -1
- package/examples/http/Dynamic Routing.json +1 -1
- package/examples/http/POST & GET have different endpoints.json +1 -1
- package/examples/http/dynamic redirect.json +1 -1
- package/examples/http/have params in the path.json +1 -1
- package/examples/http/http static routing.json +1 -1
- package/examples/http/multiple endpoints don't all get the request.json +1 -1
- package/examples/http/nodes should be able to handle requests.json +1 -1
- package/examples/http/post requests - json content.json +1 -1
- package/examples/http/request parses JSON conent.json +1 -1
- package/examples/http/request, ensure url and method are handled.json +1 -1
- package/examples/http/set content type.json +1 -1
- package/examples/http/support query string on get request.json +1 -1
- package/examples/join/manual config with count & nested property name.json +1 -1
- package/examples/json/parse example json content.json +1 -1
- package/examples/split/work with binary data as string data.json +1 -0
- package/examples/status/basic working version.json +1 -1
- package/examples/switch/post debug on JSONata exception.json +1 -1
- package/examples/template/support mustache template (ered).json +1 -0
- package/examples/template/support mustache template.json +1 -1
- package/nodes/locales/en-US/ut-config.html +25 -0
- package/nodes/locales/en-US/ut-config.json +14 -0
- package/nodes/ut-assert-debug.js +43 -83
- package/nodes/ut-config.html +70 -0
- package/nodes/ut-config.js +77 -0
- package/package.json +1 -1
- package/examples/exec/handle multiple process at once (nred).json +0 -1
- package/examples/exec/support timeout specification (ered).json +0 -1
- package/examples/exec/support timeout specification (nred).json +0 -1
- package/examples/exec/synchronised execution (ered).json +0 -1
- package/examples/exec/synchronised execution (nred).json +0 -1
- package/examples/split/work with binary data as string data (ered).json +0 -1
- package/examples/split/work with binary data as string data (nred).json +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"id":"a916165378c446e3","type":"tab","label":"[status] basic working version","disabled":false,"info":"Status node listens to other nodes for their status updates. It then posts these status updates as its messages","env":[{"name":"ERED_PENDING","value":"false","type":"bool"},{"name":"ERED_TIMEOUT","value":"6","type":"num"}]},{"id":"116137642eb0cbe7","type":"debug","z":"a916165378c446e3","name":"debug 395","active":true,"tosidebar":false,"console":false,"tostatus":true,"complete":"status.text","targetType":"msg","statusVal":"payload","statusType":"msg","x":727,"y":316,"wires":[]},{"id":"34cbd3682d560baf","type":"status","z":"a916165378c446e3","name":"","scope":["116137642eb0cbe7"],"x":239,"y":705.1071634292603,"wires":[["a1142417496ed5ef","0532caa79b85ad02"]]},{"id":"d4a3eab1fe256e75","type":"inject","z":"a916165378c446e3","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"e","payloadType":"str","x":307,"y":489,"wires":[["aa935988bc52cb94"]]},{"id":"aa935988bc52cb94","type":"delay","z":"a916165378c446e3","name":"","pauseType":"delay","timeout":"500","timeoutUnits":"milliseconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":524,"y":489,"wires":[["116137642eb0cbe7"]]},{"id":"f85c03456c8d0d25","type":"inject","z":"a916165378c446e3","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"b","payloadType":"str","x":215,"y":407.5,"wires":[["792349f35f115592"]]},{"id":"792349f35f115592","type":"delay","z":"a916165378c446e3","name":"","pauseType":"delay","timeout":"750","timeoutUnits":"milliseconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":414,"y":407.5,"wires":[["116137642eb0cbe7"]]},{"id":"a1142417496ed5ef","type":"join","z":"a916165378c446e3","name":"","mode":"custom","build":"array","property":"status.text","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","useparts":false,"accumulate":false,"timeout":"","count":"3","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"","reduceFixup":"","x":505,"y":772.5,"wires":[["8e7239952bc1b21c"]]},{"id":"0532caa79b85ad02","type":"ut-assert-success","z":"a916165378c446e3","name":"","count":"3","x":747.9999923706055,"y":705.1071634292603,"wires":[]},{"id":"249a4c9fa0ef8ded","type":"inject","z":"a916165378c446e3","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"b","payloadType":"str","x":299,"y":316,"wires":[["116137642eb0cbe7"]]},{"id":"8e7239952bc1b21c","type":"ut-assert-values","z":"a916165378c446e3","name":"","ignore_failure_if_succeed":false,"rules":[{"t":"eql","p":"
|
|
1
|
+
[{"id":"a916165378c446e3","type":"tab","label":"[status] basic working version","disabled":false,"info":"Status node listens to other nodes for their status updates. It then posts these status updates as its messages.\n\nThis also ensures that join nodes can join on specific attributes on a msg object.","env":[{"name":"ERED_PENDING","value":"false","type":"bool"},{"name":"ERED_TIMEOUT","value":"6","type":"num"}]},{"id":"116137642eb0cbe7","type":"debug","z":"a916165378c446e3","name":"debug 395","active":true,"tosidebar":false,"console":false,"tostatus":true,"complete":"status.text","targetType":"msg","statusVal":"payload","statusType":"msg","x":727,"y":316,"wires":[]},{"id":"34cbd3682d560baf","type":"status","z":"a916165378c446e3","name":"","scope":["116137642eb0cbe7"],"x":239,"y":705.1071634292603,"wires":[["a1142417496ed5ef","0532caa79b85ad02"]]},{"id":"d4a3eab1fe256e75","type":"inject","z":"a916165378c446e3","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"e","payloadType":"str","x":307,"y":489,"wires":[["aa935988bc52cb94"]]},{"id":"aa935988bc52cb94","type":"delay","z":"a916165378c446e3","name":"","pauseType":"delay","timeout":"500","timeoutUnits":"milliseconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":524,"y":489,"wires":[["116137642eb0cbe7"]]},{"id":"f85c03456c8d0d25","type":"inject","z":"a916165378c446e3","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"b","payloadType":"str","x":215,"y":407.5,"wires":[["792349f35f115592"]]},{"id":"792349f35f115592","type":"delay","z":"a916165378c446e3","name":"","pauseType":"delay","timeout":"750","timeoutUnits":"milliseconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":414,"y":407.5,"wires":[["116137642eb0cbe7"]]},{"id":"a1142417496ed5ef","type":"join","z":"a916165378c446e3","name":"","mode":"custom","build":"array","property":"status.text","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","useparts":false,"accumulate":false,"timeout":"","count":"3","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"","reduceFixup":"","x":505,"y":772.5,"wires":[["8e7239952bc1b21c"]]},{"id":"0532caa79b85ad02","type":"ut-assert-success","z":"a916165378c446e3","name":"","count":"3","x":747.9999923706055,"y":705.1071634292603,"wires":[]},{"id":"249a4c9fa0ef8ded","type":"inject","z":"a916165378c446e3","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"b","payloadType":"str","x":299,"y":316,"wires":[["116137642eb0cbe7"]]},{"id":"8e7239952bc1b21c","type":"ut-assert-values","z":"a916165378c446e3","name":"","ignore_failure_if_succeed":false,"rules":[{"t":"eql","p":"status.text","pt":"msg","to":"[\"b\", \"e\", \"b\"]","tot":"json"}],"x":744,"y":854.5,"wires":[[]]}]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"id":"36846ad6698e1bc0","type":"tab","label":"[switch] post debug on JSONata exception","disabled":false,"info":"","env":[{"name":"ERED_ONLY","value":"true","type":"bool"}]},{"id":"68fc7da02e4ce9da","type":"group","z":"36846ad6698e1bc0","name":"catch captures exception","style":{"label":true},"nodes":["83ab1354d90466f0","e9aa1d82d093db52","8d0e6a588bc579ce","915116870214bc0f","1466e3dcc32f09f6","5756ca28703729dc","5973bb0d4b1948b1","67fd7857fbebca0f"],"x":8,"y":828,"w":930,"h":354.5},{"id":"0e4b83838b47f758","type":"group","z":"36846ad6698e1bc0","name":"no catch node to capture the exception","style":{"label":true},"nodes":["9f0163ae195dc699","6dcf13bd6d4133a1","1a2dc9cdead129cb","4a51dd50369e9361","287121aac37d559b","4928acc9d0bc81a2"],"x":31,"y":362.5,"w":1030,"h":383},{"id":"5973bb0d4b1948b1","type":"group","z":"36846ad6698e1bc0","g":"68fc7da02e4ce9da","name":"Node-RED diverge","style":{"color":"#9363b7","fill":"#bfdbef","label":true},"nodes":["0dfefb756493e5d9","1bb2357cf149aeb0"],"x":680,"y":1018.5,"w":232,"h":138},{"id":"287121aac37d559b","type":"group","z":"36846ad6698e1bc0","g":"0e4b83838b47f758","name":"Node-RED Diverge","style":{"color":"#9363b7","fill":"#bfdbef","label":true},"nodes":["93eda421738039cf","6ff441e31fe3209a"],"x":580,"y":512.5,"w":232,"h":144},{"id":"9f0163ae195dc699","type":"inject","z":"36846ad6698e1bc0","g":"0e4b83838b47f758","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"hello world","payloadType":"str","x":137,"y":553.5,"wires":[["6dcf13bd6d4133a1"]]},{"id":"6dcf13bd6d4133a1","type":"switch","z":"36846ad6698e1bc0","g":"0e4b83838b47f758","name":"property uses broken jsonata","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"$fromMillis()","vt":"jsonata"},{"t":"else"},{"t":"eq","v":"hello world","vt":"str"}],"checkall":"true","repair":false,"outputs":3,"x":415,"y":553.5,"wires":[["1a2dc9cdead129cb"],["93eda421738039cf"],["6ff441e31fe3209a"]]},{"id":"1a2dc9cdead129cb","type":"ut-assert-failure","z":"36846ad6698e1bc0","g":"0e4b83838b47f758","name":"","x":696,"y":403.5,"wires":[]},{"id":"4a51dd50369e9361","type":"ut-assert-debug","z":"36846ad6698e1bc0","g":"0e4b83838b47f758","name":"","scope":["6dcf13bd6d4133a1"],"nodeid":"6dcf13bd6d4133a1","msgtype":"error","inverse":false,"x":387,"y":704.5,"wires":[["4928acc9d0bc81a2"]]},{"id":"93eda421738039cf","type":"ut-assert-success","z":"36846ad6698e1bc0","g":"287121aac37d559b","name":"","count":1,"x":696,"y":553.5,"wires":[]},{"id":"6ff441e31fe3209a","type":"ut-assert-success","z":"36846ad6698e1bc0","g":"287121aac37d559b","name":"","count":1,"x":696,"y":615.5,"wires":[]},{"id":"83ab1354d90466f0","type":"inject","z":"36846ad6698e1bc0","g":"68fc7da02e4ce9da","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"hello world","payloadType":"str","x":114,"y":944,"wires":[["e9aa1d82d093db52"]]},{"id":"e9aa1d82d093db52","type":"switch","z":"36846ad6698e1bc0","g":"68fc7da02e4ce9da","name":"broken property jsonata","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"$fromMillis()","vt":"jsonata"},{"t":"else"},{"t":"eq","v":"hello world","vt":"str"}],"checkall":"true","repair":false,"outputs":3,"x":393,"y":996,"wires":[["8d0e6a588bc579ce"],["0dfefb756493e5d9"],["1bb2357cf149aeb0"]]},{"id":"8d0e6a588bc579ce","type":"ut-assert-failure","z":"36846ad6698e1bc0","g":"68fc7da02e4ce9da","name":"","x":792,"y":946.5,"wires":[]},{"id":"915116870214bc0f","type":"ut-assert-debug","z":"36846ad6698e1bc0","g":"68fc7da02e4ce9da","name":"","scope":["e9aa1d82d093db52"],"nodeid":"e9aa1d82d093db52","msgtype":"error","inverse":true,"x":411,"y":1066.5,"wires":[["67fd7857fbebca0f"]]},{"id":"0dfefb756493e5d9","type":"ut-assert-success","z":"36846ad6698e1bc0","g":"5973bb0d4b1948b1","name":"","count":1,"x":796,"y":1059.5,"wires":[]},{"id":"1bb2357cf149aeb0","type":"ut-assert-success","z":"36846ad6698e1bc0","g":"5973bb0d4b1948b1","name":"","count":1,"x":796,"y":1115.5,"wires":[]},{"id":"1466e3dcc32f09f6","type":"catch","z":"36846ad6698e1bc0","g":"68fc7da02e4ce9da","name":"","scope":["e9aa1d82d093db52"],"uncaught":false,"x":384,"y":926,"wires":[["5756ca28703729dc"]]},{"id":"5756ca28703729dc","type":"ut-assert-success","z":"36846ad6698e1bc0","g":"68fc7da02e4ce9da","name":"","count":1,"x":793,"y":869,"wires":[]},{"id":"67fd7857fbebca0f","type":"ut-assert-failure","z":"36846ad6698e1bc0","g":"68fc7da02e4ce9da","name":"","x":408,"y":1131,"wires":[]},{"id":"4928acc9d0bc81a2","type":"ut-assert-values","z":"36846ad6698e1bc0","g":"0e4b83838b47f758","name":"","ignore_failure_if_succeed":false,"rules":[{"
|
|
1
|
+
[{"id":"36846ad6698e1bc0","type":"tab","label":"[switch] post debug on JSONata exception","disabled":false,"info":"","env":[{"name":"ERED_ONLY","value":"true","type":"bool"}]},{"id":"68fc7da02e4ce9da","type":"group","z":"36846ad6698e1bc0","name":"catch captures exception","style":{"label":true},"nodes":["83ab1354d90466f0","e9aa1d82d093db52","8d0e6a588bc579ce","915116870214bc0f","1466e3dcc32f09f6","5756ca28703729dc","5973bb0d4b1948b1","67fd7857fbebca0f"],"x":8,"y":828,"w":930,"h":354.5},{"id":"0e4b83838b47f758","type":"group","z":"36846ad6698e1bc0","name":"no catch node to capture the exception","style":{"label":true},"nodes":["9f0163ae195dc699","6dcf13bd6d4133a1","1a2dc9cdead129cb","4a51dd50369e9361","287121aac37d559b","4928acc9d0bc81a2"],"x":31,"y":362.5,"w":1030,"h":383},{"id":"5973bb0d4b1948b1","type":"group","z":"36846ad6698e1bc0","g":"68fc7da02e4ce9da","name":"Node-RED diverge","style":{"color":"#9363b7","fill":"#bfdbef","label":true},"nodes":["0dfefb756493e5d9","1bb2357cf149aeb0"],"x":680,"y":1018.5,"w":232,"h":138},{"id":"287121aac37d559b","type":"group","z":"36846ad6698e1bc0","g":"0e4b83838b47f758","name":"Node-RED Diverge","style":{"color":"#9363b7","fill":"#bfdbef","label":true},"nodes":["93eda421738039cf","6ff441e31fe3209a"],"x":580,"y":512.5,"w":232,"h":144},{"id":"9f0163ae195dc699","type":"inject","z":"36846ad6698e1bc0","g":"0e4b83838b47f758","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"hello world","payloadType":"str","x":137,"y":553.5,"wires":[["6dcf13bd6d4133a1"]]},{"id":"6dcf13bd6d4133a1","type":"switch","z":"36846ad6698e1bc0","g":"0e4b83838b47f758","name":"property uses broken jsonata","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"$fromMillis()","vt":"jsonata"},{"t":"else"},{"t":"eq","v":"hello world","vt":"str"}],"checkall":"true","repair":false,"outputs":3,"x":415,"y":553.5,"wires":[["1a2dc9cdead129cb"],["93eda421738039cf"],["6ff441e31fe3209a"]]},{"id":"1a2dc9cdead129cb","type":"ut-assert-failure","z":"36846ad6698e1bc0","g":"0e4b83838b47f758","name":"","x":696,"y":403.5,"wires":[]},{"id":"4a51dd50369e9361","type":"ut-assert-debug","z":"36846ad6698e1bc0","g":"0e4b83838b47f758","name":"","scope":["6dcf13bd6d4133a1"],"nodeid":"6dcf13bd6d4133a1","msgtype":"error","inverse":false,"x":387,"y":704.5,"wires":[["4928acc9d0bc81a2"]]},{"id":"93eda421738039cf","type":"ut-assert-success","z":"36846ad6698e1bc0","g":"287121aac37d559b","name":"","count":1,"x":696,"y":553.5,"wires":[]},{"id":"6ff441e31fe3209a","type":"ut-assert-success","z":"36846ad6698e1bc0","g":"287121aac37d559b","name":"","count":1,"x":696,"y":615.5,"wires":[]},{"id":"83ab1354d90466f0","type":"inject","z":"36846ad6698e1bc0","g":"68fc7da02e4ce9da","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"hello world","payloadType":"str","x":114,"y":944,"wires":[["e9aa1d82d093db52"]]},{"id":"e9aa1d82d093db52","type":"switch","z":"36846ad6698e1bc0","g":"68fc7da02e4ce9da","name":"broken property jsonata","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"$fromMillis()","vt":"jsonata"},{"t":"else"},{"t":"eq","v":"hello world","vt":"str"}],"checkall":"true","repair":false,"outputs":3,"x":393,"y":996,"wires":[["8d0e6a588bc579ce"],["0dfefb756493e5d9"],["1bb2357cf149aeb0"]]},{"id":"8d0e6a588bc579ce","type":"ut-assert-failure","z":"36846ad6698e1bc0","g":"68fc7da02e4ce9da","name":"","x":792,"y":946.5,"wires":[]},{"id":"915116870214bc0f","type":"ut-assert-debug","z":"36846ad6698e1bc0","g":"68fc7da02e4ce9da","name":"","scope":["e9aa1d82d093db52"],"nodeid":"e9aa1d82d093db52","msgtype":"error","inverse":true,"x":411,"y":1066.5,"wires":[["67fd7857fbebca0f"]]},{"id":"0dfefb756493e5d9","type":"ut-assert-success","z":"36846ad6698e1bc0","g":"5973bb0d4b1948b1","name":"","count":1,"x":796,"y":1059.5,"wires":[]},{"id":"1bb2357cf149aeb0","type":"ut-assert-success","z":"36846ad6698e1bc0","g":"5973bb0d4b1948b1","name":"","count":1,"x":796,"y":1115.5,"wires":[]},{"id":"1466e3dcc32f09f6","type":"catch","z":"36846ad6698e1bc0","g":"68fc7da02e4ce9da","name":"","scope":["e9aa1d82d093db52"],"uncaught":false,"x":384,"y":926,"wires":[["5756ca28703729dc"]]},{"id":"5756ca28703729dc","type":"ut-assert-success","z":"36846ad6698e1bc0","g":"68fc7da02e4ce9da","name":"","count":1,"x":793,"y":869,"wires":[]},{"id":"67fd7857fbebca0f","type":"ut-assert-failure","z":"36846ad6698e1bc0","g":"68fc7da02e4ce9da","name":"","x":408,"y":1131,"wires":[]},{"id":"4928acc9d0bc81a2","type":"ut-assert-values","z":"36846ad6698e1bc0","g":"0e4b83838b47f758","name":"","ignore_failure_if_succeed":false,"rules":[{"t":"eql","p":"data.id","pt":"msg","to":"6dcf13bd6d4133a1","tot":"str"},{"t":"eql","p":"data['level']","pt":"msg","to":"20","tot":"num"},{"t":"eql","p":"data.name","pt":"msg","to":"property uses broken jsonata","tot":"str"},{"t":"eql","p":"data.msg.error_msg","pt":"msg","to":"jsonata unsupported function: {fromMillis,[]}","tot":"str"}],"x":955,"y":704,"wires":[[]]}]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[{"id":"56a4f6bde709ddae","type":"tab","label":"[template] support mustache template (ered)","disabled":false,"info":"Basic support mustache templating using [bbmustache](https://github.com/soranoba/bbmustache).","env":[{"name":"ERED_ONLY","value":"true","type":"bool"}]},{"id":"670633d166091f80","type":"inject","z":"56a4f6bde709ddae","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"<b>hello world</b>","payloadType":"str","x":608,"y":882,"wires":[["a19c63d6c7b0b82c","0e2fcb987cb604d2","6fb4a505fbf513ba"]]},{"id":"a19c63d6c7b0b82c","type":"template","z":"56a4f6bde709ddae","name":"double {{ .. }}","field":"payload","fieldType":"msg","format":"text","syntax":"mustache","template":"This is the payload: {{payload}} !","output":"str","x":866,"y":882,"wires":[["cfeb41c5e62ef3ba"]]},{"id":"cfeb41c5e62ef3ba","type":"ut-assert-values","z":"56a4f6bde709ddae","name":"","ignore_failure_if_succeed":false,"rules":[{"t":"eql","p":"payload","pt":"msg","to":"This is the payload: <b>hello world</b> !","tot":"str"}],"x":1102,"y":882,"wires":[[]]},{"id":"0e2fcb987cb604d2","type":"template","z":"56a4f6bde709ddae","name":"triple {{{ .. }}}","field":"payload","fieldType":"msg","format":"text","syntax":"mustache","template":"This is the payload: {{{payload}}} !","output":"str","x":866,"y":958,"wires":[["846dc2ca320c8fda"]]},{"id":"846dc2ca320c8fda","type":"ut-assert-values","z":"56a4f6bde709ddae","name":"","ignore_failure_if_succeed":false,"rules":[{"t":"eql","p":"payload","pt":"msg","to":"This is the payload: <b>hello world</b> !","tot":"str"}],"x":1102,"y":1017,"wires":[[]]},{"id":"6fb4a505fbf513ba","type":"template","z":"56a4f6bde709ddae","name":"single { .. }","field":"payload","fieldType":"msg","format":"text","syntax":"mustache","template":"This is the payload: {payload} !","output":"str","x":866,"y":813,"wires":[["cf1f20ec5a8ed119"]]},{"id":"cf1f20ec5a8ed119","type":"ut-assert-values","z":"56a4f6bde709ddae","name":"","ignore_failure_if_succeed":false,"rules":[{"t":"eql","p":"payload","pt":"msg","to":"This is the payload: {payload} !","tot":"str"}],"x":1102,"y":773,"wires":[[]]}]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"id":"08183069b5f8ef9c","type":"tab","label":"[template] support mustache template","disabled":false,"info":"Basic support mustache templating using [bbmustache](https://github.com/soranoba/bbmustache).","env":[]},{"id":"bc81e6748b3aeb9c","type":"inject","z":"08183069b5f8ef9c","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"<b>hello world</b>","payloadType":"str","x":608,"y":882,"wires":[["44c609fe82ebf669","8e84e08b55c84671","f1d52f3c187a674e"]]},{"id":"44c609fe82ebf669","type":"template","z":"08183069b5f8ef9c","name":"double {{ .. }}","field":"payload","fieldType":"msg","format":"text","syntax":"mustache","template":"This is the payload: {{payload}} !","output":"str","x":866,"y":882,"wires":[["781a45ccaa1bf83f"]]},{"id":"781a45ccaa1bf83f","type":"ut-assert-values","z":"08183069b5f8ef9c","name":"","ignore_failure_if_succeed":false,"rules":[{"t":"eql","p":"payload","pt":"msg","to":"This is the payload: <b>hello world</b> !","tot":"str"}],"x":1102,"y":882,"wires":[[]]},{"id":"8e84e08b55c84671","type":"template","z":"08183069b5f8ef9c","name":"triple {{{ .. }}}","field":"payload","fieldType":"msg","format":"text","syntax":"mustache","template":"This is the payload: {{{payload}}} !","output":"str","x":866,"y":958,"wires":[["74f729fd37514cd4"]]},{"id":"74f729fd37514cd4","type":"ut-assert-values","z":"08183069b5f8ef9c","name":"","rules":[{"
|
|
1
|
+
[{"id":"08183069b5f8ef9c","type":"tab","label":"[template] support mustache template","disabled":false,"info":"Basic support mustache templating using [bbmustache](https://github.com/soranoba/bbmustache).","env":[{"name":"NODE_RED_ONLY","value":"true","type":"bool"}]},{"id":"bc81e6748b3aeb9c","type":"inject","z":"08183069b5f8ef9c","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"<b>hello world</b>","payloadType":"str","x":608,"y":882,"wires":[["44c609fe82ebf669","8e84e08b55c84671","f1d52f3c187a674e"]]},{"id":"44c609fe82ebf669","type":"template","z":"08183069b5f8ef9c","name":"double {{ .. }}","field":"payload","fieldType":"msg","format":"text","syntax":"mustache","template":"This is the payload: {{payload}} !","output":"str","x":866,"y":882,"wires":[["781a45ccaa1bf83f"]]},{"id":"781a45ccaa1bf83f","type":"ut-assert-values","z":"08183069b5f8ef9c","name":"","ignore_failure_if_succeed":false,"rules":[{"t":"eql","p":"payload","pt":"msg","to":"This is the payload: <b>hello world</b> !","tot":"str"}],"x":1102,"y":882,"wires":[[]]},{"id":"8e84e08b55c84671","type":"template","z":"08183069b5f8ef9c","name":"triple {{{ .. }}}","field":"payload","fieldType":"msg","format":"text","syntax":"mustache","template":"This is the payload: {{{payload}}} !","output":"str","x":866,"y":958,"wires":[["74f729fd37514cd4"]]},{"id":"74f729fd37514cd4","type":"ut-assert-values","z":"08183069b5f8ef9c","name":"","ignore_failure_if_succeed":false,"rules":[{"t":"eql","p":"payload","pt":"msg","to":"This is the payload: <b>hello world</b> !","tot":"str"}],"x":1102,"y":1017,"wires":[[]]},{"id":"f1d52f3c187a674e","type":"template","z":"08183069b5f8ef9c","name":"single { .. }","field":"payload","fieldType":"msg","format":"text","syntax":"mustache","template":"This is the payload: {payload} !","output":"str","x":866,"y":813,"wires":[["cc3819b467390aab"]]},{"id":"cc3819b467390aab","type":"ut-assert-values","z":"08183069b5f8ef9c","name":"","ignore_failure_if_succeed":false,"rules":[{"t":"eql","p":"payload","pt":"msg","to":"This is the payload: {payload} !","tot":"str"}],"x":1102,"y":773,"wires":[[]]}]
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<script type="text/markdown" data-help-name="ut-config">
|
|
2
|
+
Configuration details of the unittesting setup
|
|
3
|
+
|
|
4
|
+
### Inputs
|
|
5
|
+
|
|
6
|
+
: payload (any) : what is expected as payload input.
|
|
7
|
+
: topic (string) : (optional) is a topic expected or handled.
|
|
8
|
+
|
|
9
|
+
### Outputs
|
|
10
|
+
|
|
11
|
+
: payload (any) : what is returned as payload.
|
|
12
|
+
|
|
13
|
+
### Description
|
|
14
|
+
|
|
15
|
+
Sets the `utcfg` object with the following values:
|
|
16
|
+
```
|
|
17
|
+
msg.utcfg = {
|
|
18
|
+
"priv": "", // directory containing test data for the tests
|
|
19
|
+
"host": "" // Node-RED/Erlang-Red server endpoint from within the runtime
|
|
20
|
+
}
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
<!-- [Markdown documentation details](https://nodered.org/docs/creating-nodes/help-style-guide) -->
|
|
24
|
+
|
|
25
|
+
</script>
|
package/nodes/ut-assert-debug.js
CHANGED
|
@@ -145,53 +145,32 @@ let createExtraCatchNode = () => {
|
|
|
145
145
|
]
|
|
146
146
|
}
|
|
147
147
|
|
|
148
|
-
let replacedPrivInFileNames = (flowdetails) => {
|
|
149
|
-
const path = require('path');
|
|
150
|
-
const runtime = require("@node-red/runtime");
|
|
151
|
-
|
|
152
|
-
let getHttpServer = (settings) => {
|
|
153
|
-
var port = settings.serverPort;
|
|
154
|
-
if (port === undefined) {
|
|
155
|
-
port = settings.uiPort;
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
var listenPath = 'http' + (settings.https ? 's' : '') + '://' +
|
|
159
|
-
(settings.uiHost == '::' ? 'localhost' : (settings.uiHost == '0.0.0.0' ? '127.0.0.1' : settings.uiHost)) +
|
|
160
|
-
':' + port;
|
|
161
148
|
|
|
162
|
-
|
|
149
|
+
// Groups can be used to disable a set of nodes in a test run. These groups are marked as being not
|
|
150
|
+
// for Node-RED and all nodes contained in the group are disabled before doing the test run.
|
|
151
|
+
let disableNodesNotForNodeRed = (flowdefinition) => {
|
|
152
|
+
let nonNodeRedGrps = flowdefinition.filter(
|
|
153
|
+
d => d.type == "group" && (d.env || []).filter( e => e.name =="ERED_ONLY" && (e.value == "true" || e.value == true) )[0]
|
|
154
|
+
).map(d => d.id)
|
|
155
|
+
|
|
156
|
+
if (nonNodeRedGrps.length == 0) {
|
|
157
|
+
//nothing to do
|
|
158
|
+
return flowdefinition
|
|
159
|
+
} else {
|
|
160
|
+
return flowdefinition.map( d => {
|
|
161
|
+
d.d = (d.g && nonNodeRedGrps.indexOf(d.g) > -1)
|
|
162
|
+
return d
|
|
163
|
+
})
|
|
163
164
|
}
|
|
164
|
-
|
|
165
|
-
let privDir = path.resolve(path.dirname(__filename), "..", "priv")
|
|
166
|
-
let httpServer = getHttpServer(runtime._.settings)
|
|
167
|
-
|
|
168
|
-
flowdetails.forEach( obj => {
|
|
169
|
-
if (obj.type == "inject") {
|
|
170
|
-
obj.props.forEach( prp => {
|
|
171
|
-
if (prp.v) prp.v = prp.v.replaceAll(/\${priv}/g, privDir).replaceAll(/\${host}/g, httpServer)
|
|
172
|
-
})
|
|
173
|
-
} else if (obj.type == "file in") {
|
|
174
|
-
if (obj.filenameType == "str" && obj.filename) obj.filename = obj.filename.replaceAll(/\${priv}/g, privDir)
|
|
175
|
-
} else if (obj.type == "http request") {
|
|
176
|
-
if (obj.url) obj.url = obj.url.replaceAll(/\${host}/g, httpServer)
|
|
177
|
-
} else if (obj.type == "change") {
|
|
178
|
-
obj.rules.forEach(prp => {
|
|
179
|
-
if (prp.tot == "str" && prp.to) {
|
|
180
|
-
prp.to = prp.to.replaceAll(/\${host}/g, httpServer).replaceAll(/\${priv}/g, privDir)
|
|
181
|
-
}
|
|
182
|
-
})
|
|
183
|
-
}
|
|
184
|
-
})
|
|
185
|
-
|
|
186
|
-
return flowdetails
|
|
187
165
|
}
|
|
188
166
|
|
|
167
|
+
// is an entire test for Erlang-Red == then ignore it.
|
|
189
168
|
let isErlangRedOnly = (tabDetails) => {
|
|
190
|
-
return tabDetails.env.filter(d => d.name == "ERED_ONLY")[0]?.value == "true"
|
|
169
|
+
return (tabDetails.env || []).filter(d => d.name == "ERED_ONLY")[0]?.value == "true"
|
|
191
170
|
}
|
|
192
171
|
|
|
193
172
|
let isTestPending = (tabDetails) => {
|
|
194
|
-
return tabDetails.env.filter(d => d.name == "NRED_PENDING")[0]?.value == "true"
|
|
173
|
+
return (tabDetails.env || []).filter(d => d.name == "NRED_PENDING")[0]?.value == "true"
|
|
195
174
|
}
|
|
196
175
|
|
|
197
176
|
// chunkify an array into chunks of `size` size
|
|
@@ -226,7 +205,7 @@ let respondWithCount = (res, count) => {
|
|
|
226
205
|
return null
|
|
227
206
|
}
|
|
228
207
|
|
|
229
|
-
flowDetails =
|
|
208
|
+
flowDetails = disableNodesNotForNodeRed(flowDetails)
|
|
230
209
|
|
|
231
210
|
// add an catch all and trigger a assert false if any exceptions are
|
|
232
211
|
// raised by the test - if there isn't already a catch all node.
|
|
@@ -337,53 +316,32 @@ let createExtraCatchNode = () => {
|
|
|
337
316
|
]
|
|
338
317
|
}
|
|
339
318
|
|
|
340
|
-
let replacedPrivInFileNames = (flowdetails) => {
|
|
341
|
-
const path = require('path');
|
|
342
|
-
const runtime = require("@node-red/runtime");
|
|
343
319
|
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
320
|
+
// Groups can be used to disable a set of nodes in a test run. These groups are marked as being not
|
|
321
|
+
// for Node-RED and all nodes contained in the group are disabled before doing the test run.
|
|
322
|
+
let disableNodesNotForNodeRed = (flowdefinition) => {
|
|
323
|
+
let nonNodeRedGrps = flowdefinition.filter(
|
|
324
|
+
d => d.type == "group" && (d.env || []).filter( e => e.name =="ERED_ONLY" && (e.value == "true" || e.value == true) )[0]
|
|
325
|
+
).map(d => d.id)
|
|
326
|
+
|
|
327
|
+
if (nonNodeRedGrps.length == 0) {
|
|
328
|
+
//nothing to do
|
|
329
|
+
return flowdefinition
|
|
330
|
+
} else {
|
|
331
|
+
return flowdefinition.map( d => {
|
|
332
|
+
d.d = (d.g && nonNodeRedGrps.indexOf(d.g) > -1)
|
|
333
|
+
return d
|
|
334
|
+
})
|
|
355
335
|
}
|
|
356
|
-
|
|
357
|
-
let privDir = path.resolve(path.dirname(__filename), "..", "priv")
|
|
358
|
-
let httpServer = getHttpServer(runtime._.settings)
|
|
359
|
-
|
|
360
|
-
flowdetails.forEach( obj => {
|
|
361
|
-
if (obj.type == "inject") {
|
|
362
|
-
obj.props.forEach( prp => {
|
|
363
|
-
if (prp.v) prp.v = prp.v.replaceAll(/\${priv}/g, privDir).replaceAll(/\${host}/g, httpServer)
|
|
364
|
-
})
|
|
365
|
-
} else if (obj.type == "file in") {
|
|
366
|
-
if (obj.filenameType == "str" && obj.filename) obj.filename = obj.filename.replaceAll(/\${priv}/g, privDir)
|
|
367
|
-
} else if (obj.type == "http request") {
|
|
368
|
-
if (obj.url) obj.url = obj.url.replaceAll(/\${host}/g, httpServer)
|
|
369
|
-
} else if (obj.type == "change") {
|
|
370
|
-
obj.rules.forEach(prp => {
|
|
371
|
-
if (prp.tot == "str" && prp.to) {
|
|
372
|
-
prp.to = prp.to.replaceAll(/\${host}/g, httpServer).replaceAll(/\${priv}/g, privDir)
|
|
373
|
-
}
|
|
374
|
-
})
|
|
375
|
-
}
|
|
376
|
-
})
|
|
377
|
-
|
|
378
|
-
return flowdetails
|
|
379
336
|
}
|
|
380
337
|
|
|
338
|
+
// is an entire test for Erlang-Red == then ignore it.
|
|
381
339
|
let isErlangRedOnly = (tabDetails) => {
|
|
382
|
-
return tabDetails.env.filter(d => d.name == "ERED_ONLY")[0]?.value == "true"
|
|
340
|
+
return (tabDetails.env || []).filter(d => d.name == "ERED_ONLY")[0]?.value == "true"
|
|
383
341
|
}
|
|
384
342
|
|
|
385
343
|
let isTestPending = (tabDetails) => {
|
|
386
|
-
return tabDetails.env.filter(d => d.name == "NRED_PENDING")[0]?.value == "true"
|
|
344
|
+
return (tabDetails.env || []).filter(d => d.name == "NRED_PENDING")[0]?.value == "true"
|
|
387
345
|
}
|
|
388
346
|
|
|
389
347
|
// chunkify an array into chunks of `size` size
|
|
@@ -473,11 +431,11 @@ let respondWithCount = (res, count) => {
|
|
|
473
431
|
}
|
|
474
432
|
|
|
475
433
|
// compute any timeout that is defined for the flow test
|
|
476
|
-
tabDetails.env.filter(d => d.name == "NRED_TIMEOUT").forEach( d => {
|
|
434
|
+
(tabDetails.env || []).filter(d => d.name == "NRED_TIMEOUT").forEach( d => {
|
|
477
435
|
timeoutValues.push(parseInt(d.value) * 1000)
|
|
478
436
|
})
|
|
479
437
|
|
|
480
|
-
flowDetails =
|
|
438
|
+
flowDetails = disableNodesNotForNodeRed(flowDetails)
|
|
481
439
|
|
|
482
440
|
// add an catch all and trigger a assert false if any exceptions are
|
|
483
441
|
// raised by the test - if there isn't already a catch all node.
|
|
@@ -552,6 +510,8 @@ let respondWithCount = (res, count) => {
|
|
|
552
510
|
Promise.all([removeFlow(0)]).then(() => {
|
|
553
511
|
RED.log.debug("unittest: removed all flows")
|
|
554
512
|
runTestsForFileNames(fileIdx+1)
|
|
513
|
+
}).catch(e => {
|
|
514
|
+
/* bravely go there, where no AI would - ignore the exception */
|
|
555
515
|
})
|
|
556
516
|
}, Math.max(...(timeoutValues.concat([5000]))))
|
|
557
517
|
})
|
|
@@ -601,11 +561,11 @@ let respondWithCount = (res, count) => {
|
|
|
601
561
|
}
|
|
602
562
|
|
|
603
563
|
// compute any timeout that is defined for the flow test
|
|
604
|
-
tabDetails.env.filter(d => d.name == "NRED_TIMEOUT").forEach(d => {
|
|
564
|
+
(tabDetails.env || []).filter(d => d.name == "NRED_TIMEOUT").forEach(d => {
|
|
605
565
|
timeoutValues.push(parseInt(d.value) * 1000)
|
|
606
566
|
})
|
|
607
567
|
|
|
608
|
-
flowDetails =
|
|
568
|
+
flowDetails = disableNodesNotForNodeRed(flowDetails)
|
|
609
569
|
|
|
610
570
|
// add an catch all and trigger a assert false if any exceptions are
|
|
611
571
|
// raised by the test - if there isn't already a catch all node.
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
<script type="text/javascript">
|
|
2
|
+
(function(){
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
function frontendSupportFunction() {
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
var functTwo = (arg) => {
|
|
9
|
+
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
RED.nodes.registerType('ut-config',{
|
|
13
|
+
color: '#FDF0C2',
|
|
14
|
+
icon: "font-awesome/fa-th",
|
|
15
|
+
category: 'testing',
|
|
16
|
+
paletteLabel: 'Unittest Config',
|
|
17
|
+
defaults: {
|
|
18
|
+
name: {
|
|
19
|
+
value:"",
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
|
|
23
|
+
inputs: 1,
|
|
24
|
+
|
|
25
|
+
outputs: 1,
|
|
26
|
+
|
|
27
|
+
label: function() {
|
|
28
|
+
return (this.name || this._def.paletteLabel);
|
|
29
|
+
},
|
|
30
|
+
|
|
31
|
+
labelStyle: function() {
|
|
32
|
+
return this.name?"node_label_italic":"";
|
|
33
|
+
},
|
|
34
|
+
|
|
35
|
+
// called when node is added to workspace also if copied and pasted.
|
|
36
|
+
// once for each node added to the workspace
|
|
37
|
+
onadd: function() {
|
|
38
|
+
},
|
|
39
|
+
|
|
40
|
+
// called when node added to palette - one time
|
|
41
|
+
onpaletteadd: function() {
|
|
42
|
+
},
|
|
43
|
+
|
|
44
|
+
onpaletteremove: function() {
|
|
45
|
+
},
|
|
46
|
+
|
|
47
|
+
oneditprepare: function() {
|
|
48
|
+
},
|
|
49
|
+
|
|
50
|
+
oneditcancel: function() {
|
|
51
|
+
},
|
|
52
|
+
|
|
53
|
+
oneditsave: function() {
|
|
54
|
+
},
|
|
55
|
+
|
|
56
|
+
oneditresize: function(size) {
|
|
57
|
+
},
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
});
|
|
61
|
+
})();
|
|
62
|
+
|
|
63
|
+
</script>
|
|
64
|
+
|
|
65
|
+
<script type="text/html" data-template-name="ut-config">
|
|
66
|
+
<div class="form-row">
|
|
67
|
+
<label for="node-input-name"><i class="fa fa-tag"></i> <span data-i18n="node-red:common.label.name"></span></label>
|
|
68
|
+
<input type="text" id="node-input-name" data-i18n="[placeholder]node-red:common.label.name">
|
|
69
|
+
</div>
|
|
70
|
+
</script>
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
module.exports = function(RED) {
|
|
2
|
+
function Coreut_configFunctionality(config) {
|
|
3
|
+
RED.nodes.createNode(this,config);
|
|
4
|
+
|
|
5
|
+
var node = this;
|
|
6
|
+
var cfg = config;
|
|
7
|
+
|
|
8
|
+
node.on('close', function() {
|
|
9
|
+
node.status({});
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
/* msg handler, in this case pass the message on unchanged */
|
|
13
|
+
node.on("input", function(msg, send, done) {
|
|
14
|
+
|
|
15
|
+
const path = require('path');
|
|
16
|
+
const runtime = require("@node-red/runtime");
|
|
17
|
+
|
|
18
|
+
// this is taken from the start script for Node-RED
|
|
19
|
+
// https://github.com/node-red/node-red/blob/e4f7fc516cd8da1b4b4d571169cf6937b500bb30/packages/node_modules/node-red/red.js#L466-L481
|
|
20
|
+
// and is used as basis for the getHttpServer function below.
|
|
21
|
+
let getListenPath = (settings) => {
|
|
22
|
+
var port = settings.serverPort;
|
|
23
|
+
if (port === undefined) {
|
|
24
|
+
port = settings.uiPort;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
var listenPath = 'http' + (settings.https ? 's' : '') + '://' +
|
|
28
|
+
(settings.uiHost == '::' ? 'localhost' : (settings.uiHost == '0.0.0.0' ? '127.0.0.1' : settings.uiHost)) +
|
|
29
|
+
':' + port;
|
|
30
|
+
if (settings.httpAdminRoot !== false) {
|
|
31
|
+
listenPath += settings.httpAdminRoot;
|
|
32
|
+
} else if (settings.httpStatic) {
|
|
33
|
+
listenPath += "/";
|
|
34
|
+
}
|
|
35
|
+
return listenPath;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
let getHttpServer = (settings) => {
|
|
39
|
+
var port = settings.serverPort;
|
|
40
|
+
if (port === undefined) {
|
|
41
|
+
port = settings.uiPort;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
var listenPath = 'http' + (settings.https ? 's' : '') + '://' +
|
|
45
|
+
(settings.uiHost == '::' ? 'localhost' : (settings.uiHost == '0.0.0.0' ? '127.0.0.1' : settings.uiHost)) +
|
|
46
|
+
':' + port;
|
|
47
|
+
|
|
48
|
+
return listenPath;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
// Send a message and how to handle errors.
|
|
52
|
+
try {
|
|
53
|
+
try {
|
|
54
|
+
msg.utcfg = {
|
|
55
|
+
"priv": path.resolve(path.dirname(__filename), "..", "priv"),
|
|
56
|
+
"host": getHttpServer(runtime._.settings),
|
|
57
|
+
"isNodeRed": true
|
|
58
|
+
}
|
|
59
|
+
send(msg);
|
|
60
|
+
done();
|
|
61
|
+
} catch ( err ) {
|
|
62
|
+
// use node.error if the node might send subsequent messages
|
|
63
|
+
node.error("error occurred", { ...msg, error: err })
|
|
64
|
+
done();
|
|
65
|
+
}
|
|
66
|
+
} catch (err) {
|
|
67
|
+
// use done if the node won't send anymore messages for the
|
|
68
|
+
// message it received.
|
|
69
|
+
msg.error = err
|
|
70
|
+
done(err.message, msg)
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
RED.nodes.registerType("ut-config", Coreut_configFunctionality);
|
|
76
|
+
|
|
77
|
+
}
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
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":[]}]
|
|
@@ -1 +0,0 @@
|
|
|
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":[[]]}]
|
|
@@ -1 +0,0 @@
|
|
|
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":[[]]}]
|
|
@@ -1 +0,0 @@
|
|
|
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":[]}]
|
|
@@ -1 +0,0 @@
|
|
|
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":[]}]
|