Skip to content

Commit 92be3e9

Browse files
committed
updated test flows
1 parent ff69ad4 commit 92be3e9

File tree

29 files changed

+29
-28
lines changed

29 files changed

+29
-28
lines changed

priv/testflows/07452607645aeeb7/flows.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
[{"id":"0c35d269ca7178c6","type":"tab","label":"[function] supports completed node","disabled":false,"info":"## Function node and message completion\n\nWhen has a function node completed with a message?\n\nIf that message was successfully handled, no timeout or illegal exit.\n\n","env":[{"name":"ERED_TIMEOUT","value":"8","type":"num"}]},{"id":"f20328830b376b23","type":"group","z":"0c35d269ca7178c6","name":"successfully handled message","style":{"label":true},"nodes":["e854140ab6f0d21c","731d488b92cd68f1","b93f2509fb2a5bcc","55336fe53a868e93","6e9d36928e0ca025"],"x":207,"y":223.5,"w":740,"h":176.75},{"id":"c165d28f8005d7c4","type":"group","z":"0c35d269ca7178c6","name":"time out - no complete notification","style":{"label":true},"nodes":["0cdc8b8fcada2b64","084ee5f93fe80d0a","381a28ec2492ce63","aa5971bdea0f354c","1b7b76e14556c769","5a408c1c86dbbb6a"],"x":207,"y":482.5,"w":779,"h":234},{"id":"db361fcb415409b2","type":"group","z":"0c35d269ca7178c6","name":"bad arith exception - no complete","style":{"label":true},"nodes":["f5af604e178c08c0","4a8146bae13b5087","67c13f891a224fef","e1e0adb799026724","c6a558ec0e5e8ec9","9cd1030d04babc9d"],"x":208,"y":763.5,"w":779,"h":234},{"id":"e854140ab6f0d21c","type":"function","z":"0c35d269ca7178c6","g":"f20328830b376b23","name":"function 2","func":" Msg\n","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":577,"y":359.25,"wires":[["6e9d36928e0ca025"]]},{"id":"731d488b92cd68f1","type":"complete","z":"0c35d269ca7178c6","g":"f20328830b376b23","name":"","scope":["e854140ab6f0d21c"],"uncaught":false,"x":584,"y":264.5,"wires":[["55336fe53a868e93"]]},{"id":"b93f2509fb2a5bcc","type":"inject","z":"0c35d269ca7178c6","g":"f20328830b376b23","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":313,"y":359.25,"wires":[["e854140ab6f0d21c"]]},{"id":"55336fe53a868e93","type":"ut-assert-success","z":"0c35d269ca7178c6","g":"f20328830b376b23","name":"","count":1,"x":848,"y":264.5,"wires":[]},{"id":"6e9d36928e0ca025","type":"ut-assert-success","z":"0c35d269ca7178c6","g":"f20328830b376b23","name":"","count":1,"x":851,"y":359.25,"wires":[]},{"id":"0cdc8b8fcada2b64","type":"function","z":"0c35d269ca7178c6","g":"c165d28f8005d7c4","name":"timeout - no complete","func":"timer:sleep(2_000)\n","outputs":1,"timeout":"1","noerr":0,"initialize":"","finalize":"","libs":[],"x":617,"y":613.5,"wires":[["1b7b76e14556c769"]]},{"id":"084ee5f93fe80d0a","type":"complete","z":"0c35d269ca7178c6","g":"c165d28f8005d7c4","name":"","scope":["0cdc8b8fcada2b64"],"uncaught":false,"x":584,"y":523.5,"wires":[["aa5971bdea0f354c"]]},{"id":"381a28ec2492ce63","type":"inject","z":"0c35d269ca7178c6","g":"c165d28f8005d7c4","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":313,"y":613.5,"wires":[["0cdc8b8fcada2b64"]]},{"id":"aa5971bdea0f354c","type":"ut-assert-failure","z":"0c35d269ca7178c6","g":"c165d28f8005d7c4","name":"","x":883,"y":523.5,"wires":[]},{"id":"1b7b76e14556c769","type":"ut-assert-failure","z":"0c35d269ca7178c6","g":"c165d28f8005d7c4","name":"","x":890,"y":613.5,"wires":[]},{"id":"5a408c1c86dbbb6a","type":"ut-assert-debug","z":"0c35d269ca7178c6","g":"c165d28f8005d7c4","name":"","nodeid":"0cdc8b8fcada2b64","msgtype":"error","inverse":false,"x":729,"y":675.5,"wires":[]},{"id":"f5af604e178c08c0","type":"function","z":"0c35d269ca7178c6","g":"db361fcb415409b2","name":"divide by zero error","func":"1 / 0 ","outputs":1,"timeout":"0","noerr":0,"initialize":"","finalize":"","libs":[],"x":608,"y":894.5,"wires":[["c6a558ec0e5e8ec9"]]},{"id":"4a8146bae13b5087","type":"complete","z":"0c35d269ca7178c6","g":"db361fcb415409b2","name":"","scope":["f5af604e178c08c0"],"uncaught":false,"x":585,"y":804.5,"wires":[["e1e0adb799026724"]]},{"id":"67c13f891a224fef","type":"inject","z":"0c35d269ca7178c6","g":"db361fcb415409b2","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":314,"y":894.5,"wires":[["f5af604e178c08c0"]]},{"id":"e1e0adb799026724","type":"ut-assert-failure","z":"0c35d269ca7178c6","g":"db361fcb415409b2","name":"","x":884,"y":804.5,"wires":[]},{"id":"c6a558ec0e5e8ec9","type":"ut-assert-failure","z":"0c35d269ca7178c6","g":"db361fcb415409b2","name":"","x":891,"y":894.5,"wires":[]},{"id":"9cd1030d04babc9d","type":"ut-assert-debug","z":"0c35d269ca7178c6","g":"db361fcb415409b2","name":"","nodeid":"f5af604e178c08c0","msgtype":"error","inverse":false,"x":720,"y":956.5,"wires":[]}]
1+
[{"disabled":false,"env":[{"name":"ERED_TIMEOUT","type":"num","value":"8"}],"id":"0c35d269ca7178c6","info":"## Function node and message completion\n\nWhen has a function node completed with a message?\n\nIf that message was successfully handled, no timeout or illegal exit.\n\n","label":"[function] supports completed node","type":"tab"},{"h":176.75,"id":"f20328830b376b23","name":"successfully handled message","nodes":["e854140ab6f0d21c","731d488b92cd68f1","b93f2509fb2a5bcc","55336fe53a868e93","6e9d36928e0ca025"],"style":{"label":true},"type":"group","w":740,"x":207,"y":223.5,"z":"0c35d269ca7178c6"},{"h":234,"id":"c165d28f8005d7c4","name":"time out - no complete notification","nodes":["0cdc8b8fcada2b64","084ee5f93fe80d0a","381a28ec2492ce63","aa5971bdea0f354c","1b7b76e14556c769","5a408c1c86dbbb6a","4b361478f333e8e2"],"style":{"label":true},"type":"group","w":1028,"x":207,"y":482.5,"z":"0c35d269ca7178c6"},{"h":234,"id":"db361fcb415409b2","name":"bad arith exception - no complete","nodes":["f5af604e178c08c0","4a8146bae13b5087","67c13f891a224fef","e1e0adb799026724","c6a558ec0e5e8ec9","9cd1030d04babc9d","3c162b8fa00c4058"],"style":{"label":true},"type":"group","w":1027,"x":208,"y":763.5,"z":"0c35d269ca7178c6"},{"finalize":"","func":" Msg\n","g":"f20328830b376b23","id":"e854140ab6f0d21c","initialize":"","libs":[],"name":"function 2","noerr":0,"outputs":1,"timeout":0,"type":"function","wires":[["6e9d36928e0ca025"]],"x":577,"y":359.25,"z":"0c35d269ca7178c6"},{"g":"f20328830b376b23","id":"731d488b92cd68f1","name":"","scope":["e854140ab6f0d21c"],"type":"complete","uncaught":false,"wires":[["55336fe53a868e93"]],"x":584,"y":264.5,"z":"0c35d269ca7178c6"},{"crontab":"","g":"f20328830b376b23","id":"b93f2509fb2a5bcc","name":"","once":false,"onceDelay":0.1,"payload":"","payloadType":"date","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","topic":"","type":"inject","wires":[["e854140ab6f0d21c"]],"x":313,"y":359.25,"z":"0c35d269ca7178c6"},{"count":1,"g":"f20328830b376b23","id":"55336fe53a868e93","name":"","type":"ut-assert-success","wires":[],"x":848,"y":264.5,"z":"0c35d269ca7178c6"},{"count":1,"g":"f20328830b376b23","id":"6e9d36928e0ca025","name":"","type":"ut-assert-success","wires":[],"x":851,"y":359.25,"z":"0c35d269ca7178c6"},{"finalize":"","func":"timer:sleep(2_000)\n","g":"c165d28f8005d7c4","id":"0cdc8b8fcada2b64","initialize":"","libs":[],"name":"timeout - no complete","noerr":0,"outputs":1,"timeout":"1","type":"function","wires":[["1b7b76e14556c769"]],"x":617,"y":613.5,"z":"0c35d269ca7178c6"},{"g":"c165d28f8005d7c4","id":"084ee5f93fe80d0a","name":"","scope":["0cdc8b8fcada2b64"],"type":"complete","uncaught":false,"wires":[["aa5971bdea0f354c"]],"x":584,"y":523.5,"z":"0c35d269ca7178c6"},{"crontab":"","g":"c165d28f8005d7c4","id":"381a28ec2492ce63","name":"","once":false,"onceDelay":0.1,"payload":"","payloadType":"date","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","topic":"","type":"inject","wires":[["0cdc8b8fcada2b64"]],"x":313,"y":613.5,"z":"0c35d269ca7178c6"},{"g":"c165d28f8005d7c4","id":"aa5971bdea0f354c","name":"","type":"ut-assert-failure","wires":[],"x":883,"y":523.5,"z":"0c35d269ca7178c6"},{"g":"c165d28f8005d7c4","id":"1b7b76e14556c769","name":"","type":"ut-assert-failure","wires":[],"x":890,"y":613.5,"z":"0c35d269ca7178c6"},{"g":"c165d28f8005d7c4","id":"5a408c1c86dbbb6a","inverse":false,"msgtype":"error","name":"","nodeid":"0cdc8b8fcada2b64","scope":["0cdc8b8fcada2b64"],"type":"ut-assert-debug","wires":[["4b361478f333e8e2"]],"x":729,"y":675.5,"z":"0c35d269ca7178c6"},{"finalize":"","func":"1 / 0 ","g":"db361fcb415409b2","id":"f5af604e178c08c0","initialize":"","libs":[],"name":"divide by zero error","noerr":0,"outputs":1,"timeout":"0","type":"function","wires":[["c6a558ec0e5e8ec9"]],"x":608,"y":894.5,"z":"0c35d269ca7178c6"},{"g":"db361fcb415409b2","id":"4a8146bae13b5087","name":"","scope":["f5af604e178c08c0"],"type":"complete","uncaught":false,"wires":[["e1e0adb799026724"]],"x":585,"y":804.5,"z":"0c35d269ca7178c6"},{"crontab":"","g":"db361fcb415409b2","id":"67c13f891a224fef","name":"","once":false,"onceDelay":0.1,"payload":"","payloadType":"date","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","topic":"","type":"inject","wires":[["f5af604e178c08c0"]],"x":314,"y":894.5,"z":"0c35d269ca7178c6"},{"g":"db361fcb415409b2","id":"e1e0adb799026724","name":"","type":"ut-assert-failure","wires":[],"x":884,"y":804.5,"z":"0c35d269ca7178c6"},{"g":"db361fcb415409b2","id":"c6a558ec0e5e8ec9","name":"","type":"ut-assert-failure","wires":[],"x":891,"y":894.5,"z":"0c35d269ca7178c6"},{"g":"db361fcb415409b2","id":"9cd1030d04babc9d","inverse":false,"msgtype":"error","name":"","nodeid":"f5af604e178c08c0","scope":["f5af604e178c08c0"],"type":"ut-assert-debug","wires":[["3c162b8fa00c4058"]],"x":720,"y":956.5,"z":"0c35d269ca7178c6"},{"g":"c165d28f8005d7c4","id":"4b361478f333e8e2","ignore_failure_if_succeed":false,"name":"","rules":[{"p":"debug.nodeid","pt":"msg","t":"eql","to":"0cdc8b8fcada2b64","tot":"str"},{"p":"payload['level']","pt":"msg","t":"eql","to":"20","tot":"num"},{"p":"payload.id","pt":"msg","t":"eql","to":"0cdc8b8fcada2b64","tot":"str"},{"p":"payload.name","pt":"msg","t":"eql","to":"timeout - no complete","tot":"str"},{"p":"payload.msg.error_msg","pt":"msg","t":"eql","to":"unexpected exit","tot":"str"}],"type":"ut-assert-values","wires":[[]],"x":1129,"y":675.5,"z":"0c35d269ca7178c6"},{"g":"db361fcb415409b2","id":"3c162b8fa00c4058","ignore_failure_if_succeed":false,"name":"","rules":[{"p":"debug.nodeid","pt":"msg","t":"eql","to":"f5af604e178c08c0","tot":"str"},{"p":"payload['level']","pt":"msg","t":"eql","to":"20","tot":"num"},{"p":"payload.id","pt":"msg","t":"eql","to":"f5af604e178c08c0","tot":"str"},{"p":"payload.name","pt":"msg","t":"eql","to":"divide by zero error","tot":"str"},{"p":"payload.msg.error_msg","pt":"msg","t":"eql","to":"unexpected exit","tot":"str"}],"type":"ut-assert-values","wires":[[]],"x":1129,"y":956.5,"z":"0c35d269ca7178c6"}]
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
[{"id":"0cc95e44532c14ec","type":"tab","label":"[inject] unsupported JSONata function","disabled":false,"info":"Ensure that unsupported functions don't crash the process and are instead pushed out to the debug log.","env":[]},{"id":"95c19d8bc208f282","type":"group","z":"0cc95e44532c14ec","name":"exception is raised and captured, no message is generated by inject node","style":{"label":true},"nodes":["1bf09e3d2cebe0d7","8a7407c5a476617f","3e849ab6c6bee761","d02e47bf421d74ac","5dd119b3c4a92c78"],"x":123,"y":169.5,"w":618,"h":237},{"id":"442ef567ebbd92af","type":"group","z":"0cc95e44532c14ec","name":"exception is raised but not captured, debug message. Also no message is generated by the inject node.","style":{"label":true},"nodes":["650d8bbc3d9dc0c2","ad5087bbf2439079","478138fefcd2b049"],"x":115,"y":474.5,"w":710,"h":143},{"id":"1bf09e3d2cebe0d7","type":"inject","z":"0cc95e44532c14ec","g":"95c19d8bc208f282","name":"","props":[{"p":"topic","v":"1 - $fromMillis()","vt":"jsonata"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":219,"y":365,"wires":[["8a7407c5a476617f"]]},{"id":"8a7407c5a476617f","type":"ut-assert-failure","z":"0cc95e44532c14ec","g":"95c19d8bc208f282","name":"","x":621,"y":365.5,"wires":[]},{"id":"3e849ab6c6bee761","type":"catch","z":"0cc95e44532c14ec","g":"95c19d8bc208f282","name":"","scope":["1bf09e3d2cebe0d7"],"uncaught":false,"x":218,"y":316,"wires":[["d02e47bf421d74ac"]]},{"id":"d02e47bf421d74ac","type":"ut-assert-success","z":"0cc95e44532c14ec","g":"95c19d8bc208f282","name":"","count":1,"x":494,"y":210.5,"wires":[]},{"id":"650d8bbc3d9dc0c2","type":"inject","z":"0cc95e44532c14ec","g":"442ef567ebbd92af","name":"","props":[{"p":"topic","v":"1 - $fromMillis()","vt":"jsonata"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":211,"y":515.5,"wires":[["ad5087bbf2439079"]]},{"id":"ad5087bbf2439079","type":"ut-assert-failure","z":"0cc95e44532c14ec","g":"442ef567ebbd92af","name":"","x":729,"y":516,"wires":[]},{"id":"478138fefcd2b049","type":"ut-assert-debug","z":"0cc95e44532c14ec","g":"442ef567ebbd92af","name":"","nodeid":"650d8bbc3d9dc0c2","msgtype":"error","inverse":false,"x":464,"y":576.5,"wires":[]},{"id":"5dd119b3c4a92c78","type":"ut-assert-debug","z":"0cc95e44532c14ec","g":"95c19d8bc208f282","name":"","nodeid":"1bf09e3d2cebe0d7","msgtype":"normal","inverse":true,"x":595,"y":285.5,"wires":[]}]
1+
[{"disabled":false,"env":[],"id":"0cc95e44532c14ec","info":"Ensure that unsupported functions don't crash the process and are instead pushed out to the debug log.","label":"[inject] unsupported JSONata function","type":"tab"},{"h":240.5,"id":"95c19d8bc208f282","name":"exception is raised and captured, no message is generated by inject node","nodes":["1bf09e3d2cebe0d7","8a7407c5a476617f","3e849ab6c6bee761","d02e47bf421d74ac","5dd119b3c4a92c78","4b6cf03dc32f937e"],"style":{"label":true},"type":"group","w":830,"x":123,"y":166,"z":"0cc95e44532c14ec"},{"h":143,"id":"442ef567ebbd92af","name":"exception is raised but not captured, debug message. Also no message is generated by the inject node.","nodes":["650d8bbc3d9dc0c2","ad5087bbf2439079","478138fefcd2b049","3acf1a7f7c4a7f92"],"style":{"label":true},"type":"group","w":871,"x":115,"y":474.5,"z":"0cc95e44532c14ec"},{"crontab":"","g":"95c19d8bc208f282","id":"1bf09e3d2cebe0d7","name":"","once":false,"onceDelay":0.1,"props":[{"p":"topic","v":"1 - $fromMillis()","vt":"jsonata"}],"repeat":"","topic":"","type":"inject","wires":[["8a7407c5a476617f"]],"x":219,"y":365,"z":"0cc95e44532c14ec"},{"g":"95c19d8bc208f282","id":"8a7407c5a476617f","name":"","type":"ut-assert-failure","wires":[],"x":621,"y":365.5,"z":"0cc95e44532c14ec"},{"g":"95c19d8bc208f282","id":"3e849ab6c6bee761","name":"","scope":["1bf09e3d2cebe0d7"],"type":"catch","uncaught":false,"wires":[["d02e47bf421d74ac"]],"x":218,"y":316,"z":"0cc95e44532c14ec"},{"count":1,"g":"95c19d8bc208f282","id":"d02e47bf421d74ac","name":"","type":"ut-assert-success","wires":[],"x":494,"y":210.5,"z":"0cc95e44532c14ec"},{"crontab":"","g":"442ef567ebbd92af","id":"650d8bbc3d9dc0c2","name":"","once":false,"onceDelay":0.1,"props":[{"p":"topic","v":"1 - $fromMillis()","vt":"jsonata"}],"repeat":"","topic":"","type":"inject","wires":[["ad5087bbf2439079"]],"x":211,"y":515.5,"z":"0cc95e44532c14ec"},{"g":"442ef567ebbd92af","id":"ad5087bbf2439079","name":"","type":"ut-assert-failure","wires":[],"x":729,"y":516,"z":"0cc95e44532c14ec"},{"g":"442ef567ebbd92af","id":"478138fefcd2b049","inverse":false,"msgtype":"error","name":"","nodeid":"650d8bbc3d9dc0c2","scope":["650d8bbc3d9dc0c2"],"type":"ut-assert-debug","wires":[["3acf1a7f7c4a7f92"]],"x":464,"y":576.5,"z":"0cc95e44532c14ec"},{"g":"95c19d8bc208f282","id":"5dd119b3c4a92c78","inverse":true,"msgtype":"normal","name":"","nodeid":"1bf09e3d2cebe0d7","scope":["1bf09e3d2cebe0d7"],"type":"ut-assert-debug","wires":[["4b6cf03dc32f937e"]],"x":595,"y":285.5,"z":"0cc95e44532c14ec"},{"g":"95c19d8bc208f282","id":"4b6cf03dc32f937e","name":"","type":"ut-assert-failure","wires":[],"x":857,"y":207,"z":"0cc95e44532c14ec"},{"g":"442ef567ebbd92af","id":"3acf1a7f7c4a7f92","ignore_failure_if_succeed":false,"name":"","rules":[{"p":"payload.name","pt":"msg","t":"eql","to":"inject","tot":"str"},{"p":"payload['level']","pt":"msg","t":"eql","to":"20","tot":"num"},{"p":"payload.format","pt":"msg","t":"eql","to":"object","tot":"str"},{"p":"payload.id","pt":"msg","t":"eql","to":"650d8bbc3d9dc0c2","tot":"str"},{"p":"debug.nodeid","pt":"msg","t":"eql","to":"650d8bbc3d9dc0c2","tot":"str"}],"type":"ut-assert-values","wires":[[]],"x":880,"y":576.5,"z":"0cc95e44532c14ec"}]

0 commit comments

Comments
 (0)