@gregoriusrippenstein/erlang-red-unittest 0.21.7 → 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/json/parse example json content.json +1 -1
- package/examples/split/work with binary data as string data.json +1 -0
- package/nodes/ut-assert-debug.js +43 -83
- package/nodes/ut-config.js +5 -2
- 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":"b864b3e3510cd120","type":"tab","label":"[http] post requests - json content","disabled":false,"info":"Post requests have formdata form, handle binary data and json content or plain text.\n\n","env":[{"name":"ERED_NOT_EUNIT","value":"true","type":"bool"},{"name":"ERED_TIMEOUT","value":"3","type":"num"}]},{"id":"b29550d7fb531718","type":"http in","z":"b864b3e3510cd120","name":"","url":"/tb864b3e3510cd120/data","method":"post","upload":false,"swaggerDoc":"","x":197,"y":208.25,"wires":[["d44e6d2a2486f53e","fedba336ce487092","24654fde735ea5e5"]]},{"id":"6769eaa26a8493f1","type":"http response","z":"b864b3e3510cd120","name":"","statusCode":"200","headers":{},"x":612,"y":431,"wires":[]},{"id":"5a2c281c92f8b8c4","type":"http request","z":"b864b3e3510cd120","name":"","method":"POST","ret":"txt","paytoqs":"body","url":"
|
|
1
|
+
[{"id":"b864b3e3510cd120","type":"tab","label":"[http] post requests - json content","disabled":false,"info":"Post requests have formdata form, handle binary data and json content or plain text.\n\n","env":[{"name":"ERED_NOT_EUNIT","value":"true","type":"bool"},{"name":"ERED_TIMEOUT","value":"3","type":"num"}]},{"id":"b29550d7fb531718","type":"http in","z":"b864b3e3510cd120","name":"","url":"/tb864b3e3510cd120/data","method":"post","upload":false,"swaggerDoc":"","x":197,"y":208.25,"wires":[["d44e6d2a2486f53e","fedba336ce487092","24654fde735ea5e5"]]},{"id":"6769eaa26a8493f1","type":"http response","z":"b864b3e3510cd120","name":"","statusCode":"200","headers":{},"x":612,"y":431,"wires":[]},{"id":"5a2c281c92f8b8c4","type":"http request","z":"b864b3e3510cd120","name":"","method":"POST","ret":"txt","paytoqs":"body","url":"","tls":"4b4234fb873d0de8","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":659,"y":836,"wires":[["17f83f445e55daa6"]]},{"id":"9587bcbe2dfedfdd","type":"inject","z":"b864b3e3510cd120","name":"","props":[],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":189,"y":518,"wires":[["2e442f3b0bb40958"]]},{"id":"2e442f3b0bb40958","type":"template","z":"b864b3e3510cd120","name":"","field":"payload","fieldType":"msg","format":"json","syntax":"plain","template":"{ \"value\": \"hello world\" }","output":"str","x":342,"y":604,"wires":[["751c0b465f8881b8"]]},{"id":"d44e6d2a2486f53e","type":"template","z":"b864b3e3510cd120","name":"","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{ \n \"response\": {{{ payload }}}\n}","output":"str","x":420,"y":353,"wires":[["6769eaa26a8493f1"]]},{"id":"fedba336ce487092","type":"ut-assert-success","z":"b864b3e3510cd120","name":"","count":1,"x":452,"y":60.5,"wires":[]},{"id":"17f83f445e55daa6","type":"ut-assert-success","z":"b864b3e3510cd120","name":"","count":1,"x":935,"y":835,"wires":[]},{"id":"24654fde735ea5e5","type":"json","z":"b864b3e3510cd120","name":"","property":"payload","action":"","pretty":false,"x":508,"y":208.25,"wires":[["332f0fd7b72d092c"]]},{"id":"332f0fd7b72d092c","type":"ut-assert-values","z":"b864b3e3510cd120","name":"","rules":[{"p":"payload.value","pt":"msg","t":"eql","to":"hello world","tot":"str"},{"p":"payload","pt":"msg","t":"eql","to":"{ \"value\" : \"hello world\" }","tot":"json"}],"x":827,"y":208.25,"wires":[[]]},{"id":"92a5997800a061bb","type":"change","z":"b864b3e3510cd120","name":"","rules":[{"t":"set","p":"url","pt":"msg","to":"$$.utcfg.host & \"/tb864b3e3510cd120/data\"","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":515,"y":760,"wires":[["5a2c281c92f8b8c4"]]},{"id":"751c0b465f8881b8","type":"ut-config","z":"b864b3e3510cd120","name":"","x":423.5,"y":682,"wires":[["92a5997800a061bb"]]},{"id":"4b4234fb873d0de8","type":"tls-config","name":"b864b3e3510cd120-tls-config","certType":"files","cert":"","key":"","p12":"","p12name":"","ca":"","certname":"","keyname":"","caname":"","servername":"","verifyservercert":false,"alpnprotocol":"","certEnv":"","keyEnv":"","caEnv":""}]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"id":"f38603a59963386c","type":"tab","label":"[http] request parses JSON conent","disabled":false,"info":"## Http Request node can parse JSON content\n\n","env":[{"name":"ERED_NOT_EUNIT","value":"true","type":"bool"}]},{"id":"3db045d9441c2067","type":"http in","z":"f38603a59963386c","name":"","url":"/f38603a59963386c/data","method":"get","upload":false,"swaggerDoc":"","x":
|
|
1
|
+
[{"id":"f38603a59963386c","type":"tab","label":"[http] request parses JSON conent","disabled":false,"info":"## Http Request node can parse JSON content\n\n","env":[{"name":"ERED_NOT_EUNIT","value":"true","type":"bool"}]},{"id":"3db045d9441c2067","type":"http in","z":"f38603a59963386c","name":"","url":"/f38603a59963386c/data","method":"get","upload":false,"swaggerDoc":"","x":276,"y":320,"wires":[["1c4ecf7d781bf986"]]},{"id":"6828ebee7c35e67c","type":"http response","z":"f38603a59963386c","name":"","statusCode":"200","headers":{},"x":815,"y":308.75,"wires":[]},{"id":"1c4ecf7d781bf986","type":"template","z":"f38603a59963386c","name":"","field":"payload","fieldType":"msg","format":"javascript","syntax":"mustache","template":"{ \n \"response\": \"{{{ payload.payload }}}\"\n}","output":"str","x":558,"y":257.75,"wires":[["6828ebee7c35e67c","924fb7de3244c1fd"]]},{"id":"56e1b0bcffdf1790","type":"http request","z":"f38603a59963386c","name":"","method":"GET","ret":"obj","paytoqs":"query","url":"","tls":"70f293fa8c182f6f","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":710,"y":489,"wires":[["52f8fb585533e4d2"]]},{"id":"eea53210a5993268","type":"inject","z":"f38603a59963386c","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"{ \"payload\": \"payload\" }","payloadType":"json","x":269,"y":487,"wires":[["f902df3547c781e8"]]},{"id":"52f8fb585533e4d2","type":"ut-assert-values","z":"f38603a59963386c","name":"","ignore_failure_if_succeed":false,"rules":[{"t":"eql","p":"payload.response","pt":"msg","to":"payload","tot":"str"}],"x":1009,"y":487.5,"wires":[[]]},{"id":"ab83480bcca60e6d","type":"ut-assert-values","z":"f38603a59963386c","name":"","ignore_failure_if_succeed":false,"rules":[{"t":"eql","p":"payload","pt":"msg","to":"{ \"response\": \"payload\" }","tot":"json"}],"x":759,"y":86.5,"wires":[[]]},{"id":"924fb7de3244c1fd","type":"json","z":"f38603a59963386c","name":"","property":"payload","action":"","pretty":false,"x":654,"y":165,"wires":[["ab83480bcca60e6d"]]},{"id":"f902df3547c781e8","type":"ut-config","z":"f38603a59963386c","name":"","x":501,"y":530,"wires":[["4275b27a18964752"]]},{"id":"4275b27a18964752","type":"change","z":"f38603a59963386c","name":"","rules":[{"t":"set","p":"url","pt":"msg","to":"$$.utcfg.host & \"/f38603a59963386c/data\"","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":525,"y":463,"wires":[["56e1b0bcffdf1790"]]},{"id":"70f293fa8c182f6f","type":"tls-config","name":"f38603a59963386c-tls-config","certType":"files","cert":"","key":"","p12":"","p12name":"","ca":"","certname":"","keyname":"","caname":"","servername":"","verifyservercert":false,"alpnprotocol":"","certEnv":"","keyEnv":"","caEnv":""}]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"id":"bfced61e72c69715","type":"tab","label":"[http] request, ensure url and method are handled","disabled":false,"info":"url and method can either be set by the node or the msg but the logic is different:\n\n- if msg.url is set and node.url is set: node.url takes precedents\n- if msg.url is set and node.url is not set: then msg.url is used\n- if msg.url is not set, node.url is set: node.url is taken\n- if msg.url and node.url are both not set, error occurs\n\nThe same logic applies to the `method` attribute.\n","env":[{"name":"ERED_NOT_EUNIT","value":"false","type":"bool"},{"name":"ERED_PENDING","value":"false","type":"bool"}]},{"id":"02d3bfbbffd30df1","type":"group","z":"bfced61e72c69715","name":"url: set on both","style":{"label":true},"nodes":["b296805ef1d1a7f5","7b6b6db1af849c68"],"x":17,"y":240,"w":383,"h":143},{"id":"27c35a832da93ca7","type":"group","z":"bfced61e72c69715","name":"url: set only on node","style":{"label":true},"nodes":["9bda8c4cdf2064f4","443b760d98f1d39e"],"x":19,"y":412,"w":383,"h":143},{"id":"9da56627f7059503","type":"group","z":"bfced61e72c69715","name":"url: set on neither","style":{"label":true},"nodes":["4aa2a8b25a05ca8e","ad5896b5b9422e32"],"x":19,"y":585,"w":383,"h":143},{"id":"bdebac323df24a74","type":"group","z":"bfced61e72c69715","name":"url: set on msg","style":{"label":true},"nodes":["7b80ebe21fb0c58f","429bf3f4f48119d8"],"x":18,"y":747,"w":383,"h":143},{"id":"83172d43811709da","type":"group","z":"bfced61e72c69715","name":"method: set on both","style":{"label":true},"nodes":["f096cb2b1cec8f15","58a01b842415ec77"],"x":489,"y":242,"w":383,"h":143},{"id":"0dcbb43b70f2e7ea","type":"group","z":"bfced61e72c69715","name":"method: set on msg","style":{"label":true},"nodes":["310eec5943ec1806","f2cef0d042d6d61b"],"x":490,"y":425,"w":383,"h":143},{"id":"48afb936691161db","type":"group","z":"bfced61e72c69715","name":"method: set on neither","style":{"label":true},"nodes":["f8957c740e8d8da7","082b70d1af4ec13d"],"x":493,"y":596,"w":383,"h":143},{"id":"cfcdeea5dd61944e","type":"group","z":"bfced61e72c69715","name":"method: set on node","style":{"label":true},"nodes":["63e2a67aa6004b02","afe07e1a7592dd7f"],"x":493,"y":766,"w":383,"h":143},{"id":"aaa604d58e2b78b3","type":"group","z":"bfced61e72c69715","name":"url: set on msg","style":{"label":true},"nodes":["476a6bfe51259456","946a03fc4a16014c"],"x":254,"y":972,"w":383,"h":143},{"id":"b296805ef1d1a7f5","type":"inject","z":"bfced61e72c69715","g":"02d3bfbbffd30df1","name":"","props":[{"p":"url","v":"http://msg.example.com","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":113,"y":281,"wires":[["7b6b6db1af849c68"]]},{"id":"7b6b6db1af849c68","type":"http request","z":"bfced61e72c69715","g":"02d3bfbbffd30df1","name":"","method":"GET","ret":"txt","paytoqs":"ignore","url":"http://node.example.com","tls":"","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":304,"y":342,"wires":[[]]},{"id":"9bda8c4cdf2064f4","type":"inject","z":"bfced61e72c69715","g":"27c35a832da93ca7","name":"","props":[],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":115,"y":453,"wires":[["443b760d98f1d39e"]]},{"id":"443b760d98f1d39e","type":"http request","z":"bfced61e72c69715","g":"27c35a832da93ca7","name":"","method":"GET","ret":"txt","paytoqs":"ignore","url":"http://node.example.com","tls":"","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":306,"y":514,"wires":[[]]},{"id":"4aa2a8b25a05ca8e","type":"inject","z":"bfced61e72c69715","g":"9da56627f7059503","name":"","props":[],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":115,"y":626,"wires":[["ad5896b5b9422e32"]]},{"id":"ad5896b5b9422e32","type":"http request","z":"bfced61e72c69715","g":"9da56627f7059503","name":"","method":"GET","ret":"txt","paytoqs":"ignore","url":"","tls":"","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":306,"y":687,"wires":[[]]},{"id":"7b80ebe21fb0c58f","type":"inject","z":"bfced61e72c69715","g":"bdebac323df24a74","name":"","props":[{"p":"url","v":"http://msg.example.com","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":114,"y":788,"wires":[["429bf3f4f48119d8"]]},{"id":"429bf3f4f48119d8","type":"http request","z":"bfced61e72c69715","g":"bdebac323df24a74","name":"","method":"GET","ret":"txt","paytoqs":"ignore","url":"","tls":"","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":305,"y":849,"wires":[[]]},{"id":"f096cb2b1cec8f15","type":"inject","z":"bfced61e72c69715","g":"83172d43811709da","name":"","props":[{"p":"method","v":"GET","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":585,"y":283,"wires":[["58a01b842415ec77"]]},{"id":"58a01b842415ec77","type":"http request","z":"bfced61e72c69715","g":"83172d43811709da","name":"","method":"POST","ret":"txt","paytoqs":"ignore","url":"http://node.example.com","tls":"","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":776,"y":344,"wires":[[]]},{"id":"310eec5943ec1806","type":"inject","z":"bfced61e72c69715","g":"0dcbb43b70f2e7ea","name":"","props":[{"p":"method","v":"GET","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":586,"y":466,"wires":[["f2cef0d042d6d61b"]]},{"id":"f2cef0d042d6d61b","type":"http request","z":"bfced61e72c69715","g":"0dcbb43b70f2e7ea","name":"","method":"use","ret":"txt","paytoqs":"ignore","url":"http://node.example.com","tls":"","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":777,"y":527,"wires":[[]]},{"id":"f8957c740e8d8da7","type":"inject","z":"bfced61e72c69715","g":"48afb936691161db","name":"","props":[],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":589,"y":637,"wires":[["082b70d1af4ec13d"]]},{"id":"082b70d1af4ec13d","type":"http request","z":"bfced61e72c69715","g":"48afb936691161db","name":"","method":"use","ret":"txt","paytoqs":"ignore","url":"http://node.example.com","tls":"","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":780,"y":698,"wires":[[]]},{"id":"63e2a67aa6004b02","type":"inject","z":"bfced61e72c69715","g":"cfcdeea5dd61944e","name":"","props":[],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":589,"y":807,"wires":[["afe07e1a7592dd7f"]]},{"id":"afe07e1a7592dd7f","type":"http request","z":"bfced61e72c69715","g":"cfcdeea5dd61944e","name":"","method":"GET","ret":"txt","paytoqs":"ignore","url":"http://node.example.com","tls":"","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":780,"y":868,"wires":[[]]},{"id":"476a6bfe51259456","type":"inject","z":"bfced61e72c69715","g":"aaa604d58e2b78b3","name":"","props":[],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":350,"y":1013,"wires":[["946a03fc4a16014c"]]},{"id":"946a03fc4a16014c","type":"http request","z":"bfced61e72c69715","g":"aaa604d58e2b78b3","name":"","method":"use","ret":"txt","paytoqs":"ignore","url":"","tls":"","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":541,"y":1074,"wires":[[]]}]
|
|
1
|
+
[{"id":"bfced61e72c69715","type":"tab","label":"[http] request, ensure url and method are handled","disabled":false,"info":"url and method can either be set by the node or the msg but the logic is different:\n\n- if msg.url is set and node.url is set: node.url takes precedents\n- if msg.url is set and node.url is not set: then msg.url is used\n- if msg.url is not set, node.url is set: node.url is taken\n- if msg.url and node.url are both not set, error occurs\n\nThe same logic applies to the `method` attribute.\n","env":[{"name":"ERED_NOT_EUNIT","value":"true","type":"bool"}]},{"id":"02d3bfbbffd30df1","type":"group","z":"bfced61e72c69715","name":"url: set on both - node config takes prio","style":{"label":true},"nodes":["b296805ef1d1a7f5","7b6b6db1af849c68","2a2b178138acce12","6183227f314c7994","c3e9b7b9bb40ac9c","6a1edb96d44acdd5","6244f56ea8722461","d53cb3aec32440fc","d87be1700bad4bef"],"x":191,"y":66,"w":830,"h":379},{"id":"27c35a832da93ca7","type":"group","z":"bfced61e72c69715","name":"url: set only on node","style":{"label":true},"nodes":["9bda8c4cdf2064f4","443b760d98f1d39e","c4d4d14e6dea8684","e332d95bb6dd8d04","1d6cc6561b875e16","f9cc26e6455219a5","873e95486f499cc8"],"x":191,"y":485,"w":921,"h":305},{"id":"9da56627f7059503","type":"group","z":"bfced61e72c69715","name":"url: set on neither","style":{"label":true},"nodes":["4aa2a8b25a05ca8e","ad5896b5b9422e32","4c85496fdd562409","6e1221baa9fb5f53","70e607926af7f3f0","01dac0d248036ad9","05a5aa79c913b5c7"],"x":192,"y":817,"w":845,"h":317},{"id":"bdebac323df24a74","type":"group","z":"bfced61e72c69715","name":"url: set on msg","style":{"label":true},"nodes":["7b80ebe21fb0c58f","429bf3f4f48119d8","f18d2aa4f03a7838","02741078d16c38fc","61ef2ebf6059e945"],"x":505,"y":1205,"w":870,"h":203},{"id":"83172d43811709da","type":"group","z":"bfced61e72c69715","name":"method: set on both","style":{"label":true},"nodes":["f096cb2b1cec8f15","58a01b842415ec77","2ea7ebed37ca2e04","901dcab4e2ce9f9e","75b958c68207b300"],"x":1302,"y":81,"w":846,"h":217},{"id":"b299dd37132f2ca6","type":"group","z":"bfced61e72c69715","name":"method: set on msg","style":{"label":true},"nodes":["8c8271e1ada144bb","f8d8dbf384123de2","849d57e92bac7c95","d7fadf2e8544f5c2","36cabbfb4bf61e35"],"x":1302,"y":326,"w":829,"h":217},{"id":"a496cfb8fa087dee","type":"group","z":"bfced61e72c69715","name":"method: set on neither","style":{"label":true},"nodes":["5f0a8c34939c4910","65e8b45b4db9366a","4ab63db5abeeefe9","26edd78cf20109a0","31e631d1d1ff5af7"],"x":1299,"y":579,"w":798,"h":217},{"id":"5aebb9f2b7186cc5","type":"group","z":"bfced61e72c69715","name":"method: set on node","style":{"label":true},"nodes":["f9e9f3887636aa75","7c5ede4d8ffec618","33f322cf1340dfab","9a7e24d7d4ef2755","4dd201b859cb3661"],"x":1296,"y":829,"w":775,"h":211},{"id":"6a1edb96d44acdd5","type":"group","z":"bfced61e72c69715","g":"02d3bfbbffd30df1","name":"Erlang-Red Only","style":{"label":true},"nodes":["6508fba2b64989ad"],"env":[{"name":"ERED_ONLY","value":"true","type":"bool"}],"x":783,"y":279,"w":212,"h":82},{"id":"f9cc26e6455219a5","type":"group","z":"bfced61e72c69715","g":"27c35a832da93ca7","name":"Erlang-Red Only","style":{"label":true},"nodes":["7f8f6279ebf54211"],"env":[{"name":"ERED_ONLY","value":"true","type":"bool"}],"x":862,"y":644,"w":212,"h":82},{"id":"70e607926af7f3f0","type":"group","z":"bfced61e72c69715","g":"9da56627f7059503","name":"Erlang-Red Only","style":{"label":true},"nodes":["be862c70e05f5eb9"],"env":[{"name":"ERED_ONLY","value":"true","type":"bool"}],"x":799,"y":956,"w":212,"h":82},{"id":"d87be1700bad4bef","type":"group","z":"bfced61e72c69715","g":"02d3bfbbffd30df1","name":"Node-RED Only","style":{"label":true},"nodes":["9fccbd5e2cf1b393"],"env":[{"name":"NODE_RED_ONLY","value":"true","type":"bool"}],"x":767,"y":160,"w":212,"h":82},{"id":"873e95486f499cc8","type":"group","z":"bfced61e72c69715","g":"27c35a832da93ca7","name":"Node-RED Only","style":{"label":true},"nodes":["df09dabda4c00e41"],"env":[{"name":"NODE_RED_ONLY","value":"true","type":"bool"}],"x":874,"y":522,"w":212,"h":82},{"id":"05a5aa79c913b5c7","type":"group","z":"bfced61e72c69715","g":"9da56627f7059503","name":"Node-RED Only","style":{"label":true},"nodes":["bba05318824f102f"],"env":[{"name":"NODE_RED_ONLY","value":"true","type":"bool"}],"x":799,"y":846,"w":212,"h":82},{"id":"b296805ef1d1a7f5","type":"inject","z":"bfced61e72c69715","g":"02d3bfbbffd30df1","name":"","props":[],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":287,"y":119,"wires":[["d53cb3aec32440fc"]]},{"id":"7b6b6db1af849c68","type":"http request","z":"bfced61e72c69715","g":"02d3bfbbffd30df1","name":"","method":"GET","ret":"txt","paytoqs":"ignore","url":"/","tls":"e6a59189d2a06723","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":530,"y":230,"wires":[["2a2b178138acce12"]]},{"id":"9bda8c4cdf2064f4","type":"inject","z":"bfced61e72c69715","g":"27c35a832da93ca7","name":"","props":[],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":287,"y":535,"wires":[["443b760d98f1d39e"]]},{"id":"443b760d98f1d39e","type":"http request","z":"bfced61e72c69715","g":"27c35a832da93ca7","name":"","method":"GET","ret":"txt","paytoqs":"ignore","url":"/","tls":"e6a59189d2a06723","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":508,"y":552,"wires":[["c4d4d14e6dea8684"]]},{"id":"4aa2a8b25a05ca8e","type":"inject","z":"bfced61e72c69715","g":"9da56627f7059503","name":"","props":[],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":288,"y":873,"wires":[["ad5896b5b9422e32"]]},{"id":"ad5896b5b9422e32","type":"http request","z":"bfced61e72c69715","g":"9da56627f7059503","name":"","method":"GET","ret":"txt","paytoqs":"ignore","url":"","tls":"e6a59189d2a06723","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":479,"y":934,"wires":[["4c85496fdd562409"]]},{"id":"7b80ebe21fb0c58f","type":"inject","z":"bfced61e72c69715","g":"bdebac323df24a74","name":"","props":[],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":601,"y":1259,"wires":[["f18d2aa4f03a7838"]]},{"id":"429bf3f4f48119d8","type":"http request","z":"bfced61e72c69715","g":"bdebac323df24a74","name":"","method":"GET","ret":"obj","paytoqs":"ignore","url":"","tls":"e6a59189d2a06723","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":1000,"y":1367,"wires":[["61ef2ebf6059e945"]]},{"id":"f096cb2b1cec8f15","type":"inject","z":"bfced61e72c69715","g":"83172d43811709da","name":"","props":[{"p":"method","v":"GET","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":1398,"y":245,"wires":[["2ea7ebed37ca2e04"]]},{"id":"58a01b842415ec77","type":"http request","z":"bfced61e72c69715","g":"83172d43811709da","name":"","method":"POST","ret":"obj","paytoqs":"ignore","url":"","tls":"e6a59189d2a06723","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":1766,"y":257,"wires":[["75b958c68207b300"]]},{"id":"901dcab4e2ce9f9e","type":"change","z":"bfced61e72c69715","g":"83172d43811709da","name":"","rules":[{"t":"set","p":"url","pt":"msg","to":"$$.utcfg.host & \"/bfced61e72c69715/url1\"","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":1649,"y":179,"wires":[["58a01b842415ec77"]]},{"id":"2ea7ebed37ca2e04","type":"ut-config","z":"bfced61e72c69715","g":"83172d43811709da","name":"","x":1558,"y":122,"wires":[["901dcab4e2ce9f9e"]]},{"id":"7cf41a5a05500f10","type":"http in","z":"bfced61e72c69715","name":"","url":"/bfced61e72c69715/url1","method":"post","upload":false,"skipBodyParsing":false,"swaggerDoc":"","x":226,"y":1533,"wires":[["53c623cb26fbe173"]]},{"id":"069129ca40c7f5bb","type":"http in","z":"bfced61e72c69715","name":"","url":"/bfced61e72c69715/url2","method":"post","upload":false,"skipBodyParsing":false,"swaggerDoc":"","x":232,"y":1599,"wires":[["740b89dabb864407"]]},{"id":"82c3f8a6735d546a","type":"http in","z":"bfced61e72c69715","name":"","url":"/bfced61e72c69715/url1","method":"get","upload":false,"skipBodyParsing":false,"swaggerDoc":"","x":221,"y":1681,"wires":[["48f424e4d8d7e413"]]},{"id":"792d6be7f5fddc83","type":"http in","z":"bfced61e72c69715","name":"","url":"/bfced61e72c69715/url2","method":"get","upload":false,"skipBodyParsing":false,"swaggerDoc":"","x":227,"y":1747,"wires":[["1e95ae2995a4fb72"]]},{"id":"53c623cb26fbe173","type":"template","z":"bfced61e72c69715","name":"url --> url1, method --> post","field":"payload","fieldType":"msg","format":"json","syntax":"mustache","template":"{\n \"url\": \"url1\",\n \"method\": \"post\"\n}","output":"json","x":588,"y":1508,"wires":[["baea747660558ab1"]]},{"id":"740b89dabb864407","type":"template","z":"bfced61e72c69715","name":"url --> url2, method --> post","field":"payload","fieldType":"msg","format":"json","syntax":"mustache","template":"{\n \"url\": \"url2\",\n \"method\": \"post\"\n}","output":"json","x":589,"y":1576,"wires":[["baea747660558ab1"]]},{"id":"1e95ae2995a4fb72","type":"template","z":"bfced61e72c69715","name":"url --> url2, method --> get","field":"payload","fieldType":"msg","format":"json","syntax":"mustache","template":"{\n \"url\": \"url2\",\n \"method\": \"get\"\n}","output":"json","x":588,"y":1704,"wires":[["baea747660558ab1"]]},{"id":"48f424e4d8d7e413","type":"template","z":"bfced61e72c69715","name":"url --> url1, method --> get","field":"payload","fieldType":"msg","format":"json","syntax":"mustache","template":"{\n \"url\": \"url1\",\n \"method\": \"get\"\n}","output":"json","x":586,"y":1644,"wires":[["baea747660558ab1"]]},{"id":"baea747660558ab1","type":"http response","z":"bfced61e72c69715","name":"","statusCode":"","headers":{"content-type":"application/json"},"x":900,"y":1610,"wires":[]},{"id":"75b958c68207b300","type":"ut-assert-values","z":"bfced61e72c69715","g":"83172d43811709da","name":"","ignore_failure_if_succeed":false,"rules":[{"t":"eql","p":"payload","pt":"msg","to":"{\"method\":\"post\",\"url\":\"url1\"}","tot":"json"}],"x":2032,"y":185,"wires":[[]]},{"id":"8c8271e1ada144bb","type":"inject","z":"bfced61e72c69715","g":"b299dd37132f2ca6","name":"","props":[{"p":"method","v":"POST","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":1398,"y":471,"wires":[["849d57e92bac7c95"]]},{"id":"f8d8dbf384123de2","type":"http request","z":"bfced61e72c69715","g":"b299dd37132f2ca6","name":"","method":"use","ret":"obj","paytoqs":"ignore","url":"","tls":"e6a59189d2a06723","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":1783,"y":502,"wires":[["36cabbfb4bf61e35"]]},{"id":"849d57e92bac7c95","type":"ut-config","z":"bfced61e72c69715","g":"b299dd37132f2ca6","name":"","x":1575,"y":367,"wires":[["d7fadf2e8544f5c2"]]},{"id":"d7fadf2e8544f5c2","type":"change","z":"bfced61e72c69715","g":"b299dd37132f2ca6","name":"","rules":[{"t":"set","p":"url","pt":"msg","to":"$$.utcfg.host & \"/bfced61e72c69715/url1\"","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":1666,"y":424,"wires":[["f8d8dbf384123de2"]]},{"id":"36cabbfb4bf61e35","type":"ut-assert-values","z":"bfced61e72c69715","g":"b299dd37132f2ca6","name":"","ignore_failure_if_succeed":false,"rules":[{"t":"eql","p":"payload","pt":"msg","to":"{\"method\":\"post\",\"url\":\"url1\"}","tot":"json"}],"x":2015,"y":452,"wires":[[]]},{"id":"5f0a8c34939c4910","type":"inject","z":"bfced61e72c69715","g":"a496cfb8fa087dee","name":"","props":[],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":1395,"y":676,"wires":[["4ab63db5abeeefe9"]]},{"id":"65e8b45b4db9366a","type":"http request","z":"bfced61e72c69715","g":"a496cfb8fa087dee","name":"","method":"use","ret":"txt","paytoqs":"ignore","url":"","tls":"e6a59189d2a06723","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":1769,"y":755,"wires":[["31e631d1d1ff5af7"]]},{"id":"4ab63db5abeeefe9","type":"ut-config","z":"bfced61e72c69715","g":"a496cfb8fa087dee","name":"","x":1561,"y":620,"wires":[["26edd78cf20109a0"]]},{"id":"26edd78cf20109a0","type":"change","z":"bfced61e72c69715","g":"a496cfb8fa087dee","name":"","rules":[{"t":"set","p":"url","pt":"msg","to":"$$.utcfg.host & \"/bfced61e72c69715/url1\"","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":1652,"y":677,"wires":[["65e8b45b4db9366a"]]},{"id":"31e631d1d1ff5af7","type":"ut-assert-values","z":"bfced61e72c69715","g":"a496cfb8fa087dee","name":"","ignore_failure_if_succeed":false,"rules":[{"t":"eql","p":"payload","pt":"msg","to":"","tot":"str"},{"t":"eql","p":"statusCode","pt":"msg","to":"400","tot":"num"}],"x":1991,"y":705,"wires":[[]]},{"id":"f9e9f3887636aa75","type":"inject","z":"bfced61e72c69715","g":"5aebb9f2b7186cc5","name":"","props":[],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":1392,"y":940,"wires":[["7c5ede4d8ffec618"]]},{"id":"7c5ede4d8ffec618","type":"ut-config","z":"bfced61e72c69715","g":"5aebb9f2b7186cc5","name":"","x":1562,"y":870,"wires":[["33f322cf1340dfab"]]},{"id":"33f322cf1340dfab","type":"change","z":"bfced61e72c69715","g":"5aebb9f2b7186cc5","name":"","rules":[{"t":"set","p":"url","pt":"msg","to":"$$.utcfg.host & \"/bfced61e72c69715/url1\"","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":1653,"y":927,"wires":[["4dd201b859cb3661"]]},{"id":"9a7e24d7d4ef2755","type":"ut-assert-values","z":"bfced61e72c69715","g":"5aebb9f2b7186cc5","name":"","ignore_failure_if_succeed":false,"rules":[{"t":"eql","p":"payload","pt":"msg","to":"{\"method\":\"get\",\"url\":\"url1\"}","tot":"json"},{"t":"eql","p":"statusCode","pt":"msg","to":"200","tot":"num"}],"x":1965,"y":962,"wires":[[]]},{"id":"4dd201b859cb3661","type":"http request","z":"bfced61e72c69715","g":"5aebb9f2b7186cc5","name":"","method":"GET","ret":"obj","paytoqs":"ignore","url":"","tls":"e6a59189d2a06723","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":1747,"y":999,"wires":[["9a7e24d7d4ef2755"]]},{"id":"2a2b178138acce12","type":"ut-assert-failure","z":"bfced61e72c69715","g":"02d3bfbbffd30df1","name":"","x":833,"y":107,"wires":[]},{"id":"6183227f314c7994","type":"catch","z":"bfced61e72c69715","g":"02d3bfbbffd30df1","name":"","scope":["7b6b6db1af849c68"],"uncaught":false,"x":567,"y":281,"wires":[["c3e9b7b9bb40ac9c","6508fba2b64989ad","9fccbd5e2cf1b393"]]},{"id":"c3e9b7b9bb40ac9c","type":"ut-assert-success","z":"bfced61e72c69715","g":"02d3bfbbffd30df1","name":"","msglimit":"==","count":1,"x":898,"y":404,"wires":[]},{"id":"6508fba2b64989ad","type":"ut-assert-values","z":"bfced61e72c69715","g":"6a1edb96d44acdd5","name":"","ignore_failure_if_succeed":false,"rules":[{"t":"notset","p":"payload","pt":"msg"},{"t":"eql","p":"error.message","pt":"msg","to":"Http request failed: {no_scheme}","tot":"str"},{"t":"mth","p":"url","pt":"msg","to":"/bfced61e72c69715/url1","tot":"str"}],"x":889,"y":320,"wires":[[]]},{"id":"6244f56ea8722461","type":"change","z":"bfced61e72c69715","g":"02d3bfbbffd30df1","name":"","rules":[{"t":"set","p":"url","pt":"msg","to":"$$.utcfg.host & \"/bfced61e72c69715/url1\"","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":362,"y":296,"wires":[["7b6b6db1af849c68"]]},{"id":"d53cb3aec32440fc","type":"ut-config","z":"bfced61e72c69715","g":"02d3bfbbffd30df1","name":"","x":324,"y":196,"wires":[["6244f56ea8722461"]]},{"id":"c4d4d14e6dea8684","type":"ut-assert-failure","z":"bfced61e72c69715","g":"27c35a832da93ca7","name":"","x":723,"y":526,"wires":[]},{"id":"e332d95bb6dd8d04","type":"catch","z":"bfced61e72c69715","g":"27c35a832da93ca7","name":"","scope":["443b760d98f1d39e"],"uncaught":false,"x":520,"y":613,"wires":[["1d6cc6561b875e16","7f8f6279ebf54211","df09dabda4c00e41"]]},{"id":"1d6cc6561b875e16","type":"ut-assert-success","z":"bfced61e72c69715","g":"27c35a832da93ca7","name":"","msglimit":"==","count":1,"x":714,"y":749,"wires":[]},{"id":"7f8f6279ebf54211","type":"ut-assert-values","z":"bfced61e72c69715","g":"f9cc26e6455219a5","name":"","ignore_failure_if_succeed":false,"rules":[{"t":"notset","p":"payload","pt":"msg"},{"t":"eql","p":"error.message","pt":"msg","to":"Http request failed: {no_scheme}","tot":"str"},{"t":"notset","p":"url","pt":"msg"}],"x":968,"y":685,"wires":[[]]},{"id":"4c85496fdd562409","type":"ut-assert-failure","z":"bfced61e72c69715","g":"9da56627f7059503","name":"","x":679,"y":858,"wires":[]},{"id":"6e1221baa9fb5f53","type":"catch","z":"bfced61e72c69715","g":"9da56627f7059503","name":"","scope":["ad5896b5b9422e32"],"uncaught":false,"x":595,"y":1001,"wires":[["be862c70e05f5eb9","01dac0d248036ad9","bba05318824f102f"]]},{"id":"be862c70e05f5eb9","type":"ut-assert-values","z":"bfced61e72c69715","g":"70e607926af7f3f0","name":"","ignore_failure_if_succeed":false,"rules":[{"t":"notset","p":"payload","pt":"msg"},{"t":"eql","p":"error.message","pt":"msg","to":"No url specified","tot":"str"},{"t":"notset","p":"url","pt":"msg"}],"x":905,"y":997,"wires":[[]]},{"id":"f18d2aa4f03a7838","type":"ut-config","z":"bfced61e72c69715","g":"bdebac323df24a74","name":"","x":791,"y":1246,"wires":[["02741078d16c38fc"]]},{"id":"02741078d16c38fc","type":"change","z":"bfced61e72c69715","g":"bdebac323df24a74","name":"","rules":[{"t":"set","p":"url","pt":"msg","to":"$$.utcfg.host & \"/bfced61e72c69715/url1\"","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":785,"y":1324,"wires":[["429bf3f4f48119d8"]]},{"id":"61ef2ebf6059e945","type":"ut-assert-values","z":"bfced61e72c69715","g":"bdebac323df24a74","name":"","ignore_failure_if_succeed":false,"rules":[{"t":"eql","p":"payload","pt":"msg","to":"{\"method\":\"get\",\"url\":\"url1\"}","tot":"json"}],"x":1259,"y":1323,"wires":[[]]},{"id":"01dac0d248036ad9","type":"ut-assert-success","z":"bfced61e72c69715","g":"9da56627f7059503","name":"","msglimit":"==","count":1,"x":872,"y":1093,"wires":[]},{"id":"9fccbd5e2cf1b393","type":"ut-assert-values","z":"bfced61e72c69715","g":"d87be1700bad4bef","name":"","ignore_failure_if_succeed":false,"rules":[{"t":"notset","p":"payload","pt":"msg"},{"t":"eql","p":"error.message","pt":"msg","to":"TypeError: Invalid URL","tot":"str"},{"t":"mth","p":"url","pt":"msg","to":"/bfced61e72c69715/url1","tot":"str"}],"x":873,"y":201,"wires":[[]]},{"id":"df09dabda4c00e41","type":"ut-assert-values","z":"bfced61e72c69715","g":"873e95486f499cc8","name":"","ignore_failure_if_succeed":false,"rules":[{"t":"notset","p":"payload","pt":"msg"},{"t":"eql","p":"error.message","pt":"msg","to":"TypeError: Invalid URL","tot":"str"},{"t":"notset","p":"url","pt":"msg"},{"t":"eql","p":"error.source.id","pt":"msg","to":"443b760d98f1d39e","tot":"str"}],"x":980,"y":563,"wires":[[]]},{"id":"bba05318824f102f","type":"ut-assert-values","z":"bfced61e72c69715","g":"05a5aa79c913b5c7","name":"","ignore_failure_if_succeed":false,"rules":[{"t":"notset","p":"payload","pt":"msg"},{"t":"eql","p":"error.message","pt":"msg","to":"No url specified","tot":"str"},{"t":"notset","p":"url","pt":"msg"},{"t":"eql","p":"error.source.id","pt":"msg","to":"ad5896b5b9422e32","tot":"str"}],"x":905,"y":887,"wires":[[]]},{"id":"e6a59189d2a06723","type":"tls-config","name":"bfced61e72c69715-tls-config","certType":"files","cert":"","key":"","p12":"","p12name":"","ca":"","certname":"","keyname":"","caname":"","servername":"","verifyservercert":false,"alpnprotocol":"","certEnv":"","keyEnv":"","caEnv":""}]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"id":"7581c2be261f9c17","type":"tab","label":"[http] set content type","disabled":false,"info":"## Setting content type on http responses\n\nThere are two ways of doing this, either statically using the http response node or dynamically using the change node.\n\nBoth methods are demonstrated by this test.\n\nAs shown by the test, the difference between the two methods is that there either multiple http response nodes or a single http response node is defined but the content type is set before the response is sent.\n\n## Setup\n\nThe test consists of two http endpoints, one defines the <a class=\"ahl-group-only\" data-ids=\"fb2aba112260ee37\">dynamic content type specification</a> and the other the <a class=\"ahl-group-only\" data-ids=\"d016f026db649ebf\">static content type specification</a>.\n\nEach decides the content type by the filename postfix, i.e. `fubar.txt` is mimetype of `text/plain` because of the `.txt` postfix.\n\nThe <a class=\"ahl-group-only\" data-ids=\"c38be1d5585cf91b\">test for both setups</a> uses http request nodes to access these two http endpoints.\n\n","env":[{"name":"ERED_NOT_EUNIT","value":"true","type":"bool"}]},{"id":"fb2aba112260ee37","type":"group","z":"7581c2be261f9c17","name":"dynamic content type specification","style":{"label":true},"nodes":["403a924531d121df","5df3e909c5f358b1","75e3570d472390f4","bcd95cd0fe9fd797","e05b407247f65bb3","aaade65c96de83f4","30b4d835922b7c40","e474e852ba8122cd","511bb4bb8f5d2767","5d7ca097b0e2243d"],"x":5,"y":75.5,"w":1048.5,"h":540.75},{"id":"d016f026db649ebf","type":"group","z":"7581c2be261f9c17","name":"static content type specification","style":{"label":true},"nodes":["789f3913d1a0d70a","9a5dca7c0286ab37","b87eb0c8a39b5e2c","e6a98ac9117b4295","769ee0887afdc311","6144de9348da6088","a63d45a44e02a381","3cb45a5a75c65f92","0e5505bc5449f96a"],"x":17.5,"y":755,"w":1156,"h":513},{"id":"c38be1d5585cf91b","type":"group","z":"7581c2be261f9c17","name":"test for both setups","style":{"label":true},"nodes":["35064f400d2674c0","0d4aabf984f40260","779cdcbb70d502ea","2aa1b47ecaeb45e4","112fb6224b3a89e8","70abae4c0388eb38","8f87165a19fd36a3","83f113bc49ae548b","ddd2f0bc3a49b172","9869c4c39cb5d546","196d3dee5e339712","d25d3cec964d8bd9","e436983857593288","c0899fd14f36a801","63d1f7024de8a0f9","42ef6e626a3b9634","7b30a20a4e30521b","89550a5d79fa97f7","03f16fbca4f8e203","7171ba16fc94ec3f","bb8a0e1cd7499e07","d883bc0fc21dd406","bbc6fb268ae3add2","3dca2f328fa8bbf6","1e64c8b5c8afd3f1","1612220b693b3623","5358a49e246b28dc","12fc11e704766c21","659aef8a563c83b4","025fef00c72246a4","cc029ad9a824a039","99e5759868786be0","0f0561ef36ab47c6","f3326f17718c243e","f35044ae005ed78a","65481d7412414fd2","fc703ee644f70191","3204886ed4d44cc3","fad7dbf628b57cd7","e355a4888f54bf43","4120112c54db6c19","3e8f65df82942021","51cb5c842e286304","0ae331a5fa7bac37","1aa21f80c61c3456","53ac042f0b020805","d4114e1573ad09ea","220d534ef681fc5b","e3409b52fea4eebb","7b5b300f77dfe907"],"x":1452.000244140625,"y":94.5,"w":1043.999755859375,"h":1175},{"id":"403a924531d121df","type":"http in","z":"7581c2be261f9c17","g":"fb2aba112260ee37","name":"","url":"/7581c2be261f9c17/content/type/dynamic/:path","method":"get","upload":false,"swaggerDoc":"","x":231,"y":116.5,"wires":[["bcd95cd0fe9fd797"]]},{"id":"5df3e909c5f358b1","type":"http response","z":"7581c2be261f9c17","g":"fb2aba112260ee37","name":"","statusCode":"","headers":{},"x":977.5,"y":575.25,"wires":[]},{"id":"75e3570d472390f4","type":"switch","z":"7581c2be261f9c17","g":"fb2aba112260ee37","name":"","property":"req.params.path","propertyType":"msg","rules":[{"t":"regex","v":"(.text|.txt)$","vt":"str","case":true},{"t":"regex","v":".csv$","vt":"str","case":true},{"t":"regex","v":".xml$","vt":"str","case":true},{"t":"regex","v":"(.yml|.yaml)$","vt":"str","case":true},{"t":"regex","v":".json$","vt":"str","case":true},{"t":"else"}],"checkall":"false","repair":false,"outputs":6,"x":360,"y":408.5,"wires":[["e05b407247f65bb3"],["aaade65c96de83f4"],["30b4d835922b7c40"],["5d7ca097b0e2243d"],["511bb4bb8f5d2767"],["e474e852ba8122cd"]]},{"id":"bcd95cd0fe9fd797","type":"template","z":"7581c2be261f9c17","g":"fb2aba112260ee37","name":"payload content","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"hello world, the content is always the same, the content changes.","output":"str","x":227,"y":256,"wires":[["75e3570d472390f4"]]},{"id":"35064f400d2674c0","type":"inject","z":"7581c2be261f9c17","g":"c38be1d5585cf91b","name":"start dynamic test - set baseurl","props":[{"p":"baseurl","v":"${host}/7581c2be261f9c17/content/type/dynamic/","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":1628.000244140625,"y":135.5,"wires":[["8f87165a19fd36a3","83f113bc49ae548b","ddd2f0bc3a49b172","9869c4c39cb5d546","d25d3cec964d8bd9","e436983857593288","bbc6fb268ae3add2","7171ba16fc94ec3f"]]},{"id":"0d4aabf984f40260","type":"ut-assert-values","z":"7581c2be261f9c17","g":"c38be1d5585cf91b","name":"text/plain","ignore_failure_if_succeed":false,"rules":[{"t":"mth","p":"headers[\"content-type\"]","pt":"msg","to":"text/plain","tot":"str"}],"x":2307.000244140625,"y":263.92857142857133,"wires":[[]]},{"id":"779cdcbb70d502ea","type":"ut-assert-values","z":"7581c2be261f9c17","g":"c38be1d5585cf91b","name":"application/yaml","ignore_failure_if_succeed":false,"rules":[{"t":"mth","p":"headers[\"content-type\"]","pt":"msg","to":"application/yaml","tot":"str"}],"x":2327.000244140625,"y":328.142857142857,"wires":[[]]},{"id":"2aa1b47ecaeb45e4","type":"ut-assert-values","z":"7581c2be261f9c17","g":"c38be1d5585cf91b","name":"application/yaml","ignore_failure_if_succeed":false,"rules":[{"t":"mth","p":"headers[\"content-type\"]","pt":"msg","to":"application/yaml","tot":"str"}],"x":2327.000244140625,"y":392.35714285714266,"wires":[[]]},{"id":"112fb6224b3a89e8","type":"http request","z":"7581c2be261f9c17","g":"c38be1d5585cf91b","name":"","method":"GET","ret":"txt","paytoqs":"ignore","url":"","tls":"83cd62fbf15a01f3","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":2094.500244140625,"y":135.5,"wires":[["70abae4c0388eb38"]]},{"id":"70abae4c0388eb38","type":"ut-assert-values","z":"7581c2be261f9c17","g":"c38be1d5585cf91b","name":"application/octet-stream","ignore_failure_if_succeed":false,"rules":[{"t":"mth","p":"headers[\"content-type\"]","pt":"msg","to":"application/octet-stream","tot":"str"}],"x":2357.000244140625,"y":135.5,"wires":[[]]},{"id":"8f87165a19fd36a3","type":"change","z":"7581c2be261f9c17","g":"c38be1d5585cf91b","name":"unknown","rules":[{"t":"set","p":"url","pt":"msg","to":"$$.baseurl & \"fubar.unknown\"","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":1903.000244140625,"y":135.5,"wires":[["112fb6224b3a89e8"]]},{"id":"83f113bc49ae548b","type":"change","z":"7581c2be261f9c17","g":"c38be1d5585cf91b","name":".text","rules":[{"t":"set","p":"url","pt":"msg","to":"$$.baseurl & \"fubar.text\"","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":1893.000244140625,"y":264.2142857142858,"wires":[["63d1f7024de8a0f9"]]},{"id":"ddd2f0bc3a49b172","type":"change","z":"7581c2be261f9c17","g":"c38be1d5585cf91b","name":".yml","rules":[{"t":"set","p":"url","pt":"msg","to":"$$.baseurl & \"fubar.yml\"","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":1893.000244140625,"y":328.57142857142867,"wires":[["42ef6e626a3b9634"]]},{"id":"9869c4c39cb5d546","type":"change","z":"7581c2be261f9c17","g":"c38be1d5585cf91b","name":".yaml","rules":[{"t":"set","p":"url","pt":"msg","to":"$$.baseurl & \"fubar.yaml\"","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":1893.000244140625,"y":392.92857142857156,"wires":[["7b30a20a4e30521b"]]},{"id":"e05b407247f65bb3","type":"change","z":"7581c2be261f9c17","g":"fb2aba112260ee37","name":"text/plain","rules":[{"t":"set","p":"headers[\"content-type\"]","pt":"msg","to":"text/plain","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":666,"y":289,"wires":[["5df3e909c5f358b1"]]},{"id":"aaade65c96de83f4","type":"change","z":"7581c2be261f9c17","g":"fb2aba112260ee37","name":"text/csv","rules":[{"t":"set","p":"headers[\"content-type\"]","pt":"msg","to":"text/csv","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":666,"y":345.8,"wires":[["5df3e909c5f358b1"]]},{"id":"30b4d835922b7c40","type":"change","z":"7581c2be261f9c17","g":"fb2aba112260ee37","name":"application/xml","rules":[{"t":"set","p":"headers[\"content-type\"]","pt":"msg","to":"application/xml","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":686,"y":402.6,"wires":[["5df3e909c5f358b1"]]},{"id":"e474e852ba8122cd","type":"change","z":"7581c2be261f9c17","g":"fb2aba112260ee37","name":"application/octet-stream","rules":[{"t":"set","p":"headers[\"content-type\"]","pt":"msg","to":"application/octet-stream","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":716,"y":573,"wires":[["5df3e909c5f358b1"]]},{"id":"511bb4bb8f5d2767","type":"change","z":"7581c2be261f9c17","g":"fb2aba112260ee37","name":"application/json","rules":[{"t":"set","p":"headers[\"content-type\"]","pt":"msg","to":"application/json","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":686,"y":516.2,"wires":[["5df3e909c5f358b1"]]},{"id":"5d7ca097b0e2243d","type":"change","z":"7581c2be261f9c17","g":"fb2aba112260ee37","name":"application/yaml","rules":[{"t":"set","p":"headers[\"content-type\"]","pt":"msg","to":"application/yaml","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":686,"y":459.40000000000003,"wires":[["5df3e909c5f358b1"]]},{"id":"196d3dee5e339712","type":"ut-assert-values","z":"7581c2be261f9c17","g":"c38be1d5585cf91b","name":"application/xml","ignore_failure_if_succeed":false,"rules":[{"t":"mth","p":"headers[\"content-type\"]","pt":"msg","to":"application/xml","tot":"str"}],"x":2327.000244140625,"y":456.57142857142844,"wires":[[]]},{"id":"d25d3cec964d8bd9","type":"change","z":"7581c2be261f9c17","g":"c38be1d5585cf91b","name":".xml","rules":[{"t":"set","p":"url","pt":"msg","to":"$$.baseurl & \"fubar.xml\"","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":1893.000244140625,"y":457.28571428571445,"wires":[["89550a5d79fa97f7"]]},{"id":"e436983857593288","type":"change","z":"7581c2be261f9c17","g":"c38be1d5585cf91b","name":".csv","rules":[{"t":"set","p":"url","pt":"msg","to":"$$.baseurl & \"fubar.csv\"","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":1893.000244140625,"y":521.6428571428573,"wires":[["03f16fbca4f8e203"]]},{"id":"c0899fd14f36a801","type":"ut-assert-values","z":"7581c2be261f9c17","g":"c38be1d5585cf91b","name":"text/csv","ignore_failure_if_succeed":false,"rules":[{"t":"mth","p":"headers[\"content-type\"]","pt":"msg","to":"text/csv","tot":"str"}],"x":2307.000244140625,"y":520.7857142857142,"wires":[[]]},{"id":"63d1f7024de8a0f9","type":"http request","z":"7581c2be261f9c17","g":"c38be1d5585cf91b","name":"","method":"GET","ret":"txt","paytoqs":"ignore","url":"","tls":"83cd62fbf15a01f3","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":2094.500244140625,"y":263.92857142857133,"wires":[["0d4aabf984f40260"]]},{"id":"42ef6e626a3b9634","type":"http request","z":"7581c2be261f9c17","g":"c38be1d5585cf91b","name":"","method":"GET","ret":"txt","paytoqs":"ignore","url":"","tls":"83cd62fbf15a01f3","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":2094.500244140625,"y":328.142857142857,"wires":[["779cdcbb70d502ea"]]},{"id":"7b30a20a4e30521b","type":"http request","z":"7581c2be261f9c17","g":"c38be1d5585cf91b","name":"","method":"GET","ret":"txt","paytoqs":"ignore","url":"","tls":"83cd62fbf15a01f3","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":2094.500244140625,"y":392.35714285714266,"wires":[["2aa1b47ecaeb45e4"]]},{"id":"89550a5d79fa97f7","type":"http request","z":"7581c2be261f9c17","g":"c38be1d5585cf91b","name":"","method":"GET","ret":"txt","paytoqs":"ignore","url":"","tls":"83cd62fbf15a01f3","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":2094.500244140625,"y":456.57142857142844,"wires":[["196d3dee5e339712"]]},{"id":"03f16fbca4f8e203","type":"http request","z":"7581c2be261f9c17","g":"c38be1d5585cf91b","name":"","method":"GET","ret":"txt","paytoqs":"ignore","url":"","tls":"83cd62fbf15a01f3","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":2094.500244140625,"y":520.7857142857142,"wires":[["c0899fd14f36a801"]]},{"id":"7171ba16fc94ec3f","type":"change","z":"7581c2be261f9c17","g":"c38be1d5585cf91b","name":".json","rules":[{"t":"set","p":"url","pt":"msg","to":"$$.baseurl & \"fubar.json\"","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":1893.000244140625,"y":585,"wires":[["bb8a0e1cd7499e07"]]},{"id":"bb8a0e1cd7499e07","type":"http request","z":"7581c2be261f9c17","g":"c38be1d5585cf91b","name":"","method":"GET","ret":"txt","paytoqs":"ignore","url":"","tls":"83cd62fbf15a01f3","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":2094.500244140625,"y":585,"wires":[["d883bc0fc21dd406"]]},{"id":"d883bc0fc21dd406","type":"ut-assert-values","z":"7581c2be261f9c17","g":"c38be1d5585cf91b","name":"application/json","ignore_failure_if_succeed":false,"rules":[{"t":"mth","p":"headers[\"content-type\"]","pt":"msg","to":"application/json","tot":"str"}],"x":2327.000244140625,"y":585,"wires":[[]]},{"id":"bbc6fb268ae3add2","type":"change","z":"7581c2be261f9c17","g":"c38be1d5585cf91b","name":".txt","rules":[{"t":"set","p":"url","pt":"msg","to":"$$.baseurl & \"fubar.txt\"","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":1893.000244140625,"y":199.8571428571429,"wires":[["1e64c8b5c8afd3f1"]]},{"id":"3dca2f328fa8bbf6","type":"ut-assert-values","z":"7581c2be261f9c17","g":"c38be1d5585cf91b","name":"text/plain","ignore_failure_if_succeed":false,"rules":[{"t":"mth","p":"headers[\"content-type\"]","pt":"msg","to":"text/plain","tot":"str"}],"x":2307.000244140625,"y":199.71428571428567,"wires":[[]]},{"id":"1e64c8b5c8afd3f1","type":"http request","z":"7581c2be261f9c17","g":"c38be1d5585cf91b","name":"","method":"GET","ret":"txt","paytoqs":"ignore","url":"","tls":"83cd62fbf15a01f3","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":2094.500244140625,"y":199.71428571428567,"wires":[["3dca2f328fa8bbf6"]]},{"id":"789f3913d1a0d70a","type":"http in","z":"7581c2be261f9c17","g":"d016f026db649ebf","name":"","url":"/7581c2be261f9c17/content/type/static/:path","method":"get","upload":false,"swaggerDoc":"","x":233.5,"y":796,"wires":[["b87eb0c8a39b5e2c"]]},{"id":"9a5dca7c0286ab37","type":"switch","z":"7581c2be261f9c17","g":"d016f026db649ebf","name":"","property":"req.params.path","propertyType":"msg","rules":[{"t":"regex","v":"(.text|.txt)$","vt":"str","case":true},{"t":"regex","v":".csv$","vt":"str","case":true},{"t":"regex","v":".xml$","vt":"str","case":true},{"t":"regex","v":"(.yml|.yaml)$","vt":"str","case":true},{"t":"regex","v":".json$","vt":"str","case":true},{"t":"else"}],"checkall":"false","repair":false,"outputs":6,"x":458.5,"y":1092,"wires":[["e6a98ac9117b4295"],["769ee0887afdc311"],["6144de9348da6088"],["a63d45a44e02a381"],["3cb45a5a75c65f92"],["0e5505bc5449f96a"]]},{"id":"b87eb0c8a39b5e2c","type":"template","z":"7581c2be261f9c17","g":"d016f026db649ebf","name":"payload content","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"hello world, the content is always the same, the content changes.","output":"str","x":326.5,"y":940.5,"wires":[["9a5dca7c0286ab37"]]},{"id":"e6a98ac9117b4295","type":"http response","z":"7581c2be261f9c17","g":"d016f026db649ebf","name":"text/plain","statusCode":"","headers":{"content-type":"text/plain"},"x":987.5,"y":947,"wires":[]},{"id":"769ee0887afdc311","type":"http response","z":"7581c2be261f9c17","g":"d016f026db649ebf","name":"text/csv","statusCode":"","headers":{"content-type":"text/csv"},"x":987.5,"y":1003,"wires":[]},{"id":"6144de9348da6088","type":"http response","z":"7581c2be261f9c17","g":"d016f026db649ebf","name":"application/xml","statusCode":"","headers":{"content-type":"application/xml"},"x":1007.5,"y":1059,"wires":[]},{"id":"a63d45a44e02a381","type":"http response","z":"7581c2be261f9c17","g":"d016f026db649ebf","name":"application/yaml","statusCode":"","headers":{"content-type":"application/yaml"},"x":1007.5,"y":1115,"wires":[]},{"id":"3cb45a5a75c65f92","type":"http response","z":"7581c2be261f9c17","g":"d016f026db649ebf","name":"application/json","statusCode":"","headers":{"content-type":"application/json"},"x":1007.5,"y":1171,"wires":[]},{"id":"0e5505bc5449f96a","type":"http response","z":"7581c2be261f9c17","g":"d016f026db649ebf","name":"application/octet-stream","statusCode":"","headers":{"content-type":"application/octet-stream"},"x":1037.5,"y":1227,"wires":[]},{"id":"1612220b693b3623","type":"inject","z":"7581c2be261f9c17","g":"c38be1d5585cf91b","name":"start static test - set baseurl","props":[{"p":"baseurl","v":"${host}/7581c2be261f9c17/content/type/static/","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":1621,"y":779,"wires":[["99e5759868786be0","0f0561ef36ab47c6","f3326f17718c243e","f35044ae005ed78a","fc703ee644f70191","3204886ed4d44cc3","220d534ef681fc5b","1aa21f80c61c3456"]]},{"id":"5358a49e246b28dc","type":"ut-assert-values","z":"7581c2be261f9c17","g":"c38be1d5585cf91b","name":"text/plain","ignore_failure_if_succeed":false,"rules":[{"t":"mth","p":"headers[\"content-type\"]","pt":"msg","to":"text/plain","tot":"str"}],"x":2310,"y":907.4285714285716,"wires":[[]]},{"id":"12fc11e704766c21","type":"ut-assert-values","z":"7581c2be261f9c17","g":"c38be1d5585cf91b","name":"application/yaml","ignore_failure_if_succeed":false,"rules":[{"t":"mth","p":"headers[\"content-type\"]","pt":"msg","to":"application/yaml","tot":"str"}],"x":2330,"y":971.6428571428569,"wires":[[]]},{"id":"659aef8a563c83b4","type":"ut-assert-values","z":"7581c2be261f9c17","g":"c38be1d5585cf91b","name":"application/yaml","ignore_failure_if_succeed":false,"rules":[{"t":"mth","p":"headers[\"content-type\"]","pt":"msg","to":"application/yaml","tot":"str"}],"x":2330,"y":1035.8571428571427,"wires":[[]]},{"id":"025fef00c72246a4","type":"http request","z":"7581c2be261f9c17","g":"c38be1d5585cf91b","name":"","method":"GET","ret":"txt","paytoqs":"ignore","url":"","tls":"83cd62fbf15a01f3","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":2097.5,"y":779,"wires":[["cc029ad9a824a039"]]},{"id":"cc029ad9a824a039","type":"ut-assert-values","z":"7581c2be261f9c17","g":"c38be1d5585cf91b","name":"application/octet-stream","ignore_failure_if_succeed":false,"rules":[{"t":"mth","p":"headers[\"content-type\"]","pt":"msg","to":"application/octet-stream","tot":"str"}],"x":2360,"y":779,"wires":[[]]},{"id":"99e5759868786be0","type":"change","z":"7581c2be261f9c17","g":"c38be1d5585cf91b","name":"unknown","rules":[{"t":"set","p":"url","pt":"msg","to":"$$.baseurl & \"fubar.unknown\"","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":1906,"y":779,"wires":[["025fef00c72246a4"]]},{"id":"0f0561ef36ab47c6","type":"change","z":"7581c2be261f9c17","g":"c38be1d5585cf91b","name":".text","rules":[{"t":"set","p":"url","pt":"msg","to":"$$.baseurl & \"fubar.text\"","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":1896,"y":907.7142857142858,"wires":[["e355a4888f54bf43"]]},{"id":"f3326f17718c243e","type":"change","z":"7581c2be261f9c17","g":"c38be1d5585cf91b","name":".yml","rules":[{"t":"set","p":"url","pt":"msg","to":"$$.baseurl & \"fubar.yml\"","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":1896,"y":972.0714285714284,"wires":[["4120112c54db6c19"]]},{"id":"f35044ae005ed78a","type":"change","z":"7581c2be261f9c17","g":"c38be1d5585cf91b","name":".yaml","rules":[{"t":"set","p":"url","pt":"msg","to":"$$.baseurl & \"fubar.yaml\"","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":1896,"y":1036.4285714285716,"wires":[["3e8f65df82942021"]]},{"id":"65481d7412414fd2","type":"ut-assert-values","z":"7581c2be261f9c17","g":"c38be1d5585cf91b","name":"application/xml","ignore_failure_if_succeed":false,"rules":[{"t":"mth","p":"headers[\"content-type\"]","pt":"msg","to":"application/xml","tot":"str"}],"x":2330,"y":1100.0714285714284,"wires":[[]]},{"id":"fc703ee644f70191","type":"change","z":"7581c2be261f9c17","g":"c38be1d5585cf91b","name":".xml","rules":[{"t":"set","p":"url","pt":"msg","to":"$$.baseurl & \"fubar.xml\"","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":1896,"y":1100.7857142857147,"wires":[["51cb5c842e286304"]]},{"id":"3204886ed4d44cc3","type":"change","z":"7581c2be261f9c17","g":"c38be1d5585cf91b","name":".csv","rules":[{"t":"set","p":"url","pt":"msg","to":"$$.baseurl & \"fubar.csv\"","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":1896,"y":1165.1428571428573,"wires":[["0ae331a5fa7bac37"]]},{"id":"fad7dbf628b57cd7","type":"ut-assert-values","z":"7581c2be261f9c17","g":"c38be1d5585cf91b","name":"text/csv","ignore_failure_if_succeed":false,"rules":[{"t":"mth","p":"headers[\"content-type\"]","pt":"msg","to":"text/csv","tot":"str"}],"x":2310,"y":1164.2857142857142,"wires":[[]]},{"id":"e355a4888f54bf43","type":"http request","z":"7581c2be261f9c17","g":"c38be1d5585cf91b","name":"","method":"GET","ret":"txt","paytoqs":"ignore","url":"","tls":"83cd62fbf15a01f3","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":2097.5,"y":907.4285714285716,"wires":[["5358a49e246b28dc"]]},{"id":"4120112c54db6c19","type":"http request","z":"7581c2be261f9c17","g":"c38be1d5585cf91b","name":"","method":"GET","ret":"txt","paytoqs":"ignore","url":"","tls":"83cd62fbf15a01f3","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":2097.5,"y":971.6428571428569,"wires":[["12fc11e704766c21"]]},{"id":"3e8f65df82942021","type":"http request","z":"7581c2be261f9c17","g":"c38be1d5585cf91b","name":"","method":"GET","ret":"txt","paytoqs":"ignore","url":"","tls":"83cd62fbf15a01f3","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":2097.5,"y":1035.8571428571427,"wires":[["659aef8a563c83b4"]]},{"id":"51cb5c842e286304","type":"http request","z":"7581c2be261f9c17","g":"c38be1d5585cf91b","name":"","method":"GET","ret":"txt","paytoqs":"ignore","url":"","tls":"83cd62fbf15a01f3","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":2097.5,"y":1100.0714285714284,"wires":[["65481d7412414fd2"]]},{"id":"0ae331a5fa7bac37","type":"http request","z":"7581c2be261f9c17","g":"c38be1d5585cf91b","name":"","method":"GET","ret":"txt","paytoqs":"ignore","url":"","tls":"83cd62fbf15a01f3","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":2097.5,"y":1164.2857142857142,"wires":[["fad7dbf628b57cd7"]]},{"id":"1aa21f80c61c3456","type":"change","z":"7581c2be261f9c17","g":"c38be1d5585cf91b","name":".json","rules":[{"t":"set","p":"url","pt":"msg","to":"$$.baseurl & \"fubar.json\"","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":1896,"y":1228.5,"wires":[["53ac042f0b020805"]]},{"id":"53ac042f0b020805","type":"http request","z":"7581c2be261f9c17","g":"c38be1d5585cf91b","name":"","method":"GET","ret":"txt","paytoqs":"ignore","url":"","tls":"83cd62fbf15a01f3","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":2097.5,"y":1228.5,"wires":[["d4114e1573ad09ea"]]},{"id":"d4114e1573ad09ea","type":"ut-assert-values","z":"7581c2be261f9c17","g":"c38be1d5585cf91b","name":"application/json","ignore_failure_if_succeed":false,"rules":[{"t":"mth","p":"headers[\"content-type\"]","pt":"msg","to":"application/json","tot":"str"}],"x":2330,"y":1228.5,"wires":[[]]},{"id":"220d534ef681fc5b","type":"change","z":"7581c2be261f9c17","g":"c38be1d5585cf91b","name":".txt","rules":[{"t":"set","p":"url","pt":"msg","to":"$$.baseurl & \"fubar.txt\"","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":1896,"y":843.3571428571431,"wires":[["7b5b300f77dfe907"]]},{"id":"e3409b52fea4eebb","type":"ut-assert-values","z":"7581c2be261f9c17","g":"c38be1d5585cf91b","name":"text/plain","ignore_failure_if_succeed":false,"rules":[{"t":"mth","p":"headers[\"content-type\"]","pt":"msg","to":"text/plain","tot":"str"}],"x":2310,"y":843.2142857142858,"wires":[[]]},{"id":"7b5b300f77dfe907","type":"http request","z":"7581c2be261f9c17","g":"c38be1d5585cf91b","name":"","method":"GET","ret":"txt","paytoqs":"ignore","url":"","tls":"83cd62fbf15a01f3","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":2097.5,"y":843.2142857142858,"wires":[["e3409b52fea4eebb"]]},{"id":"83cd62fbf15a01f3","type":"tls-config","name":"","cert":"","key":"","p12":"","p12name":"","ca":"","certname":"","keyname":"","caname":"","servername":"","verifyservercert":false,"alpnprotocol":"","certEnv":"","keyEnv":"","caEnv":""}]
|
|
1
|
+
[{"id":"7581c2be261f9c17","type":"tab","label":"[http] set content type","disabled":false,"info":"## Setting content type on http responses\n\nThere are two ways of doing this, either statically using the http response node or dynamically using the change node.\n\nBoth methods are demonstrated by this test.\n\nAs shown by the test, the difference between the two methods is that there either multiple http response nodes or a single http response node is defined but the content type is set before the response is sent.\n\n## Setup\n\nThe test consists of two http endpoints, one defines the <a class=\"ahl-group-only\" data-ids=\"fb2aba112260ee37\">dynamic content type specification</a> and the other the <a class=\"ahl-group-only\" data-ids=\"d016f026db649ebf\">static content type specification</a>.\n\nEach decides the content type by the filename postfix, i.e. `fubar.txt` is mimetype of `text/plain` because of the `.txt` postfix.\n\nThe <a class=\"ahl-group-only\" data-ids=\"c38be1d5585cf91b\">test for both setups</a> uses http request nodes to access these two http endpoints.\n\n","env":[{"name":"ERED_NOT_EUNIT","value":"true","type":"bool"}]},{"id":"fb2aba112260ee37","type":"group","z":"7581c2be261f9c17","name":"dynamic content type specification","style":{"label":true},"nodes":["403a924531d121df","5df3e909c5f358b1","75e3570d472390f4","bcd95cd0fe9fd797","e05b407247f65bb3","aaade65c96de83f4","30b4d835922b7c40","e474e852ba8122cd","511bb4bb8f5d2767","5d7ca097b0e2243d"],"x":5,"y":75.5,"w":1048.5,"h":540.75},{"id":"d016f026db649ebf","type":"group","z":"7581c2be261f9c17","name":"static content type specification","style":{"label":true},"nodes":["789f3913d1a0d70a","9a5dca7c0286ab37","b87eb0c8a39b5e2c","e6a98ac9117b4295","769ee0887afdc311","6144de9348da6088","a63d45a44e02a381","3cb45a5a75c65f92","0e5505bc5449f96a"],"x":17.5,"y":755,"w":1156,"h":513},{"id":"c38be1d5585cf91b","type":"group","z":"7581c2be261f9c17","name":"test for both setups","style":{"label":true},"nodes":["35064f400d2674c0","0d4aabf984f40260","779cdcbb70d502ea","2aa1b47ecaeb45e4","112fb6224b3a89e8","70abae4c0388eb38","8f87165a19fd36a3","83f113bc49ae548b","ddd2f0bc3a49b172","9869c4c39cb5d546","196d3dee5e339712","d25d3cec964d8bd9","e436983857593288","c0899fd14f36a801","63d1f7024de8a0f9","42ef6e626a3b9634","7b30a20a4e30521b","89550a5d79fa97f7","03f16fbca4f8e203","7171ba16fc94ec3f","bb8a0e1cd7499e07","d883bc0fc21dd406","bbc6fb268ae3add2","3dca2f328fa8bbf6","1e64c8b5c8afd3f1","1612220b693b3623","5358a49e246b28dc","12fc11e704766c21","659aef8a563c83b4","025fef00c72246a4","cc029ad9a824a039","99e5759868786be0","0f0561ef36ab47c6","f3326f17718c243e","f35044ae005ed78a","65481d7412414fd2","fc703ee644f70191","3204886ed4d44cc3","fad7dbf628b57cd7","e355a4888f54bf43","4120112c54db6c19","3e8f65df82942021","51cb5c842e286304","0ae331a5fa7bac37","1aa21f80c61c3456","53ac042f0b020805","d4114e1573ad09ea","220d534ef681fc5b","e3409b52fea4eebb","7b5b300f77dfe907","51ccca51e5bf0ab3","201bd518cf1de936","0f3ec546bd4e87a8","6e356bc69a3d4f14","81e1859f860e5310","06835ec44e203956"],"x":1300,"y":54.5,"w":1353.000244140625,"h":1215},{"id":"0f3ec546bd4e87a8","type":"junction","z":"7581c2be261f9c17","g":"c38be1d5585cf91b","x":1787.000045657158,"y":585,"wires":[["8f87165a19fd36a3","bbc6fb268ae3add2","83f113bc49ae548b","ddd2f0bc3a49b172","d25d3cec964d8bd9","e436983857593288","7171ba16fc94ec3f","9869c4c39cb5d546"]]},{"id":"81e1859f860e5310","type":"junction","z":"7581c2be261f9c17","g":"c38be1d5585cf91b","x":1687,"y":779,"wires":[["99e5759868786be0","220d534ef681fc5b","f3326f17718c243e","1aa21f80c61c3456","f35044ae005ed78a","0f0561ef36ab47c6","3204886ed4d44cc3","fc703ee644f70191"]]},{"id":"403a924531d121df","type":"http in","z":"7581c2be261f9c17","g":"fb2aba112260ee37","name":"","url":"/7581c2be261f9c17/content/type/dynamic/:path","method":"get","upload":false,"swaggerDoc":"","x":231,"y":116.5,"wires":[["bcd95cd0fe9fd797"]]},{"id":"5df3e909c5f358b1","type":"http response","z":"7581c2be261f9c17","g":"fb2aba112260ee37","name":"","statusCode":"","headers":{},"x":977.5,"y":575.25,"wires":[]},{"id":"75e3570d472390f4","type":"switch","z":"7581c2be261f9c17","g":"fb2aba112260ee37","name":"","property":"req.params.path","propertyType":"msg","rules":[{"t":"regex","v":"(.text|.txt)$","vt":"str","case":true},{"t":"regex","v":".csv$","vt":"str","case":true},{"t":"regex","v":".xml$","vt":"str","case":true},{"t":"regex","v":"(.yml|.yaml)$","vt":"str","case":true},{"t":"regex","v":".json$","vt":"str","case":true},{"t":"else"}],"checkall":"false","repair":false,"outputs":6,"x":360,"y":408.5,"wires":[["e05b407247f65bb3"],["aaade65c96de83f4"],["30b4d835922b7c40"],["5d7ca097b0e2243d"],["511bb4bb8f5d2767"],["e474e852ba8122cd"]]},{"id":"bcd95cd0fe9fd797","type":"template","z":"7581c2be261f9c17","g":"fb2aba112260ee37","name":"payload content","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"hello world, the content is always the same, the content changes.","output":"str","x":227,"y":256,"wires":[["75e3570d472390f4"]]},{"id":"35064f400d2674c0","type":"inject","z":"7581c2be261f9c17","g":"c38be1d5585cf91b","name":"start dynamic test - set baseurl","props":[],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":1488.000244140625,"y":95.5,"wires":[["201bd518cf1de936"]]},{"id":"0d4aabf984f40260","type":"ut-assert-values","z":"7581c2be261f9c17","g":"c38be1d5585cf91b","name":"text/plain","ignore_failure_if_succeed":false,"rules":[{"t":"mth","p":"headers[\"content-type\"]","pt":"msg","to":"text/plain","tot":"str"}],"x":2467.000244140625,"y":263.92857142857133,"wires":[[]]},{"id":"779cdcbb70d502ea","type":"ut-assert-values","z":"7581c2be261f9c17","g":"c38be1d5585cf91b","name":"application/yaml","ignore_failure_if_succeed":false,"rules":[{"t":"mth","p":"headers[\"content-type\"]","pt":"msg","to":"application/yaml","tot":"str"}],"x":2487.000244140625,"y":328.142857142857,"wires":[[]]},{"id":"2aa1b47ecaeb45e4","type":"ut-assert-values","z":"7581c2be261f9c17","g":"c38be1d5585cf91b","name":"application/yaml","ignore_failure_if_succeed":false,"rules":[{"t":"mth","p":"headers[\"content-type\"]","pt":"msg","to":"application/yaml","tot":"str"}],"x":2487.000244140625,"y":392.35714285714266,"wires":[[]]},{"id":"112fb6224b3a89e8","type":"http request","z":"7581c2be261f9c17","g":"c38be1d5585cf91b","name":"","method":"GET","ret":"txt","paytoqs":"ignore","url":"","tls":"7b44ee9d6a20398e","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":2254.500244140625,"y":135.5,"wires":[["70abae4c0388eb38"]]},{"id":"70abae4c0388eb38","type":"ut-assert-values","z":"7581c2be261f9c17","g":"c38be1d5585cf91b","name":"application/octet-stream","ignore_failure_if_succeed":false,"rules":[{"t":"mth","p":"headers[\"content-type\"]","pt":"msg","to":"application/octet-stream","tot":"str"}],"x":2517.000244140625,"y":135.5,"wires":[[]]},{"id":"8f87165a19fd36a3","type":"change","z":"7581c2be261f9c17","g":"c38be1d5585cf91b","name":"unknown","rules":[{"t":"set","p":"url","pt":"msg","to":"$$.baseurl & \"fubar.unknown\"","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":2063.000244140625,"y":135.5,"wires":[["112fb6224b3a89e8"]]},{"id":"83f113bc49ae548b","type":"change","z":"7581c2be261f9c17","g":"c38be1d5585cf91b","name":".text","rules":[{"t":"set","p":"url","pt":"msg","to":"$$.baseurl & \"fubar.text\"","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":2053.000244140625,"y":264.2142857142858,"wires":[["63d1f7024de8a0f9"]]},{"id":"ddd2f0bc3a49b172","type":"change","z":"7581c2be261f9c17","g":"c38be1d5585cf91b","name":".yml","rules":[{"t":"set","p":"url","pt":"msg","to":"$$.baseurl & \"fubar.yml\"","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":2053.000244140625,"y":328.57142857142867,"wires":[["42ef6e626a3b9634"]]},{"id":"9869c4c39cb5d546","type":"change","z":"7581c2be261f9c17","g":"c38be1d5585cf91b","name":".yaml","rules":[{"t":"set","p":"url","pt":"msg","to":"$$.baseurl & \"fubar.yaml\"","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":2053.000244140625,"y":392.92857142857156,"wires":[["7b30a20a4e30521b"]]},{"id":"e05b407247f65bb3","type":"change","z":"7581c2be261f9c17","g":"fb2aba112260ee37","name":"text/plain","rules":[{"t":"set","p":"headers[\"content-type\"]","pt":"msg","to":"text/plain","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":666,"y":289,"wires":[["5df3e909c5f358b1"]]},{"id":"aaade65c96de83f4","type":"change","z":"7581c2be261f9c17","g":"fb2aba112260ee37","name":"text/csv","rules":[{"t":"set","p":"headers[\"content-type\"]","pt":"msg","to":"text/csv","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":666,"y":345.8,"wires":[["5df3e909c5f358b1"]]},{"id":"30b4d835922b7c40","type":"change","z":"7581c2be261f9c17","g":"fb2aba112260ee37","name":"application/xml","rules":[{"t":"set","p":"headers[\"content-type\"]","pt":"msg","to":"application/xml","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":686,"y":402.6,"wires":[["5df3e909c5f358b1"]]},{"id":"e474e852ba8122cd","type":"change","z":"7581c2be261f9c17","g":"fb2aba112260ee37","name":"application/octet-stream","rules":[{"t":"set","p":"headers[\"content-type\"]","pt":"msg","to":"application/octet-stream","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":716,"y":573,"wires":[["5df3e909c5f358b1"]]},{"id":"511bb4bb8f5d2767","type":"change","z":"7581c2be261f9c17","g":"fb2aba112260ee37","name":"application/json","rules":[{"t":"set","p":"headers[\"content-type\"]","pt":"msg","to":"application/json","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":686,"y":516.2,"wires":[["5df3e909c5f358b1"]]},{"id":"5d7ca097b0e2243d","type":"change","z":"7581c2be261f9c17","g":"fb2aba112260ee37","name":"application/yaml","rules":[{"t":"set","p":"headers[\"content-type\"]","pt":"msg","to":"application/yaml","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":686,"y":459.40000000000003,"wires":[["5df3e909c5f358b1"]]},{"id":"196d3dee5e339712","type":"ut-assert-values","z":"7581c2be261f9c17","g":"c38be1d5585cf91b","name":"application/xml","ignore_failure_if_succeed":false,"rules":[{"t":"mth","p":"headers[\"content-type\"]","pt":"msg","to":"application/xml","tot":"str"}],"x":2487.000244140625,"y":456.57142857142844,"wires":[[]]},{"id":"d25d3cec964d8bd9","type":"change","z":"7581c2be261f9c17","g":"c38be1d5585cf91b","name":".xml","rules":[{"t":"set","p":"url","pt":"msg","to":"$$.baseurl & \"fubar.xml\"","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":2053.000244140625,"y":457.28571428571445,"wires":[["89550a5d79fa97f7"]]},{"id":"e436983857593288","type":"change","z":"7581c2be261f9c17","g":"c38be1d5585cf91b","name":".csv","rules":[{"t":"set","p":"url","pt":"msg","to":"$$.baseurl & \"fubar.csv\"","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":2053.000244140625,"y":521.6428571428573,"wires":[["03f16fbca4f8e203"]]},{"id":"c0899fd14f36a801","type":"ut-assert-values","z":"7581c2be261f9c17","g":"c38be1d5585cf91b","name":"text/csv","ignore_failure_if_succeed":false,"rules":[{"t":"mth","p":"headers[\"content-type\"]","pt":"msg","to":"text/csv","tot":"str"}],"x":2467.000244140625,"y":520.7857142857142,"wires":[[]]},{"id":"63d1f7024de8a0f9","type":"http request","z":"7581c2be261f9c17","g":"c38be1d5585cf91b","name":"","method":"GET","ret":"txt","paytoqs":"ignore","url":"","tls":"7b44ee9d6a20398e","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":2254.500244140625,"y":263.92857142857133,"wires":[["0d4aabf984f40260"]]},{"id":"42ef6e626a3b9634","type":"http request","z":"7581c2be261f9c17","g":"c38be1d5585cf91b","name":"","method":"GET","ret":"txt","paytoqs":"ignore","url":"","tls":"7b44ee9d6a20398e","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":2254.500244140625,"y":328.142857142857,"wires":[["779cdcbb70d502ea"]]},{"id":"7b30a20a4e30521b","type":"http request","z":"7581c2be261f9c17","g":"c38be1d5585cf91b","name":"","method":"GET","ret":"txt","paytoqs":"ignore","url":"","tls":"7b44ee9d6a20398e","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":2254.500244140625,"y":392.35714285714266,"wires":[["2aa1b47ecaeb45e4"]]},{"id":"89550a5d79fa97f7","type":"http request","z":"7581c2be261f9c17","g":"c38be1d5585cf91b","name":"","method":"GET","ret":"txt","paytoqs":"ignore","url":"","tls":"7b44ee9d6a20398e","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":2254.500244140625,"y":456.57142857142844,"wires":[["196d3dee5e339712"]]},{"id":"03f16fbca4f8e203","type":"http request","z":"7581c2be261f9c17","g":"c38be1d5585cf91b","name":"","method":"GET","ret":"txt","paytoqs":"ignore","url":"","tls":"7b44ee9d6a20398e","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":2254.500244140625,"y":520.7857142857142,"wires":[["c0899fd14f36a801"]]},{"id":"7171ba16fc94ec3f","type":"change","z":"7581c2be261f9c17","g":"c38be1d5585cf91b","name":".json","rules":[{"t":"set","p":"url","pt":"msg","to":"$$.baseurl & \"fubar.json\"","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":2053.000244140625,"y":585,"wires":[["bb8a0e1cd7499e07"]]},{"id":"bb8a0e1cd7499e07","type":"http request","z":"7581c2be261f9c17","g":"c38be1d5585cf91b","name":"","method":"GET","ret":"txt","paytoqs":"ignore","url":"","tls":"7b44ee9d6a20398e","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":2254.500244140625,"y":585,"wires":[["d883bc0fc21dd406"]]},{"id":"d883bc0fc21dd406","type":"ut-assert-values","z":"7581c2be261f9c17","g":"c38be1d5585cf91b","name":"application/json","ignore_failure_if_succeed":false,"rules":[{"t":"mth","p":"headers[\"content-type\"]","pt":"msg","to":"application/json","tot":"str"}],"x":2487.000244140625,"y":585,"wires":[[]]},{"id":"bbc6fb268ae3add2","type":"change","z":"7581c2be261f9c17","g":"c38be1d5585cf91b","name":".txt","rules":[{"t":"set","p":"url","pt":"msg","to":"$$.baseurl & \"fubar.txt\"","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":2053.000244140625,"y":199.8571428571429,"wires":[["1e64c8b5c8afd3f1"]]},{"id":"3dca2f328fa8bbf6","type":"ut-assert-values","z":"7581c2be261f9c17","g":"c38be1d5585cf91b","name":"text/plain","ignore_failure_if_succeed":false,"rules":[{"t":"mth","p":"headers[\"content-type\"]","pt":"msg","to":"text/plain","tot":"str"}],"x":2467.000244140625,"y":199.71428571428567,"wires":[[]]},{"id":"1e64c8b5c8afd3f1","type":"http request","z":"7581c2be261f9c17","g":"c38be1d5585cf91b","name":"","method":"GET","ret":"txt","paytoqs":"ignore","url":"","tls":"7b44ee9d6a20398e","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":2254.500244140625,"y":199.71428571428567,"wires":[["3dca2f328fa8bbf6"]]},{"id":"789f3913d1a0d70a","type":"http in","z":"7581c2be261f9c17","g":"d016f026db649ebf","name":"","url":"/7581c2be261f9c17/content/type/static/:path","method":"get","upload":false,"swaggerDoc":"","x":233.5,"y":796,"wires":[["b87eb0c8a39b5e2c"]]},{"id":"9a5dca7c0286ab37","type":"switch","z":"7581c2be261f9c17","g":"d016f026db649ebf","name":"","property":"req.params.path","propertyType":"msg","rules":[{"t":"regex","v":"(.text|.txt)$","vt":"str","case":true},{"t":"regex","v":".csv$","vt":"str","case":true},{"t":"regex","v":".xml$","vt":"str","case":true},{"t":"regex","v":"(.yml|.yaml)$","vt":"str","case":true},{"t":"regex","v":".json$","vt":"str","case":true},{"t":"else"}],"checkall":"false","repair":false,"outputs":6,"x":458.5,"y":1092,"wires":[["e6a98ac9117b4295"],["769ee0887afdc311"],["6144de9348da6088"],["a63d45a44e02a381"],["3cb45a5a75c65f92"],["0e5505bc5449f96a"]]},{"id":"b87eb0c8a39b5e2c","type":"template","z":"7581c2be261f9c17","g":"d016f026db649ebf","name":"payload content","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"hello world, the content is always the same, the content changes.","output":"str","x":326.5,"y":940.5,"wires":[["9a5dca7c0286ab37"]]},{"id":"e6a98ac9117b4295","type":"http response","z":"7581c2be261f9c17","g":"d016f026db649ebf","name":"text/plain","statusCode":"","headers":{"content-type":"text/plain"},"x":987.5,"y":947,"wires":[]},{"id":"769ee0887afdc311","type":"http response","z":"7581c2be261f9c17","g":"d016f026db649ebf","name":"text/csv","statusCode":"","headers":{"content-type":"text/csv"},"x":987.5,"y":1003,"wires":[]},{"id":"6144de9348da6088","type":"http response","z":"7581c2be261f9c17","g":"d016f026db649ebf","name":"application/xml","statusCode":"","headers":{"content-type":"application/xml"},"x":1007.5,"y":1059,"wires":[]},{"id":"a63d45a44e02a381","type":"http response","z":"7581c2be261f9c17","g":"d016f026db649ebf","name":"application/yaml","statusCode":"","headers":{"content-type":"application/yaml"},"x":1007.5,"y":1115,"wires":[]},{"id":"3cb45a5a75c65f92","type":"http response","z":"7581c2be261f9c17","g":"d016f026db649ebf","name":"application/json","statusCode":"","headers":{"content-type":"application/json"},"x":1007.5,"y":1171,"wires":[]},{"id":"0e5505bc5449f96a","type":"http response","z":"7581c2be261f9c17","g":"d016f026db649ebf","name":"application/octet-stream","statusCode":"","headers":{"content-type":"application/octet-stream"},"x":1037.5,"y":1227,"wires":[]},{"id":"1612220b693b3623","type":"inject","z":"7581c2be261f9c17","g":"c38be1d5585cf91b","name":"start static test - set baseurl","props":[],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":1466,"y":593,"wires":[["06835ec44e203956"]]},{"id":"5358a49e246b28dc","type":"ut-assert-values","z":"7581c2be261f9c17","g":"c38be1d5585cf91b","name":"text/plain","ignore_failure_if_succeed":false,"rules":[{"t":"mth","p":"headers[\"content-type\"]","pt":"msg","to":"text/plain","tot":"str"}],"x":2310,"y":907.4285714285716,"wires":[[]]},{"id":"12fc11e704766c21","type":"ut-assert-values","z":"7581c2be261f9c17","g":"c38be1d5585cf91b","name":"application/yaml","ignore_failure_if_succeed":false,"rules":[{"t":"mth","p":"headers[\"content-type\"]","pt":"msg","to":"application/yaml","tot":"str"}],"x":2330,"y":971.6428571428569,"wires":[[]]},{"id":"659aef8a563c83b4","type":"ut-assert-values","z":"7581c2be261f9c17","g":"c38be1d5585cf91b","name":"application/yaml","ignore_failure_if_succeed":false,"rules":[{"t":"mth","p":"headers[\"content-type\"]","pt":"msg","to":"application/yaml","tot":"str"}],"x":2330,"y":1035.8571428571427,"wires":[[]]},{"id":"025fef00c72246a4","type":"http request","z":"7581c2be261f9c17","g":"c38be1d5585cf91b","name":"","method":"GET","ret":"txt","paytoqs":"ignore","url":"","tls":"7b44ee9d6a20398e","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":2097.5,"y":779,"wires":[["cc029ad9a824a039"]]},{"id":"cc029ad9a824a039","type":"ut-assert-values","z":"7581c2be261f9c17","g":"c38be1d5585cf91b","name":"application/octet-stream","ignore_failure_if_succeed":false,"rules":[{"t":"mth","p":"headers[\"content-type\"]","pt":"msg","to":"application/octet-stream","tot":"str"}],"x":2360,"y":779,"wires":[[]]},{"id":"99e5759868786be0","type":"change","z":"7581c2be261f9c17","g":"c38be1d5585cf91b","name":"unknown","rules":[{"t":"set","p":"url","pt":"msg","to":"$$.baseurl & \"fubar.unknown\"","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":1906,"y":779,"wires":[["025fef00c72246a4"]]},{"id":"0f0561ef36ab47c6","type":"change","z":"7581c2be261f9c17","g":"c38be1d5585cf91b","name":".text","rules":[{"t":"set","p":"url","pt":"msg","to":"$$.baseurl & \"fubar.text\"","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":1896,"y":907.7142857142858,"wires":[["e355a4888f54bf43"]]},{"id":"f3326f17718c243e","type":"change","z":"7581c2be261f9c17","g":"c38be1d5585cf91b","name":".yml","rules":[{"t":"set","p":"url","pt":"msg","to":"$$.baseurl & \"fubar.yml\"","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":1896,"y":972.0714285714284,"wires":[["4120112c54db6c19"]]},{"id":"f35044ae005ed78a","type":"change","z":"7581c2be261f9c17","g":"c38be1d5585cf91b","name":".yaml","rules":[{"t":"set","p":"url","pt":"msg","to":"$$.baseurl & \"fubar.yaml\"","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":1896,"y":1036.4285714285716,"wires":[["3e8f65df82942021"]]},{"id":"65481d7412414fd2","type":"ut-assert-values","z":"7581c2be261f9c17","g":"c38be1d5585cf91b","name":"application/xml","ignore_failure_if_succeed":false,"rules":[{"t":"mth","p":"headers[\"content-type\"]","pt":"msg","to":"application/xml","tot":"str"}],"x":2330,"y":1100.0714285714284,"wires":[[]]},{"id":"fc703ee644f70191","type":"change","z":"7581c2be261f9c17","g":"c38be1d5585cf91b","name":".xml","rules":[{"t":"set","p":"url","pt":"msg","to":"$$.baseurl & \"fubar.xml\"","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":1896,"y":1100.7857142857147,"wires":[["51cb5c842e286304"]]},{"id":"3204886ed4d44cc3","type":"change","z":"7581c2be261f9c17","g":"c38be1d5585cf91b","name":".csv","rules":[{"t":"set","p":"url","pt":"msg","to":"$$.baseurl & \"fubar.csv\"","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":1896,"y":1165.1428571428573,"wires":[["0ae331a5fa7bac37"]]},{"id":"fad7dbf628b57cd7","type":"ut-assert-values","z":"7581c2be261f9c17","g":"c38be1d5585cf91b","name":"text/csv","ignore_failure_if_succeed":false,"rules":[{"t":"mth","p":"headers[\"content-type\"]","pt":"msg","to":"text/csv","tot":"str"}],"x":2310,"y":1164.2857142857142,"wires":[[]]},{"id":"e355a4888f54bf43","type":"http request","z":"7581c2be261f9c17","g":"c38be1d5585cf91b","name":"","method":"GET","ret":"txt","paytoqs":"ignore","url":"","tls":"7b44ee9d6a20398e","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":2097.5,"y":907.4285714285716,"wires":[["5358a49e246b28dc"]]},{"id":"4120112c54db6c19","type":"http request","z":"7581c2be261f9c17","g":"c38be1d5585cf91b","name":"","method":"GET","ret":"txt","paytoqs":"ignore","url":"","tls":"7b44ee9d6a20398e","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":2097.5,"y":971.6428571428569,"wires":[["12fc11e704766c21"]]},{"id":"3e8f65df82942021","type":"http request","z":"7581c2be261f9c17","g":"c38be1d5585cf91b","name":"","method":"GET","ret":"txt","paytoqs":"ignore","url":"","tls":"7b44ee9d6a20398e","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":2097.5,"y":1035.8571428571427,"wires":[["659aef8a563c83b4"]]},{"id":"51cb5c842e286304","type":"http request","z":"7581c2be261f9c17","g":"c38be1d5585cf91b","name":"","method":"GET","ret":"txt","paytoqs":"ignore","url":"","tls":"7b44ee9d6a20398e","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":2097.5,"y":1100.0714285714284,"wires":[["65481d7412414fd2"]]},{"id":"0ae331a5fa7bac37","type":"http request","z":"7581c2be261f9c17","g":"c38be1d5585cf91b","name":"","method":"GET","ret":"txt","paytoqs":"ignore","url":"","tls":"7b44ee9d6a20398e","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":2097.5,"y":1164.2857142857142,"wires":[["fad7dbf628b57cd7"]]},{"id":"1aa21f80c61c3456","type":"change","z":"7581c2be261f9c17","g":"c38be1d5585cf91b","name":".json","rules":[{"t":"set","p":"url","pt":"msg","to":"$$.baseurl & \"fubar.json\"","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":1896,"y":1228.5,"wires":[["53ac042f0b020805"]]},{"id":"53ac042f0b020805","type":"http request","z":"7581c2be261f9c17","g":"c38be1d5585cf91b","name":"","method":"GET","ret":"txt","paytoqs":"ignore","url":"","tls":"7b44ee9d6a20398e","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":2097.5,"y":1228.5,"wires":[["d4114e1573ad09ea"]]},{"id":"d4114e1573ad09ea","type":"ut-assert-values","z":"7581c2be261f9c17","g":"c38be1d5585cf91b","name":"application/json","ignore_failure_if_succeed":false,"rules":[{"t":"mth","p":"headers[\"content-type\"]","pt":"msg","to":"application/json","tot":"str"}],"x":2330,"y":1228.5,"wires":[[]]},{"id":"220d534ef681fc5b","type":"change","z":"7581c2be261f9c17","g":"c38be1d5585cf91b","name":".txt","rules":[{"t":"set","p":"url","pt":"msg","to":"$$.baseurl & \"fubar.txt\"","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":1896,"y":843.3571428571431,"wires":[["7b5b300f77dfe907"]]},{"id":"e3409b52fea4eebb","type":"ut-assert-values","z":"7581c2be261f9c17","g":"c38be1d5585cf91b","name":"text/plain","ignore_failure_if_succeed":false,"rules":[{"t":"mth","p":"headers[\"content-type\"]","pt":"msg","to":"text/plain","tot":"str"}],"x":2310,"y":843.2142857142858,"wires":[[]]},{"id":"7b5b300f77dfe907","type":"http request","z":"7581c2be261f9c17","g":"c38be1d5585cf91b","name":"","method":"GET","ret":"txt","paytoqs":"ignore","url":"","tls":"7b44ee9d6a20398e","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":2097.5,"y":843.2142857142858,"wires":[["e3409b52fea4eebb"]]},{"id":"51ccca51e5bf0ab3","type":"change","z":"7581c2be261f9c17","g":"c38be1d5585cf91b","name":"start dynamic test - set baseurl","rules":[{"t":"set","p":"baseurl","pt":"msg","to":"$$.utcfg.host & \"/7581c2be261f9c17/content/type/dynamic/\"","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":1564,"y":217,"wires":[["0f3ec546bd4e87a8"]]},{"id":"201bd518cf1de936","type":"ut-config","z":"7581c2be261f9c17","g":"c38be1d5585cf91b","name":"","x":1544,"y":159,"wires":[["51ccca51e5bf0ab3"]]},{"id":"6e356bc69a3d4f14","type":"change","z":"7581c2be261f9c17","g":"c38be1d5585cf91b","name":"start static test - set baseurl","rules":[{"t":"set","p":"baseurl","pt":"msg","to":"$$.utcfg.host & \"/7581c2be261f9c17/content/type/static/\"","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":1547,"y":715,"wires":[["81e1859f860e5310"]]},{"id":"06835ec44e203956","type":"ut-config","z":"7581c2be261f9c17","g":"c38be1d5585cf91b","name":"","x":1489,"y":656,"wires":[["6e356bc69a3d4f14"]]},{"id":"7b44ee9d6a20398e","type":"tls-config","name":"7581c2be261f9c17-tls-config","certType":"files","cert":"","key":"","p12":"","p12name":"","ca":"","certname":"","keyname":"","caname":"","servername":"","verifyservercert":false,"alpnprotocol":"","certEnv":"","keyEnv":"","caEnv":""}]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"id":"ae8a9b0bbbaff447","type":"tab","label":"[http] support query string on get request","disabled":false,"info":"## Http request - querystring support\n\nIf the payload is an hash object and the payload is to be attached to the request, then do that.","env":[{"name":"ERED_NOT_EUNIT","value":"true","type":"bool"}]},{"id":"de5f1e7715857c51","type":"group","z":"ae8a9b0bbbaff447","name":"payload needs to be hash object","style":{"label":true},"nodes":["de1f92619c0a6653","2516f628c80dce21","a84c6e0bf72c2ab6","9ee346ce352ff4d8","26831c1dc5d4229a","d3d3b3a53411ac0d"],"x":
|
|
1
|
+
[{"id":"ae8a9b0bbbaff447","type":"tab","label":"[http] support query string on get request","disabled":false,"info":"## Http request - querystring support\n\nIf the payload is an hash object and the payload is to be attached to the request, then do that.","env":[{"name":"ERED_NOT_EUNIT","value":"true","type":"bool"}]},{"id":"de5f1e7715857c51","type":"group","z":"ae8a9b0bbbaff447","name":"payload needs to be hash object","style":{"label":true},"nodes":["de1f92619c0a6653","2516f628c80dce21","a84c6e0bf72c2ab6","9ee346ce352ff4d8","26831c1dc5d4229a","d3d3b3a53411ac0d","1fe6dc1a5c7d558a","eca823b1f4f53ffb"],"x":84,"y":380,"w":928,"h":257.5},{"id":"ba15a72a3a5371fa","type":"http in","z":"ae8a9b0bbbaff447","name":"","url":"/ae8a9b0bbbaff447/data","method":"get","upload":false,"swaggerDoc":"","x":284,"y":209,"wires":[["97f939fa10215a10"]]},{"id":"28afc41b3d629b65","type":"http response","z":"ae8a9b0bbbaff447","name":"","statusCode":"200","headers":{},"x":770,"y":201.75,"wires":[]},{"id":"97f939fa10215a10","type":"template","z":"ae8a9b0bbbaff447","name":"","field":"payload","fieldType":"msg","format":"javascript","syntax":"mustache","template":"{ \n \"response\": \"{{{ payload.payload }}}\"\n}","output":"str","x":565,"y":127.75,"wires":[["28afc41b3d629b65"]]},{"id":"69cd3f2398499062","type":"http request","z":"ae8a9b0bbbaff447","name":"","method":"GET","ret":"obj","paytoqs":"query","url":"","tls":"a569081a3b08b8de","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":632,"y":295,"wires":[["b6250f72b6dbfa26"]]},{"id":"68674bd9ceb7a860","type":"inject","z":"ae8a9b0bbbaff447","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"{ \"payload\" : \"payload\" }","payloadType":"json","x":214,"y":297,"wires":[["98e6cf96631b7c81"]]},{"id":"b6250f72b6dbfa26","type":"ut-assert-values","z":"ae8a9b0bbbaff447","name":"","ignore_failure_if_succeed":false,"rules":[{"t":"eql","p":"payload.response","pt":"msg","to":"payload","tot":"str"}],"x":925,"y":295,"wires":[[]]},{"id":"de1f92619c0a6653","type":"http request","z":"ae8a9b0bbbaff447","g":"de5f1e7715857c51","name":"","method":"GET","ret":"obj","paytoqs":"query","url":"","tls":"a569081a3b08b8de","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":576,"y":524,"wires":[["a84c6e0bf72c2ab6"]]},{"id":"2516f628c80dce21","type":"inject","z":"ae8a9b0bbbaff447","g":"de5f1e7715857c51","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"string not allowed only hash object","payloadType":"str","x":180,"y":421,"wires":[["1fe6dc1a5c7d558a"]]},{"id":"a84c6e0bf72c2ab6","type":"ut-assert-failure","z":"ae8a9b0bbbaff447","g":"de5f1e7715857c51","name":"","x":806,"y":464,"wires":[]},{"id":"9ee346ce352ff4d8","type":"catch","z":"ae8a9b0bbbaff447","g":"de5f1e7715857c51","name":"","scope":["de1f92619c0a6653"],"uncaught":false,"x":569,"y":596.5,"wires":[["26831c1dc5d4229a","d3d3b3a53411ac0d"]]},{"id":"26831c1dc5d4229a","type":"ut-assert-success","z":"ae8a9b0bbbaff447","g":"de5f1e7715857c51","name":"","count":1,"x":896,"y":596.5,"wires":[]},{"id":"d3d3b3a53411ac0d","type":"ut-assert-values","z":"ae8a9b0bbbaff447","g":"de5f1e7715857c51","name":"","ignore_failure_if_succeed":false,"rules":[{"t":"eql","p":"error.message","pt":"msg","to":"Invalid payload","tot":"str"}],"x":872,"y":552.5,"wires":[[]]},{"id":"1fe6dc1a5c7d558a","type":"ut-config","z":"ae8a9b0bbbaff447","g":"de5f1e7715857c51","name":"","x":325,"y":505,"wires":[["eca823b1f4f53ffb"]]},{"id":"eca823b1f4f53ffb","type":"change","z":"ae8a9b0bbbaff447","g":"de5f1e7715857c51","name":"","rules":[{"t":"set","p":"url","pt":"msg","to":"$$.utcfg.host & \"/ae8a9b0bbbaff447/data\"","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":362,"y":568,"wires":[["de1f92619c0a6653"]]},{"id":"98e6cf96631b7c81","type":"ut-config","z":"ae8a9b0bbbaff447","name":"","x":410,"y":277,"wires":[["0eeaa9975db1c793"]]},{"id":"0eeaa9975db1c793","type":"change","z":"ae8a9b0bbbaff447","name":"","rules":[{"t":"set","p":"url","pt":"msg","to":"$$.utcfg.host & \"/ae8a9b0bbbaff447/data\"","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":414,"y":341,"wires":[["69cd3f2398499062"]]},{"id":"a569081a3b08b8de","type":"tls-config","name":"ae8a9b0bbbaff447-tls-config","certType":"files","cert":"","key":"","p12":"","p12name":"","ca":"","certname":"","keyname":"","caname":"","servername":"","verifyservercert":false,"alpnprotocol":"","certEnv":"","keyEnv":"","caEnv":""}]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"id":"c4690c0a085d6ef5","type":"tab","label":"[json] parse example json content","disabled":false,"info":"## Parsing flow json file\n\nparse a json string into an object.\n\nread a file containing JSON, pass that off to a JSON node to convert that to list of maps (in this case).\n\nthen count the number of elements in the list and compare that number with 8!\n\nThe json happens to be a test flow json, so after this test, the json node can successfully parse a node red flow json file!\n\nIt's turtles all the way down.\n\n","env":[{"name":"ERED_KEEPRUNNING","value":"false","type":"bool"},{"name":"ERED_ONLY","value":"false","type":"bool"}]},{"id":"453848d471cdd83d","type":"inject","z":"c4690c0a085d6ef5","name":"","props":[
|
|
1
|
+
[{"id":"c4690c0a085d6ef5","type":"tab","label":"[json] parse example json content","disabled":false,"info":"## Parsing flow json file\n\nparse a json string into an object.\n\nread a file containing JSON, pass that off to a JSON node to convert that to list of maps (in this case).\n\nthen count the number of elements in the list and compare that number with 8!\n\nThe json happens to be a test flow json, so after this test, the json node can successfully parse a node red flow json file!\n\nIt's turtles all the way down.\n\n","env":[{"name":"ERED_KEEPRUNNING","value":"false","type":"bool"},{"name":"ERED_ONLY","value":"false","type":"bool"}]},{"id":"453848d471cdd83d","type":"inject","z":"c4690c0a085d6ef5","name":"","props":[],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":123,"y":459.5,"wires":[["f9e2f418dca7242c"]]},{"id":"962cb9fb663ba64d","type":"file in","z":"c4690c0a085d6ef5","name":"","filename":"filename","filenameType":"msg","format":"utf8","chunk":false,"sendError":false,"encoding":"none","allProps":false,"x":742.0000000000001,"y":459.5,"wires":[["7778fb3372eda641","f3d21b6c8e431f9f"]]},{"id":"7778fb3372eda641","type":"json","z":"c4690c0a085d6ef5","name":"","property":"payload","action":"obj","pretty":false,"x":908.3333333333335,"y":459.5,"wires":[["c1724fc6ab23c0c4"]]},{"id":"f3d21b6c8e431f9f","type":"ut-assert-success","z":"c4690c0a085d6ef5","name":"","count":1,"x":998,"y":289,"wires":[]},{"id":"4ae89e9e828d9ebc","type":"ut-assert-values","z":"c4690c0a085d6ef5","name":"","rules":[{"t":"eql","p":"first","pt":"msg","to":"{\"disabled\":false,\"env\":[],\"id\":\"9e7ccc97f80d9afb\",\"info\":\"A file name can also be dynamic and be taken from the msg object passed to the file in node.\",\"label\":\"[file in] will accept file name from msg obj\",\"type\":\"tab\"}","tot":"json"}],"x":1331,"y":546.5,"wires":[[]]},{"id":"c1724fc6ab23c0c4","type":"change","z":"c4690c0a085d6ef5","name":"","rules":[{"t":"set","p":"first","pt":"msg","to":"$$.payload[0]","tot":"jsonata"},{"t":"set","p":"payload","pt":"msg","to":"$count($$.payload)","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":1094.666666666667,"y":459.5,"wires":[["b1a7846c21cceac0","4ae89e9e828d9ebc"]]},{"id":"b1a7846c21cceac0","type":"ut-assert-values","z":"c4690c0a085d6ef5","name":"","rules":[{"t":"eql","p":"payload","pt":"msg","to":"8","tot":"num"}],"x":1341,"y":459.5,"wires":[[]]},{"id":"f9e2f418dca7242c","type":"ut-config","z":"c4690c0a085d6ef5","name":"","x":309.33333333333337,"y":459.5,"wires":[["64b0c615bbcd43f9"]]},{"id":"64b0c615bbcd43f9","type":"change","z":"c4690c0a085d6ef5","name":"","rules":[{"t":"set","p":"filename","pt":"msg","to":"$$.utcfg.priv & \"/testdata/test.json\"","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":535.6666666666667,"y":459.5,"wires":[["962cb9fb663ba64d"]]}]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[{"id":"61142eb3e4e54eab","type":"tab","label":"[split] work with binary data as string data","disabled":false,"info":"## Split\n\nSplit node worked with lists but now also binary data as string.\n\n\n## Array length = 0 or 1\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\nErlang only has lists: strings are lists that are intrepreted as strings. A split node that can distinguish between strings and arrays is possible in NodeJS but not Erlang.\n\nExplicitly setting the array length to zero (in Erlang-Red) means that the split node is forced to use string manipulation to handle the incoming data.\n\nSetting the array length to zero causes an exception in Node-RED:\n\n```\n\"Invalid split property: Error: invalid array split length: 0\"\n```\n\nso it has to be set to greater than zero.\n"},{"id":"c82f30a56d1a660d","type":"group","z":"61142eb3e4e54eab","name":"tab","style":{"label":true},"nodes":["259c2437c90e9894","9d3fcda3a73dd985","bc0fb8439cdeca2a"],"x":1125,"y":1296.5,"w":870,"h":374},{"id":"56099cc47438c1d8","type":"group","z":"61142eb3e4e54eab","name":"newline","style":{"label":true},"nodes":["f2c8927f6a9bf66d","85869f07edea2246","06a78318c2695fe1"],"x":1125,"y":1691,"w":972,"h":373.5},{"id":"1d7b7265606317fe","type":"group","z":"61142eb3e4e54eab","name":"slash-b","style":{"label":true},"nodes":["fba392e7c499fa3a","05582e26dd17126e","a614e4b284c682a1"],"x":945,"y":488.5,"w":1221,"h":371.5},{"id":"2a69db355acc618b","type":"group","z":"61142eb3e4e54eab","name":"carriage return","style":{"label":true},"nodes":["df4aea65eb3bb87d","0d40744d4078e8e6","19f7170261b9c21c","87886f44ca034935"],"x":1123,"y":886.5,"w":953,"h":386},{"id":"85869f07edea2246","type":"group","z":"61142eb3e4e54eab","g":"56099cc47438c1d8","name":"Node-RED Only","style":{"label":true},"nodes":["f6ba81aad17613d7","58555c76313b29c2","86585e2c4cd6f468","e67af6fc0b9859ad"],"env":[{"name":"NODE_RED_ONLY","value":"true","type":"bool"}],"x":1339,"y":1717,"w":732,"h":135},{"id":"06a78318c2695fe1","type":"group","z":"61142eb3e4e54eab","g":"56099cc47438c1d8","name":"Erlang-Red Only","style":{"label":true},"nodes":["4870251dc3920d6e","1e7f8905177e4a51","6ad09bfad9be496a","bbef69370ffefa7d"],"env":[{"name":"ERED_ONLY","value":"true","type":"bool"}],"x":1329,"y":1891,"w":612,"h":147.5},{"id":"05582e26dd17126e","type":"group","z":"61142eb3e4e54eab","g":"1d7b7265606317fe","name":"Node-RED Only","style":{"label":true},"nodes":["dcc30641a96cf07c","37e2dad54c52d3c5","0fd075aa73fb9538","bfaafca303c0ca43"],"env":[{"name":"NODE_RED_ONLY","value":"true","type":"bool"}],"x":1506,"y":514.5,"w":634,"h":139.5},{"id":"19f7170261b9c21c","type":"group","z":"61142eb3e4e54eab","g":"2a69db355acc618b","name":"Node-RED Only","style":{"label":true},"nodes":["374f84444a924ced","f7f874bb0acd6f10","fa9203446a7a11c1","30cd6ffc9b0b76fd"],"env":[{"name":"NODE_RED_ONLY","value":"true","type":"bool"}],"x":1535,"y":917,"w":504,"h":156.5},{"id":"87886f44ca034935","type":"group","z":"61142eb3e4e54eab","g":"2a69db355acc618b","name":"Erlang-Red Only","style":{"label":true},"nodes":["a34790bc9d32225c","280dd2d3b3482854","c53c69fb06bf9bf2","15754917e9e1ddf4"],"env":[{"name":"ERED_ONLY","value":"true","type":"bool"}],"x":1369,"y":1098.5,"w":681,"h":148},{"id":"a614e4b284c682a1","type":"group","z":"61142eb3e4e54eab","g":"1d7b7265606317fe","name":"Erlang-Red Only","style":{"label":true},"nodes":["f66b5dfddb7e379e","27496740b8f0d9b5","8dd97d7c8a42d1a3","7060502f466f75fb","5e76c482452552f9"],"env":[{"name":"ERED_ONLY","value":"true","type":"bool"}],"x":1153,"y":685.5,"w":953,"h":148.5},{"id":"9d3fcda3a73dd985","type":"group","z":"61142eb3e4e54eab","g":"c82f30a56d1a660d","name":"Erlang-Red Only","style":{"label":true},"nodes":["aa8d437abfb102c3","79ccf35012bdfc48","2f145767746512d9","426375d5dbd09656"],"env":[{"name":"ERED_ONLY","value":"true","type":"bool"}],"x":1387,"y":1505.5,"w":570,"h":139},{"id":"bc0fb8439cdeca2a","type":"group","z":"61142eb3e4e54eab","g":"c82f30a56d1a660d","name":"Node-RED Only","style":{"label":true},"nodes":["88e1d709187a2c9b","2afe03cd768bc701","0a888712c59f684d","f8e8a55a6e7fad1b"],"env":[{"name":"NODE_RED_ONLY","value":"true","type":"bool"}],"x":1448,"y":1322.5,"w":521,"h":136.5},{"id":"aa8d437abfb102c3","type":"split","z":"61142eb3e4e54eab","g":"9d3fcda3a73dd985","name":"split - array length = 0","splt":"\\t","spltType":"str","arraySplt":"0","arraySpltType":"len","stream":false,"addname":"","property":"payload","x":1513,"y":1546.5,"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":1211,"y":1450,"wires":[["aa8d437abfb102c3","88e1d709187a2c9b"]]},{"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":829,"y":1147,"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":1211,"y":1869,"wires":[["6ad09bfad9be496a","e67af6fc0b9859ad"]]},{"id":"6ad09bfad9be496a","type":"split","z":"61142eb3e4e54eab","g":"06a78318c2695fe1","name":"split - array length = 0","splt":"\\n","spltType":"str","arraySplt":"0","arraySpltType":"len","stream":false,"addname":"","property":"payload","x":1455,"y":1932,"wires":[["1e7f8905177e4a51","bbef69370ffefa7d"]]},{"id":"1e7f8905177e4a51","type":"join","z":"61142eb3e4e54eab","g":"06a78318c2695fe1","name":"","mode":"auto","build":"object","property":"payload","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","useparts":false,"accumulate":"false","timeout":"","count":"","reduceRight":false,"x":1568,"y":1997.5,"wires":[["4870251dc3920d6e"]]},{"id":"bbef69370ffefa7d","type":"ut-assert-success","z":"61142eb3e4e54eab","g":"06a78318c2695fe1","name":"","count":"7","x":1825,"y":1932,"wires":[]},{"id":"4870251dc3920d6e","type":"ut-assert-values","z":"61142eb3e4e54eab","g":"06a78318c2695fe1","name":"","ignore_failure_if_succeed":false,"rules":[{"t":"eql","p":"payload","pt":"msg","to":"[\"one\", \"two\", \"three\", \"four\", \"five\", \"six\", \"\"]","tot":"json"}],"x":1770,"y":1997.5,"wires":[[]]},{"id":"79ccf35012bdfc48","type":"join","z":"61142eb3e4e54eab","g":"9d3fcda3a73dd985","name":"","mode":"auto","build":"object","property":"payload","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","useparts":false,"accumulate":"false","timeout":"","count":"","reduceRight":false,"x":1590,"y":1603.5,"wires":[["426375d5dbd09656"]]},{"id":"2f145767746512d9","type":"ut-assert-success","z":"61142eb3e4e54eab","g":"9d3fcda3a73dd985","name":"","count":"15","x":1841,"y":1546.5,"wires":[]},{"id":"426375d5dbd09656","type":"ut-assert-values","z":"61142eb3e4e54eab","g":"9d3fcda3a73dd985","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":1835,"y":1603.5,"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":1031,"y":555.5,"wires":[["5e76c482452552f9","37e2dad54c52d3c5"]]},{"id":"5e76c482452552f9","type":"change","z":"61142eb3e4e54eab","g":"a614e4b284c682a1","name":"replace slash-slash-b with slash-b","rules":[{"p":"payload","pt":"msg","t":"set","to":"$replace($$.payload, \"\\\\b\",\"\\b\")","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":1319,"y":726.5,"wires":[["8dd97d7c8a42d1a3"]]},{"id":"8dd97d7c8a42d1a3","type":"split","z":"61142eb3e4e54eab","g":"a614e4b284c682a1","name":"split - array length = 0","splt":"\\b","spltType":"str","arraySplt":"0","arraySpltType":"len","stream":false,"addname":"","property":"payload","x":1630,"y":726.5,"wires":[["7060502f466f75fb","27496740b8f0d9b5"]]},{"id":"7060502f466f75fb","type":"ut-assert-success","z":"61142eb3e4e54eab","g":"a614e4b284c682a1","name":"","count":"6","x":1990,"y":726.5,"wires":[]},{"id":"27496740b8f0d9b5","type":"join","z":"61142eb3e4e54eab","g":"a614e4b284c682a1","name":"","mode":"auto","build":"object","property":"payload","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","useparts":false,"accumulate":"false","timeout":"","count":"","reduceRight":false,"x":1773,"y":793,"wires":[["f66b5dfddb7e379e"]]},{"id":"f66b5dfddb7e379e","type":"ut-assert-values","z":"61142eb3e4e54eab","g":"a614e4b284c682a1","name":"","ignore_failure_if_succeed":false,"rules":[{"t":"eql","p":"payload","pt":"msg","to":"[\"one\",\"two\",\"three\",\"four\",\"five\",\"six\\n\"]","tot":"json"}],"x":1990,"y":793,"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":1209,"y":927.5,"wires":[["0d40744d4078e8e6"]]},{"id":"0d40744d4078e8e6","type":"change","z":"61142eb3e4e54eab","g":"2a69db355acc618b","name":"carriage return","rules":[{"p":"payload","pt":"msg","t":"set","to":"$replace($$.payload, \"\\\\r\",\"\\r\")","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":1263,"y":1070.5,"wires":[["15754917e9e1ddf4","30cd6ffc9b0b76fd"]]},{"id":"15754917e9e1ddf4","type":"split","z":"61142eb3e4e54eab","g":"87886f44ca034935","name":"split - array length = 0","splt":"\\r","spltType":"str","arraySplt":"0","arraySpltType":"len","stream":false,"addname":"","property":"payload","x":1495,"y":1139.5,"wires":[["c53c69fb06bf9bf2","280dd2d3b3482854"]]},{"id":"c53c69fb06bf9bf2","type":"ut-assert-success","z":"61142eb3e4e54eab","g":"87886f44ca034935","name":"","count":"6","x":1918,"y":1140.5,"wires":[]},{"id":"280dd2d3b3482854","type":"join","z":"61142eb3e4e54eab","g":"87886f44ca034935","name":"","mode":"auto","build":"object","property":"payload","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","useparts":false,"accumulate":"false","timeout":"","count":"","reduceRight":false,"x":1684,"y":1205.5,"wires":[["a34790bc9d32225c"]]},{"id":"a34790bc9d32225c","type":"ut-assert-values","z":"61142eb3e4e54eab","g":"87886f44ca034935","name":"","ignore_failure_if_succeed":false,"rules":[{"t":"eql","p":"payload","pt":"msg","to":"[\"one\",\"two\",\"three\",\"four\",\"five\",\"six\"]","tot":"json"}],"x":1934,"y":1204.5,"wires":[[]]},{"id":"f6ba81aad17613d7","type":"ut-assert-values","z":"61142eb3e4e54eab","g":"85869f07edea2246","name":"","ignore_failure_if_succeed":false,"rules":[{"t":"eql","p":"payload","pt":"msg","to":"one\\ntwo\\nthree\\nfour\\nfive\\nsix\\n","tot":"str"}],"x":1955,"y":1811,"wires":[[]]},{"id":"dcc30641a96cf07c","type":"ut-assert-values","z":"61142eb3e4e54eab","g":"05582e26dd17126e","name":"","ignore_failure_if_succeed":false,"rules":[{"t":"eql","p":"payload","pt":"msg","to":"one\\btwo\\bthree\\bfour\\bfive\\bsix\\n","tot":"str"}],"x":2024,"y":613,"wires":[[]]},{"id":"374f84444a924ced","type":"ut-assert-values","z":"61142eb3e4e54eab","g":"19f7170261b9c21c","name":"","ignore_failure_if_succeed":false,"rules":[{"t":"eql","p":"payload","pt":"msg","to":"one\\rtwo\\rthree\\rfour\\rfive\\rsix","tot":"str"}],"x":1814,"y":1032.5,"wires":[[]]},{"id":"88e1d709187a2c9b","type":"split","z":"61142eb3e4e54eab","g":"bc0fb8439cdeca2a","name":"","splt":"\\t","spltType":"str","arraySplt":"1","arraySpltType":"len","stream":false,"addname":"","property":"payload","x":1524,"y":1363.5,"wires":[["0a888712c59f684d","f8e8a55a6e7fad1b"]]},{"id":"2afe03cd768bc701","type":"ut-assert-values","z":"61142eb3e4e54eab","g":"bc0fb8439cdeca2a","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":1853,"y":1418,"wires":[[]]},{"id":"0a888712c59f684d","type":"ut-assert-success","z":"61142eb3e4e54eab","g":"bc0fb8439cdeca2a","name":"","count":"15","x":1828,"y":1363.5,"wires":[]},{"id":"e67af6fc0b9859ad","type":"split","z":"61142eb3e4e54eab","g":"85869f07edea2246","name":"split - array length > 0","splt":"\\n","spltType":"str","arraySplt":"1","arraySpltType":"len","stream":false,"addname":"","property":"payload","x":1465,"y":1811,"wires":[["86585e2c4cd6f468","58555c76313b29c2"]]},{"id":"86585e2c4cd6f468","type":"join","z":"61142eb3e4e54eab","g":"85869f07edea2246","name":"","mode":"auto","build":"object","property":"payload","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","useparts":false,"accumulate":"false","timeout":"","count":"","reduceRight":false,"x":1712,"y":1811,"wires":[["f6ba81aad17613d7"]]},{"id":"58555c76313b29c2","type":"ut-assert-success","z":"61142eb3e4e54eab","g":"85869f07edea2246","name":"","count":"7","x":1732,"y":1758,"wires":[]},{"id":"37e2dad54c52d3c5","type":"split","z":"61142eb3e4e54eab","g":"05582e26dd17126e","name":"split - array length = 1","splt":"\\b","spltType":"str","arraySplt":"1","arraySpltType":"len","stream":false,"addname":"","property":"payload","x":1632,"y":555.5,"wires":[["bfaafca303c0ca43","0fd075aa73fb9538"]]},{"id":"0fd075aa73fb9538","type":"join","z":"61142eb3e4e54eab","g":"05582e26dd17126e","name":"","mode":"auto","build":"object","property":"payload","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","useparts":false,"accumulate":"false","timeout":"","count":"","reduceRight":false,"x":1714,"y":613,"wires":[["dcc30641a96cf07c"]]},{"id":"bfaafca303c0ca43","type":"ut-assert-success","z":"61142eb3e4e54eab","g":"05582e26dd17126e","name":"","count":"6","x":2024,"y":555.5,"wires":[]},{"id":"30cd6ffc9b0b76fd","type":"split","z":"61142eb3e4e54eab","g":"19f7170261b9c21c","name":"split - array length = 1","splt":"\\r","spltType":"str","arraySplt":"1","arraySpltType":"len","stream":false,"addname":"","property":"payload","x":1661,"y":964,"wires":[["fa9203446a7a11c1","f7f874bb0acd6f10"]]},{"id":"f7f874bb0acd6f10","type":"join","z":"61142eb3e4e54eab","g":"19f7170261b9c21c","name":"","mode":"auto","build":"object","property":"payload","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","useparts":false,"accumulate":"false","timeout":"","count":"","reduceRight":false,"x":1616,"y":1027,"wires":[["374f84444a924ced"]]},{"id":"fa9203446a7a11c1","type":"ut-assert-success","z":"61142eb3e4e54eab","g":"19f7170261b9c21c","name":"","count":"6","x":1923,"y":958,"wires":[]},{"id":"f8e8a55a6e7fad1b","type":"join","z":"61142eb3e4e54eab","g":"bc0fb8439cdeca2a","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":1654,"y":1416,"wires":[["2afe03cd768bc701"]]}]
|