@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 +0,0 @@
|
|
|
1
|
-
[{"id":"61142eb3e4e54eab","type":"tab","label":"[split] work with binary data as string data (ered)","disabled":false,"info":"## Split\n\nSplit node worked with lists but now also binary data as string.\n\n\n## Erlang-Only \n\nBecause the split accepts an \"array fixed value\" of zero, something that Node-RED does not accept.\n\nThe why the stuff is put together differs also.\n\n## Erlang versions\n\nDifferent versions have different outputs fo the a34790bc9d32225c test case, so setting to pending until a solution is found for dealing with different OTP/Erlang versions.","env":[{"name":"ERED_ONLY","value":"true","type":"bool"},{"name":"ERED_PENDING","value":"true","type":"bool"}]},{"id":"c82f30a56d1a660d","type":"group","z":"61142eb3e4e54eab","name":"tab","style":{"label":true},"nodes":["aa8d437abfb102c3","259c2437c90e9894","79ccf35012bdfc48","2f145767746512d9","426375d5dbd09656"],"x":130,"y":317,"w":307,"h":441},{"id":"56099cc47438c1d8","type":"group","z":"61142eb3e4e54eab","name":"newline","style":{"label":true},"nodes":["f2c8927f6a9bf66d","6ad09bfad9be496a","1e7f8905177e4a51","bbef69370ffefa7d","4870251dc3920d6e"],"x":524,"y":351,"w":278,"h":387},{"id":"1d7b7265606317fe","type":"group","z":"61142eb3e4e54eab","name":"slash-b","style":{"label":true},"nodes":["fba392e7c499fa3a","5e76c482452552f9","8dd97d7c8a42d1a3","7060502f466f75fb","27496740b8f0d9b5","f66b5dfddb7e379e"],"x":887,"y":358,"w":454,"h":386},{"id":"2a69db355acc618b","type":"group","z":"61142eb3e4e54eab","name":"carriage return","style":{"label":true},"nodes":["df4aea65eb3bb87d","0d40744d4078e8e6","15754917e9e1ddf4","c53c69fb06bf9bf2","280dd2d3b3482854","a34790bc9d32225c"],"x":1404,"y":366.5,"w":454,"h":386},{"id":"aa8d437abfb102c3","type":"split","z":"61142eb3e4e54eab","g":"c82f30a56d1a660d","name":"","splt":"\\t","spltType":"str","arraySplt":"0","arraySpltType":"len","stream":false,"addname":"","property":"payload","x":244,"y":447,"wires":[["79ccf35012bdfc48","2f145767746512d9"]]},{"id":"259c2437c90e9894","type":"template","z":"61142eb3e4e54eab","g":"c82f30a56d1a660d","name":"","field":"payload","fieldType":"msg","format":"handlebars","syntax":"plain","template":"\t\ta n\nb b\t\t\nc \t \nd \n\te \n \n\t\td\t\td\t\td\n\t\t","output":"str","x":230,"y":358,"wires":[["aa8d437abfb102c3"]]},{"id":"0c59f7a51d772382","type":"inject","z":"61142eb3e4e54eab","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":899,"y":141,"wires":[["259c2437c90e9894","f2c8927f6a9bf66d","fba392e7c499fa3a","df4aea65eb3bb87d"]]},{"id":"f2c8927f6a9bf66d","type":"template","z":"61142eb3e4e54eab","g":"56099cc47438c1d8","name":"","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"one\ntwo\nthree\nfour\nfive\nsix\n","output":"str","x":610,"y":392,"wires":[["6ad09bfad9be496a"]]},{"id":"6ad09bfad9be496a","type":"split","z":"61142eb3e4e54eab","g":"56099cc47438c1d8","name":"","splt":"\\n","spltType":"str","arraySplt":"0","arraySpltType":"len","stream":false,"addname":"","property":"payload","x":628,"y":475,"wires":[["1e7f8905177e4a51","bbef69370ffefa7d"]]},{"id":"1e7f8905177e4a51","type":"join","z":"61142eb3e4e54eab","g":"56099cc47438c1d8","name":"","mode":"auto","build":"object","property":"payload","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","useparts":false,"accumulate":"false","timeout":"","count":"","reduceRight":false,"x":655,"y":637,"wires":[["4870251dc3920d6e"]]},{"id":"bbef69370ffefa7d","type":"ut-assert-success","z":"61142eb3e4e54eab","g":"56099cc47438c1d8","name":"","count":"7","x":686,"y":581,"wires":[]},{"id":"4870251dc3920d6e","type":"ut-assert-values","z":"61142eb3e4e54eab","g":"56099cc47438c1d8","name":"","ignore_failure_if_succeed":false,"rules":[{"t":"eql","p":"payload","pt":"msg","to":"[\"one\", \"two\", \"three\", \"four\", \"five\", \"six\", \"\"]","tot":"json"}],"x":677,"y":697,"wires":[[]]},{"id":"79ccf35012bdfc48","type":"join","z":"61142eb3e4e54eab","g":"c82f30a56d1a660d","name":"","mode":"auto","build":"object","property":"payload","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","useparts":false,"accumulate":"false","timeout":"","count":"","reduceRight":false,"x":262,"y":640,"wires":[["426375d5dbd09656"]]},{"id":"2f145767746512d9","type":"ut-assert-success","z":"61142eb3e4e54eab","g":"c82f30a56d1a660d","name":"","count":"15","x":321,"y":574,"wires":[]},{"id":"426375d5dbd09656","type":"ut-assert-values","z":"61142eb3e4e54eab","g":"c82f30a56d1a660d","name":"","ignore_failure_if_succeed":false,"rules":[{"t":"eql","p":"payload","pt":"msg","to":"[\"\",\"\",\"a n\\nb b\",\"\",\"\\nc \",\" \\nd \\n\",\"e \\n \\n\",\"\",\"d\",\"\",\"d\",\"\",\"d\\n\",\"\",\"\"]","tot":"json"}],"x":246,"y":717,"wires":[[]]},{"id":"fba392e7c499fa3a","type":"template","z":"61142eb3e4e54eab","g":"1d7b7265606317fe","name":"","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"one\\btwo\\bthree\\bfour\\bfive\\bsix\n","output":"str","x":1023,"y":399,"wires":[["5e76c482452552f9"]]},{"id":"5e76c482452552f9","type":"change","z":"61142eb3e4e54eab","g":"1d7b7265606317fe","name":"replace slash-slash-b with slash-b","rules":[{"t":"set","p":"payload","pt":"msg","to":"$replace($$.payload, \"\\\\b\",\"\\b\")","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":1053,"y":454,"wires":[["8dd97d7c8a42d1a3"]]},{"id":"8dd97d7c8a42d1a3","type":"split","z":"61142eb3e4e54eab","g":"1d7b7265606317fe","name":"","splt":"\\b","spltType":"str","arraySplt":"0","arraySpltType":"len","stream":false,"addname":"","property":"payload","x":1023,"y":533,"wires":[["7060502f466f75fb","27496740b8f0d9b5"]]},{"id":"7060502f466f75fb","type":"ut-assert-success","z":"61142eb3e4e54eab","g":"1d7b7265606317fe","name":"","count":"6","x":1225,"y":605,"wires":[]},{"id":"27496740b8f0d9b5","type":"join","z":"61142eb3e4e54eab","g":"1d7b7265606317fe","name":"","mode":"auto","build":"object","property":"payload","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","useparts":false,"accumulate":"false","timeout":"","count":"","reduceRight":false,"x":1017,"y":618,"wires":[["f66b5dfddb7e379e"]]},{"id":"f66b5dfddb7e379e","type":"ut-assert-values","z":"61142eb3e4e54eab","g":"1d7b7265606317fe","name":"","ignore_failure_if_succeed":false,"rules":[{"t":"eql","p":"payload","pt":"msg","to":"[\"one\",\"two\",\"three\",\"four\",\"five\",\"six\\n\"]","tot":"json"}],"x":1018,"y":703,"wires":[[]]},{"id":"df4aea65eb3bb87d","type":"template","z":"61142eb3e4e54eab","g":"2a69db355acc618b","name":"","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"one\\rtwo\\rthree\\rfour\\rfive\\rsix","output":"str","x":1540,"y":407.5,"wires":[["0d40744d4078e8e6"]]},{"id":"0d40744d4078e8e6","type":"change","z":"61142eb3e4e54eab","g":"2a69db355acc618b","name":"carriage return","rules":[{"t":"set","p":"payload","pt":"msg","to":"$replace($$.payload, \"\\\\r\",\"\\r\")","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":1510,"y":462.5,"wires":[["15754917e9e1ddf4"]]},{"id":"15754917e9e1ddf4","type":"split","z":"61142eb3e4e54eab","g":"2a69db355acc618b","name":"","splt":"\\r","spltType":"str","arraySplt":"0","arraySpltType":"len","stream":false,"addname":"","property":"payload","x":1540,"y":541.5,"wires":[["c53c69fb06bf9bf2","280dd2d3b3482854"]]},{"id":"c53c69fb06bf9bf2","type":"ut-assert-success","z":"61142eb3e4e54eab","g":"2a69db355acc618b","name":"","count":"6","x":1742,"y":613.5,"wires":[]},{"id":"280dd2d3b3482854","type":"join","z":"61142eb3e4e54eab","g":"2a69db355acc618b","name":"","mode":"auto","build":"object","property":"payload","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","useparts":false,"accumulate":"false","timeout":"","count":"","reduceRight":false,"x":1534,"y":626.5,"wires":[["a34790bc9d32225c"]]},{"id":"a34790bc9d32225c","type":"ut-assert-values","z":"61142eb3e4e54eab","g":"2a69db355acc618b","name":"","ignore_failure_if_succeed":false,"rules":[{"t":"eql","p":"payload","pt":"msg","to":"[\"one\",\"two\",\"three\",\"four\",\"five\",\"six\"]","tot":"json"}],"x":1535,"y":711.5,"wires":[[]]}]
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
[{"id":"4230cfd4c21318a5","type":"tab","label":"[split] work with binary data as string data (nred)","disabled":false,"info":"## Split\n\nSplit node worked with lists but now also binary data as string.","env":[{"name":"NODE_RED_ONLY","value":"true","type":"bool"}]},{"id":"6e2bbdf52b55d248","type":"group","z":"4230cfd4c21318a5","name":"tab","style":{"label":true},"nodes":["f3e9b99534abdaba","b94a5012e923bc05","87e64c6518497ee5","d0d31a11e41af27f","2ef249327246a765"],"x":130,"y":317,"w":307,"h":441},{"id":"7b85709fb08516bf","type":"group","z":"4230cfd4c21318a5","name":"newline","style":{"label":true},"nodes":["b129ce48a73de207","58669e63657b7e51","b809df2b8ce61a1f","1e4bc1ce57d62063","d899fb02b4edd622"],"x":524,"y":351,"w":278,"h":387},{"id":"370f9510573c64b4","type":"group","z":"4230cfd4c21318a5","name":"slash-b","style":{"label":true},"nodes":["693a622727e1d4fe","74258593e923ed09","4f9bf5a8b4f877cf","3e7b9a951d74ebff","36288be2f9d17cfd","7af4e62513af2972"],"x":887,"y":358,"w":454,"h":386},{"id":"6975f75691123931","type":"group","z":"4230cfd4c21318a5","name":"carriage return","style":{"label":true},"nodes":["28dcb3e10b92d6eb","9cdf171bd16d363c","71c9729954dfa068","2b917526a55cd39b","2991f7415f8c5223","94315fd38eb3f077"],"x":1404,"y":366.5,"w":454,"h":386},{"id":"f3e9b99534abdaba","type":"split","z":"4230cfd4c21318a5","g":"6e2bbdf52b55d248","name":"","splt":"\\t","spltType":"str","arraySplt":"1","arraySpltType":"len","stream":false,"addname":"","property":"payload","x":244,"y":447,"wires":[["87e64c6518497ee5","d0d31a11e41af27f"]]},{"id":"b94a5012e923bc05","type":"template","z":"4230cfd4c21318a5","g":"6e2bbdf52b55d248","name":"","field":"payload","fieldType":"msg","format":"handlebars","syntax":"plain","template":"\t\ta n\nb b\t\t\nc \t \nd \n\te \n \n\t\td\t\td\t\td\n\t\t","output":"str","x":230,"y":358,"wires":[["f3e9b99534abdaba"]]},{"id":"b371b72078e1d88b","type":"inject","z":"4230cfd4c21318a5","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":899,"y":141,"wires":[["b94a5012e923bc05","b129ce48a73de207","693a622727e1d4fe","28dcb3e10b92d6eb"]]},{"id":"b129ce48a73de207","type":"template","z":"4230cfd4c21318a5","g":"7b85709fb08516bf","name":"","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"one\ntwo\nthree\nfour\nfive\nsix\n","output":"str","x":610,"y":392,"wires":[["58669e63657b7e51"]]},{"id":"58669e63657b7e51","type":"split","z":"4230cfd4c21318a5","g":"7b85709fb08516bf","name":"","splt":"\\n","spltType":"str","arraySplt":"1","arraySpltType":"len","stream":false,"addname":"","property":"payload","x":628,"y":475,"wires":[["b809df2b8ce61a1f","1e4bc1ce57d62063"]]},{"id":"b809df2b8ce61a1f","type":"join","z":"4230cfd4c21318a5","g":"7b85709fb08516bf","name":"","mode":"auto","build":"object","property":"payload","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","useparts":false,"accumulate":"false","timeout":"","count":"","reduceRight":false,"x":655,"y":637,"wires":[["d899fb02b4edd622"]]},{"id":"1e4bc1ce57d62063","type":"ut-assert-success","z":"4230cfd4c21318a5","g":"7b85709fb08516bf","name":"","count":"7","x":686,"y":581,"wires":[]},{"id":"d899fb02b4edd622","type":"ut-assert-values","z":"4230cfd4c21318a5","g":"7b85709fb08516bf","name":"","ignore_failure_if_succeed":false,"rules":[{"t":"eql","p":"payload","pt":"msg","to":"one\\ntwo\\nthree\\nfour\\nfive\\nsix\\n","tot":"str"}],"x":677,"y":697,"wires":[[]]},{"id":"87e64c6518497ee5","type":"join","z":"4230cfd4c21318a5","g":"6e2bbdf52b55d248","name":"","mode":"custom","build":"array","property":"payload","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","useparts":true,"accumulate":false,"timeout":"","count":"","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"","reduceFixup":"","x":262,"y":636,"wires":[["2ef249327246a765"]]},{"id":"d0d31a11e41af27f","type":"ut-assert-success","z":"4230cfd4c21318a5","g":"6e2bbdf52b55d248","name":"","count":"15","x":321,"y":574,"wires":[]},{"id":"2ef249327246a765","type":"ut-assert-values","z":"4230cfd4c21318a5","g":"6e2bbdf52b55d248","name":"","ignore_failure_if_succeed":false,"rules":[{"t":"eql","p":"payload","pt":"msg","to":"[\"\",\"\",\"a n\\nb b\",\"\",\"\\nc \",\" \\nd \\n\",\"e \\n \\n\",\"\",\"d\",\"\",\"d\",\"\",\"d\\n\",\"\",\"\"]","tot":"json"}],"x":246,"y":717,"wires":[[]]},{"id":"693a622727e1d4fe","type":"template","z":"4230cfd4c21318a5","g":"370f9510573c64b4","name":"","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"one\\btwo\\bthree\\bfour\\bfive\\bsix\n","output":"str","x":1023,"y":399,"wires":[["74258593e923ed09","4f9bf5a8b4f877cf"]]},{"id":"74258593e923ed09","type":"change","z":"4230cfd4c21318a5","d":true,"g":"370f9510573c64b4","name":"replace slash-slash-b with slash-b","rules":[{"t":"set","p":"payload","pt":"msg","to":"$replace($$.payload, \"\\\\b\",\"\\b\")","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":1053,"y":454,"wires":[["4f9bf5a8b4f877cf"]]},{"id":"4f9bf5a8b4f877cf","type":"split","z":"4230cfd4c21318a5","g":"370f9510573c64b4","name":"","splt":"\\b","spltType":"str","arraySplt":"1","arraySpltType":"len","stream":false,"addname":"","property":"payload","x":1023,"y":533,"wires":[["3e7b9a951d74ebff","36288be2f9d17cfd"]]},{"id":"3e7b9a951d74ebff","type":"ut-assert-success","z":"4230cfd4c21318a5","g":"370f9510573c64b4","name":"","count":"6","x":1225,"y":605,"wires":[]},{"id":"36288be2f9d17cfd","type":"join","z":"4230cfd4c21318a5","g":"370f9510573c64b4","name":"","mode":"auto","build":"object","property":"payload","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","useparts":false,"accumulate":"false","timeout":"","count":"","reduceRight":false,"x":1017,"y":618,"wires":[["7af4e62513af2972"]]},{"id":"7af4e62513af2972","type":"ut-assert-values","z":"4230cfd4c21318a5","g":"370f9510573c64b4","name":"","ignore_failure_if_succeed":false,"rules":[{"t":"eql","p":"payload","pt":"msg","to":"one\\btwo\\bthree\\bfour\\bfive\\bsix\\n","tot":"str"}],"x":1018,"y":703,"wires":[[]]},{"id":"28dcb3e10b92d6eb","type":"template","z":"4230cfd4c21318a5","g":"6975f75691123931","name":"","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"one\\rtwo\\rthree\\rfour\\rfive\\rsix","output":"str","x":1540,"y":407.5,"wires":[["9cdf171bd16d363c"]]},{"id":"9cdf171bd16d363c","type":"change","z":"4230cfd4c21318a5","g":"6975f75691123931","name":"carriage return","rules":[{"t":"set","p":"payload","pt":"msg","to":"$replace($$.payload, \"\\\\r\",\"\\r\")","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":1510,"y":462.5,"wires":[["71c9729954dfa068"]]},{"id":"71c9729954dfa068","type":"split","z":"4230cfd4c21318a5","g":"6975f75691123931","name":"","splt":"\\r","spltType":"str","arraySplt":"1","arraySpltType":"len","stream":false,"addname":"","property":"payload","x":1540,"y":541.5,"wires":[["2b917526a55cd39b","2991f7415f8c5223"]]},{"id":"2b917526a55cd39b","type":"ut-assert-success","z":"4230cfd4c21318a5","g":"6975f75691123931","name":"","count":"6","x":1742,"y":613.5,"wires":[]},{"id":"2991f7415f8c5223","type":"join","z":"4230cfd4c21318a5","g":"6975f75691123931","name":"","mode":"auto","build":"object","property":"payload","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","useparts":false,"accumulate":true,"timeout":"","count":"","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"","reduceFixup":"","x":1534,"y":626.5,"wires":[["94315fd38eb3f077"]]},{"id":"94315fd38eb3f077","type":"ut-assert-values","z":"4230cfd4c21318a5","g":"6975f75691123931","name":"","ignore_failure_if_succeed":false,"rules":[{"t":"eql","p":"payload","pt":"msg","to":"one\\rtwo\\rthree\\rfour\\rfive\\rsix","tot":"str"}],"x":1535,"y":711.5,"wires":[[]]}]
|