@gregoriusrippenstein/erlang-red-unittest 0.21.0 → 0.21.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/examples/assert values/ignores failures if requested and boolean not-equal test.json +1 -0
- package/examples/catch/catch all in group except those handler elsewhere.json +1 -1
- package/examples/catch/deal with it yourself.json +1 -1
- package/examples/catch/don't catch if the node isn't selected.json +1 -1
- package/examples/change/set functionality.json +1 -1
- package/examples/complete/split node.json +1 -1
- package/examples/debug/Jsonata expressions in output field.json +1 -0
- package/examples/debug/ensure debug messages are generated.json +1 -1
- package/examples/debug/handle largish json files as content.json +1 -1
- package/examples/debug/status message counter.json +1 -1
- package/examples/debug/type hadling of JSONata results (ered).json +1 -0
- package/examples/debug/type hadling of JSONata results (node-red).json +1 -0
- package/examples/delay/respect the reset flag and dont pass on the reset msg.json +1 -0
- package/examples/exec/handle multiple process at once (ered).json +1 -0
- package/examples/exec/handle multiple process at once (nred).json +1 -0
- package/examples/exec/support timeout specification (ered).json +1 -0
- package/examples/exec/support timeout specification (nred).json +1 -0
- package/examples/exec/synchronised execution (ered).json +1 -0
- package/examples/exec/synchronised execution (nred).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/filter/ignore initial value.json +1 -1
- package/examples/filter/post if value changed.json +1 -1
- package/examples/flowhubpull/retrieve flow id.json +1 -1
- package/examples/function/divide by zero throws kills node.json +1 -1
- package/examples/function/ensure /"on stop/" code is executed.json" +1 -1
- package/examples/function/function and module work together.json +1 -1
- package/examples/function/handle corrupt code.json +1 -1
- package/examples/function/set node context.json +1 -1
- package/examples/function/support timeout setting.json +1 -1
- package/examples/function/supports completed node.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/set content type.json +1 -1
- package/examples/http/support query string on get request.json +1 -1
- package/examples/inject/repeat interval.json +1 -1
- package/examples/inject/trigger after - does not trigger.json +1 -1
- package/examples/inject/unsupported JSONata function.json +1 -1
- package/examples/join/manual config with count & nested property name.json +1 -1
- package/examples/json/parse example json content.json +1 -1
- package/examples/json/raise exception if content not valid.json +1 -1
- package/examples/json/support prettify json content.json +1 -1
- package/examples/link nodes/across flow tabs.json +1 -1
- package/examples/link nodes/cascading link calls.json +1 -1
- package/examples/markdown/allow for inline html.json +1 -1
- package/examples/markdown/convert markdown to html.json +1 -1
- package/examples/markdown/support code block.json +1 -1
- package/examples/mqtt/auto-(re)connect.json +1 -1
- package/examples/range/basic examples.json +1 -1
- package/examples/split/Array type.json +1 -1
- package/examples/split/binary type.json +1 -1
- package/examples/split/work with binary data as string data (ered).json +1 -0
- package/examples/split/work with binary data as string data (nred).json +1 -0
- package/examples/statemachine/exception if no action to perform.json +1 -1
- package/examples/status/basic working version.json +1 -1
- package/examples/status/only one message per status value.json +1 -1
- package/examples/switch/JSONata undefined value & exceptions.json +1 -1
- package/examples/switch/post debug on JSONata exception.json +1 -1
- package/examples/switch/raise exception if JSONata has exception.json +1 -1
- package/examples/tcp/Bad value on output port (3425).json +1 -1
- package/examples/tcp/multiple tcp in connectors (1194).json +1 -1
- package/examples/template/support mustache template.json +1 -1
- package/nodes/ut-assert-debug.js +239 -2
- package/package.json +3 -2
- package/plugins/sidebar.html +79 -13
- package/priv/testdata/helloworld.txt +1 -0
- package/priv/testdata/test.json +126 -0
- package/examples/.core/assert values ignores failures if requested.json +0 -1
- package/examples/debug/handling of Jsonata expressions.json +0 -1
- package/examples/debug/type hadling of JSONata reslults (ered).json +0 -1
- package/examples/debug/type hadling of JSONata reslults (node-red).json +0 -1
- package/examples/exec/handle multiple process at once.json +0 -1
- package/examples/exec/support timeout specification.json +0 -1
- package/examples/exec/synchronised execution.json +0 -1
- package/examples/split/work with binary data as string data.json +0 -1
- /package/examples/comment/{what is there to test?.json → what is there to test-.json} +0 -0
|
@@ -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":248,"y":287,"wires":[["1c4ecf7d781bf986"]]},{"id":"6828ebee7c35e67c","type":"http response","z":"f38603a59963386c","name":"","statusCode":"200","headers":{},"x":673,"y":269.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":482,"y":225.75,"wires":[["6828ebee7c35e67c","924fb7de3244c1fd"]]},{"id":"56e1b0bcffdf1790","type":"http request","z":"f38603a59963386c","name":"","method":"GET","ret":"obj","paytoqs":"query","url":"
|
|
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":248,"y":287,"wires":[["1c4ecf7d781bf986"]]},{"id":"6828ebee7c35e67c","type":"http response","z":"f38603a59963386c","name":"","statusCode":"200","headers":{},"x":673,"y":269.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":482,"y":225.75,"wires":[["6828ebee7c35e67c","924fb7de3244c1fd"]]},{"id":"56e1b0bcffdf1790","type":"http request","z":"f38603a59963386c","name":"","method":"GET","ret":"obj","paytoqs":"query","url":"${host}/f38603a59963386c/data","tls":"83cd62fbf15a01f3","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":461,"y":430,"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":291,"y":450,"wires":[["56e1b0bcffdf1790"]]},{"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":701,"y":404.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":752,"y":92.5,"wires":[[]]},{"id":"924fb7de3244c1fd","type":"json","z":"f38603a59963386c","name":"","property":"payload","action":"","pretty":false,"x":581,"y":153,"wires":[["ab83480bcca60e6d"]]},{"id":"83cd62fbf15a01f3","type":"tls-config","name":"","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":"http://localhost:8080/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":"eql","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":"eql","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":"eql","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":"","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":"eql","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":"eql","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":"eql","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":"","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":"","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":"","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":"","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":"","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":"","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":"eql","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":"eql","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":"","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":"http://localhost:8080/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":"eql","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":"eql","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":"eql","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":"","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":"eql","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":"eql","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":"eql","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":"","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":"","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":"","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":"","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":"","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":"","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":"eql","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":"eql","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":"","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":2097.5,"y":843.2142857142858,"wires":[["e3409b52fea4eebb"]]}]
|
|
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 +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":267,"y":423,"w":
|
|
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":267,"y":423,"w":745,"h":214.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":"${host}/ae8a9b0bbbaff447/data","tls":"83cd62fbf15a01f3","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":569,"y":335,"wires":[["b6250f72b6dbfa26"]]},{"id":"68674bd9ceb7a860","type":"inject","z":"ae8a9b0bbbaff447","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"{ \"payload\" : \"payload\" }","payloadType":"json","x":356,"y":275,"wires":[["69cd3f2398499062"]]},{"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":833,"y":266,"wires":[[]]},{"id":"de1f92619c0a6653","type":"http request","z":"ae8a9b0bbbaff447","g":"de5f1e7715857c51","name":"","method":"GET","ret":"obj","paytoqs":"query","url":"${host}/ae8a9b0bbbaff447/data","tls":"83cd62fbf15a01f3","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":363,"y":464,"wires":[["de1f92619c0a6653"]]},{"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":"83cd62fbf15a01f3","type":"tls-config","name":"","cert":"","key":"","p12":"","p12name":"","ca":"","certname":"","keyname":"","caname":"","servername":"","verifyservercert":false,"alpnprotocol":"","certEnv":"","keyEnv":"","caEnv":""}]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"id":"20eeaf41372f7b17","type":"tab","label":"[inject] repeat interval","disabled":false,"info":"Ensure that the repeat functionality of the inject node is working.\n","env":[{"name":"ERED_TIMEOUT","value":"5","type":"num"},{"name":"ERED_NOT_EUNIT","value":"true","type":"bool"}]},{"id":"bf343c186aae3902","type":"inject","z":"20eeaf41372f7b17","name":"","props":[{"p":"payload"}],"repeat":"1","crontab":"","once":false,"onceDelay":"0.5","topic":"","payload":"","payloadType":"date","x":714,"y":597,"wires":[["1491364b8fe993d5"]]},{"id":"1491364b8fe993d5","type":"ut-assert-success","z":"20eeaf41372f7b17","name":"","count":"5","x":949,"y":733,"wires":[]}]
|
|
1
|
+
[{"id":"20eeaf41372f7b17","type":"tab","label":"[inject] repeat interval","disabled":false,"info":"Ensure that the repeat functionality of the inject node is working.\n","env":[{"name":"ERED_TIMEOUT","value":"5","type":"num"},{"name":"ERED_NOT_EUNIT","value":"true","type":"bool"},{"name":"NRED_TIMEOUT","value":"6","type":"num"}]},{"id":"bf343c186aae3902","type":"inject","z":"20eeaf41372f7b17","name":"","props":[{"p":"payload"}],"repeat":"1","crontab":"","once":false,"onceDelay":"0.5","topic":"","payload":"","payloadType":"date","x":714,"y":597,"wires":[["1491364b8fe993d5"]]},{"id":"1491364b8fe993d5","type":"ut-assert-success","z":"20eeaf41372f7b17","name":"","msglimit":">=","count":"5","x":949,"y":733,"wires":[]}]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"id":"1ace9e051618db79","type":"tab","label":"[inject] trigger after - does not trigger","disabled":false,"info":"## Inject trigger once fails\n\nbecause the test times out first.","env":[{"name":"ERED_TIMEOUT","value":"1","type":"num"}]},{"id":"b621b246f7700702","type":"inject","z":"1ace9e051618db79","name":"defaults to 0.1","props":[{"p":"payload"}],"repeat":"","crontab":"","once":true,"onceDelay":"3","topic":"","payload":"0.1 is default","payloadType":"str","x":371,"y":296,"wires":[["4d59ac65861fcfa1","d330f689df493d76"]]},{"id":"4d59ac65861fcfa1","type":"ut-assert-values","z":"1ace9e051618db79","name":"","ignore_failure_if_succeed":false,"rules":[{"t":"eql","p":"payload","pt":"msg","to":"0.1 is default","tot":"str"}],"x":666,"y":296,"wires":[[]]},{"id":"d330f689df493d76","type":"ut-assert-success","z":"1ace9e051618db79","name":"test times out, only one message","count":"1","x":678,"y":375,"wires":[]}]
|
|
1
|
+
[{"id":"1ace9e051618db79","type":"tab","label":"[inject] trigger after - does not trigger","disabled":false,"info":"## Inject trigger once fails\n\nbecause the test times out first.\n\n## Node-RED testing\n\nTimeout doesn't really work with Node-RED testing, so pending test.","env":[{"name":"ERED_TIMEOUT","value":"1","type":"num"},{"name":"NRED_TIMEOUT","value":"1","type":"num"},{"name":"NRED_PENDING","value":"true","type":"bool"}]},{"id":"b621b246f7700702","type":"inject","z":"1ace9e051618db79","name":"defaults to 0.1","props":[{"p":"payload"}],"repeat":"","crontab":"","once":true,"onceDelay":"3","topic":"","payload":"0.1 is default","payloadType":"str","x":371,"y":296,"wires":[["4d59ac65861fcfa1","d330f689df493d76"]]},{"id":"4d59ac65861fcfa1","type":"ut-assert-values","z":"1ace9e051618db79","name":"","ignore_failure_if_succeed":false,"rules":[{"t":"eql","p":"payload","pt":"msg","to":"0.1 is default","tot":"str"}],"x":666,"y":296,"wires":[[]]},{"id":"d330f689df493d76","type":"ut-assert-success","z":"1ace9e051618db79","name":"test times out, only one message","msglimit":"==","count":"1","x":678,"y":375,"wires":[]}]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"
|
|
1
|
+
[{"id":"0cc95e44532c14ec","type":"tab","label":"[inject] unsupported JSONata function","disabled":false,"info":"Ensure that unsupported functions don't crash the process and are instead pushed out to the debug log.","env":[]},{"id":"95c19d8bc208f282","type":"group","z":"0cc95e44532c14ec","name":"exception is raised and captured, no message is generated by inject node","style":{"label":true},"nodes":["1bf09e3d2cebe0d7","8a7407c5a476617f","3e849ab6c6bee761","d02e47bf421d74ac","5dd119b3c4a92c78","4b6cf03dc32f937e"],"x":123,"y":166,"w":830,"h":240.5},{"id":"442ef567ebbd92af","type":"group","z":"0cc95e44532c14ec","name":"exception is raised but not captured, debug message. Also no message is generated by the inject node.","style":{"label":true},"nodes":["650d8bbc3d9dc0c2","ad5087bbf2439079","478138fefcd2b049","3acf1a7f7c4a7f92"],"x":115,"y":474.5,"w":871,"h":143},{"id":"1bf09e3d2cebe0d7","type":"inject","z":"0cc95e44532c14ec","g":"95c19d8bc208f282","name":"","props":[{"p":"topic","v":"1 - $fromMillis()","vt":"jsonata"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":219,"y":365,"wires":[["8a7407c5a476617f"]]},{"id":"8a7407c5a476617f","type":"ut-assert-failure","z":"0cc95e44532c14ec","g":"95c19d8bc208f282","name":"","x":621,"y":365.5,"wires":[]},{"id":"3e849ab6c6bee761","type":"catch","z":"0cc95e44532c14ec","g":"95c19d8bc208f282","name":"","scope":["1bf09e3d2cebe0d7"],"uncaught":false,"x":218,"y":316,"wires":[["d02e47bf421d74ac"]]},{"id":"d02e47bf421d74ac","type":"ut-assert-success","z":"0cc95e44532c14ec","g":"95c19d8bc208f282","name":"","count":1,"x":494,"y":210.5,"wires":[]},{"id":"650d8bbc3d9dc0c2","type":"inject","z":"0cc95e44532c14ec","g":"442ef567ebbd92af","name":"","props":[{"p":"topic","v":"1 - $fromMillis()","vt":"jsonata"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":211,"y":515.5,"wires":[["ad5087bbf2439079"]]},{"id":"ad5087bbf2439079","type":"ut-assert-failure","z":"0cc95e44532c14ec","g":"442ef567ebbd92af","name":"","x":729,"y":516,"wires":[]},{"id":"478138fefcd2b049","type":"ut-assert-debug","z":"0cc95e44532c14ec","g":"442ef567ebbd92af","name":"","scope":["650d8bbc3d9dc0c2"],"nodeid":"650d8bbc3d9dc0c2","msgtype":"error","inverse":false,"x":464,"y":576.5,"wires":[["3acf1a7f7c4a7f92"]]},{"id":"5dd119b3c4a92c78","type":"ut-assert-debug","z":"0cc95e44532c14ec","g":"95c19d8bc208f282","name":"","scope":["1bf09e3d2cebe0d7"],"nodeid":"1bf09e3d2cebe0d7","msgtype":"normal","inverse":true,"x":595,"y":285.5,"wires":[["4b6cf03dc32f937e"]]},{"id":"4b6cf03dc32f937e","type":"ut-assert-failure","z":"0cc95e44532c14ec","g":"95c19d8bc208f282","name":"","x":857,"y":207,"wires":[]},{"id":"3acf1a7f7c4a7f92","type":"ut-assert-values","z":"0cc95e44532c14ec","g":"442ef567ebbd92af","name":"","ignore_failure_if_succeed":false,"rules":[{"t":"eql","p":"data.type","pt":"msg","to":"inject","tot":"str"},{"t":"eql","p":"data['level']","pt":"msg","to":"20","tot":"num"},{"t":"eql","p":"data.id","pt":"msg","to":"650d8bbc3d9dc0c2","tot":"str"}],"x":880,"y":576.5,"wires":[[]]}]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"id":"084fb0fc954b7156","type":"tab","label":"[join] manual config with count & nested property name","disabled":false,"info":"Join should also handled nested property names.","env":[]},{"id":"8948c193b946b0ff","type":"junction","z":"084fb0fc954b7156","x":263.76970052719116,"y":543.6267687082291,"wires":[["782f7d5e5d547b63"]]},{"id":"bc4077f4dd04d17e","type":"inject","z":"084fb0fc954b7156","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"[{\"status\":{\"text\":1}},{\"status\":{\"text\":2}},{\"status\":{\"text\":3}},{\"status\":{\"text\":4}}]","payloadType":"json","x":95,"y":388,"wires":[["8948c193b946b0ff"]]},{"id":"782f7d5e5d547b63","type":"split","z":"084fb0fc954b7156","name":"","splt":"\\n","spltType":"str","arraySplt":1,"arraySpltType":"len","stream":false,"addname":"","property":"payload","x":416,"y":319,"wires":[["703b790b65d4dc3f","cc0351c3ea4d9378"]]},{"id":"703b790b65d4dc3f","type":"join","z":"084fb0fc954b7156","name":"","mode":"custom","build":"array","property":"payload.status.text","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","useparts":false,"accumulate":false,"timeout":"","count":"4","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"","reduceFixup":"","x":657,"y":480,"wires":[["bc6a6f437c51bc0a"]]},{"id":"cc0351c3ea4d9378","type":"ut-assert-success","z":"084fb0fc954b7156","name":"","count":"4","x":904.5,"y":321.5,"wires":[]},{"id":"bc6a6f437c51bc0a","type":"ut-assert-values","z":"084fb0fc954b7156","name":"","ignore_failure_if_succeed":false,"rules":[{"t":"eql","p":"payload","pt":"msg","to":"[1,2,3,4]","tot":"json"}],"x":896,"y":437.5,"wires":[[]]}]
|
|
1
|
+
[{"id":"084fb0fc954b7156","type":"tab","label":"[join] manual config with count & nested property name","disabled":false,"info":"Join should also handled nested property names.","env":[]},{"id":"8948c193b946b0ff","type":"junction","z":"084fb0fc954b7156","x":263.76970052719116,"y":543.6267687082291,"wires":[["782f7d5e5d547b63"]]},{"id":"bc4077f4dd04d17e","type":"inject","z":"084fb0fc954b7156","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"[{\"status\":{\"text\":1}},{\"status\":{\"text\":2}},{\"status\":{\"text\":3}},{\"status\":{\"text\":4}}]","payloadType":"json","x":95,"y":388,"wires":[["8948c193b946b0ff"]]},{"id":"782f7d5e5d547b63","type":"split","z":"084fb0fc954b7156","name":"","splt":"\\n","spltType":"str","arraySplt":1,"arraySpltType":"len","stream":false,"addname":"","property":"payload","x":416,"y":319,"wires":[["703b790b65d4dc3f","cc0351c3ea4d9378"]]},{"id":"703b790b65d4dc3f","type":"join","z":"084fb0fc954b7156","name":"","mode":"custom","build":"array","property":"payload.status.text","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","useparts":false,"accumulate":false,"timeout":"","count":"4","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"","reduceFixup":"","x":657,"y":480,"wires":[["bc6a6f437c51bc0a"]]},{"id":"cc0351c3ea4d9378","type":"ut-assert-success","z":"084fb0fc954b7156","name":"","count":"4","x":904.5,"y":321.5,"wires":[]},{"id":"bc6a6f437c51bc0a","type":"ut-assert-values","z":"084fb0fc954b7156","name":"","ignore_failure_if_succeed":false,"rules":[{"t":"eql","p":"payload","pt":"msg","to":"{\"status\":{\"text\":[1,2,3,4]}}","tot":"json"}],"x":896,"y":437.5,"wires":[[]]}]
|
|
@@ -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"}]},{"id":"453848d471cdd83d","type":"inject","z":"c4690c0a085d6ef5","name":"","props":[{"p":"filename","v":"${priv}/testdata/test.json","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":253,"y":466,"wires":[["962cb9fb663ba64d"]]},{"id":"962cb9fb663ba64d","type":"file in","z":"c4690c0a085d6ef5","name":"","filename":"filename","filenameType":"msg","format":"utf8","chunk":false,"sendError":false,"encoding":"none","allProps":false,"x":427,"y":466,"wires":[["7778fb3372eda641","f3d21b6c8e431f9f"]]},{"id":"7778fb3372eda641","type":"json","z":"c4690c0a085d6ef5","name":"","property":"payload","action":"obj","pretty":false,"x":591,"y":466,"wires":[["c1724fc6ab23c0c4"]]},{"id":"f3d21b6c8e431f9f","type":"ut-assert-success","z":"c4690c0a085d6ef5","name":"","count":1,"x":718,"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":1051,"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":792,"y":466,"wires":[["b1a7846c21cceac0","4ae89e9e828d9ebc"]]},{"id":"b1a7846c21cceac0","type":"ut-assert-values","z":"c4690c0a085d6ef5","name":"","rules":[{"t":"eql","p":"payload","pt":"msg","to":"8","tot":"num"}],"x":1061,"y":466,"wires":[[]]}]
|
|
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":[{"p":"filename","v":"${priv}/testdata/test.json","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":253,"y":466,"wires":[["962cb9fb663ba64d"]]},{"id":"962cb9fb663ba64d","type":"file in","z":"c4690c0a085d6ef5","name":"","filename":"filename","filenameType":"msg","format":"utf8","chunk":false,"sendError":false,"encoding":"none","allProps":false,"x":427,"y":466,"wires":[["7778fb3372eda641","f3d21b6c8e431f9f"]]},{"id":"7778fb3372eda641","type":"json","z":"c4690c0a085d6ef5","name":"","property":"payload","action":"obj","pretty":false,"x":591,"y":466,"wires":[["c1724fc6ab23c0c4"]]},{"id":"f3d21b6c8e431f9f","type":"ut-assert-success","z":"c4690c0a085d6ef5","name":"","count":1,"x":718,"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":1051,"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":792,"y":466,"wires":[["b1a7846c21cceac0","4ae89e9e828d9ebc"]]},{"id":"b1a7846c21cceac0","type":"ut-assert-values","z":"c4690c0a085d6ef5","name":"","rules":[{"t":"eql","p":"payload","pt":"msg","to":"8","tot":"num"}],"x":1061,"y":466,"wires":[[]]}]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"
|
|
1
|
+
[{"id":"597ee2a683d9908f","type":"tab","label":"[json] raise exception if content not valid","disabled":false,"info":"In this case the json node raises and exception and does not propogate the message further.\n\nError message isn't defined so use a bit of imagination to make it sound useful!","env":[{"name":"ERED_PENDING","value":"false","type":"bool"},{"name":"ERED_ONLY","value":"true","type":"bool"}]},{"id":"4dbd0f7712eb9163","type":"group","z":"597ee2a683d9908f","name":"with catch node","style":{"label":true},"nodes":["9129e7b9383dead9","a1f180d31364499f","0e7c595d0385aab1","88ab83684f23950e","c712bcadacd8b244","289b1e68bc0aa351"],"x":197,"y":220,"w":1055,"h":308.5},{"id":"af6d16c1fc56ad30","type":"group","z":"597ee2a683d9908f","name":"with catch node","style":{"label":true},"nodes":["9e57eb53f1559cef","9219ceac570a5289","ce0f8e5ab2646ac9","3f3d3c96c3ac12d1"],"x":195,"y":613.5,"w":936,"h":318},{"id":"9129e7b9383dead9","type":"inject","z":"597ee2a683d9908f","g":"4dbd0f7712eb9163","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":303,"y":261,"wires":[["a1f180d31364499f"]]},{"id":"a1f180d31364499f","type":"json","z":"597ee2a683d9908f","g":"4dbd0f7712eb9163","name":"","property":"payload","action":"","pretty":true,"x":605,"y":487.5,"wires":[[]]},{"id":"0e7c595d0385aab1","type":"catch","z":"597ee2a683d9908f","g":"4dbd0f7712eb9163","name":"","scope":["a1f180d31364499f"],"uncaught":false,"x":593,"y":270,"wires":[["88ab83684f23950e"]]},{"id":"88ab83684f23950e","type":"ut-assert-success","z":"597ee2a683d9908f","g":"4dbd0f7712eb9163","name":"","count":1,"x":923,"y":270,"wires":[]},{"id":"9e57eb53f1559cef","type":"inject","z":"597ee2a683d9908f","g":"af6d16c1fc56ad30","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":301,"y":664,"wires":[["9219ceac570a5289"]]},{"id":"9219ceac570a5289","type":"json","z":"597ee2a683d9908f","g":"af6d16c1fc56ad30","name":"","property":"payload","action":"","pretty":true,"x":603,"y":890.5,"wires":[[]]},{"id":"ce0f8e5ab2646ac9","type":"ut-assert-debug","z":"597ee2a683d9908f","g":"af6d16c1fc56ad30","name":"","scope":["9219ceac570a5289"],"nodeid":"9219ceac570a5289","msgtype":"error","inverse":false,"x":668,"y":791.5,"wires":[["3f3d3c96c3ac12d1"]]},{"id":"c712bcadacd8b244","type":"ut-assert-debug","z":"597ee2a683d9908f","g":"4dbd0f7712eb9163","name":"","scope":["a1f180d31364499f"],"nodeid":"a1f180d31364499f","msgtype":"error","inverse":true,"x":757,"y":385,"wires":[["289b1e68bc0aa351"]]},{"id":"289b1e68bc0aa351","type":"ut-assert-failure","z":"597ee2a683d9908f","g":"4dbd0f7712eb9163","name":"","x":1156,"y":384,"wires":[]},{"id":"3f3d3c96c3ac12d1","type":"ut-assert-values","z":"597ee2a683d9908f","g":"af6d16c1fc56ad30","name":"","ignore_failure_if_succeed":false,"rules":[{"t":"eql","p":"debug.nodeid","pt":"msg","to":"9219ceac570a5289","tot":"str"},{"t":"eql","p":"data['level']","pt":"msg","to":"20","tot":"num"},{"t":"mth","p":"data.msg.error_msg","pt":"msg","to":"Exception: error:function_clause Stack","tot":"str"}],"x":1025,"y":654.5,"wires":[[]]}]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"id":"0c61e2d737ba7a38","type":"tab","label":"[json] support prettify json content","disabled":false,"info":"The json node has a pretify option that should be supported.","env":[{"name":"ERED_PENDING","value":"true","type":"bool"}]},{"id":"bcc8414520e8a853","type":"inject","z":"0c61e2d737ba7a38","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":456,"y":371,"wires":[["6cc7bb10677c1e32","da74d839e5caa323"]]},{"id":"6cc7bb10677c1e32","type":"json","z":"0c61e2d737ba7a38","name":"","property":"payload","action":"","pretty":true,"x":653,"y":463.5,"wires":[[]]},{"id":"da74d839e5caa323","type":"ut-assert-failure","z":"0c61e2d737ba7a38","name":"","x":693,"y":303.5,"wires":[]}]
|
|
1
|
+
[{"id":"0c61e2d737ba7a38","type":"tab","label":"[json] support prettify json content","disabled":false,"info":"The json node has a pretify option that should be supported.","env":[{"name":"ERED_PENDING","value":"true","type":"bool"},{"name":"NRED_PENDING","value":"true","type":"bool"}]},{"id":"bcc8414520e8a853","type":"inject","z":"0c61e2d737ba7a38","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":456,"y":371,"wires":[["6cc7bb10677c1e32","da74d839e5caa323"]]},{"id":"6cc7bb10677c1e32","type":"json","z":"0c61e2d737ba7a38","name":"","property":"payload","action":"","pretty":true,"x":653,"y":463.5,"wires":[[]]},{"id":"da74d839e5caa323","type":"ut-assert-failure","z":"0c61e2d737ba7a38","name":"","x":693,"y":303.5,"wires":[]}]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"id":"048a36525238b2e7","type":"tab","label":"[link nodes] across flow tabs","disabled":false,"info":"Need a test for doing this but that will required two flow tabs.\n\nIronically this does already work since the [red-erik.org](https://red-erik.org) websites uses this feature.\n\nTest now works since the FlowHubPull node allows flows to be loaded at runtime.","env":[{"name":"ERED_PENDING","type":"bool","value":"
|
|
1
|
+
[{"id":"048a36525238b2e7","type":"tab","label":"[link nodes] across flow tabs","disabled":false,"info":"Need a test for doing this but that will required two flow tabs.\n\nIronically this does already work since the [red-erik.org](https://red-erik.org) websites uses this feature.\n\nTest now works since the FlowHubPull node allows flows to be loaded at runtime.","env":[{"name":"ERED_PENDING","value":"true","type":"bool"},{"name":"NRED_PENDING","value":"true","type":"bool"}]},{"id":"1736749eac568157","type":"FlowHubPull","z":"048a36525238b2e7","name":"","notab":false,"flowid":"","flowname":"","flowrevision":"","x":618.8889541625977,"y":499.4444465637207,"wires":[["f5017e11ebad3195"],[]]},{"id":"5fde1aeb3d70395d","type":"inject","z":"048a36525238b2e7","name":"","props":[{"p":"flowid","v":"641ddaab2819c61d","vt":"str"},{"p":"install_flow","v":"true","vt":"bool"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":463.33333587646484,"y":200.00003910064697,"wires":[["1736749eac568157"]]},{"id":"1d083a42ca0d2638","type":"link call","z":"048a36525238b2e7","name":"","links":[],"linkType":"static","timeout":"30","x":898.8889236450195,"y":345.5555019378662,"wires":[["c470197fdcdecf6e"]]},{"id":"c470197fdcdecf6e","type":"ut-assert-values","z":"048a36525238b2e7","name":"","rules":[{"p":"_visited_link_flow","pt":"msg","t":"eql","to":"true","tot":"bool"}],"x":1095.5556640625,"y":497.7778015136719,"wires":[[]]},{"id":"f5017e11ebad3195","type":"delay","z":"048a36525238b2e7","name":"","pauseType":"delay","timeout":"1","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":768.8889236450195,"y":423.3333282470703,"wires":[["1d083a42ca0d2638"]]}]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"id":"8a627c9bfe3b4aff","type":"tab","label":"[link nodes] cascading link calls","disabled":false,"info":"the _linkSource array must be maintained by link returns and link calls - it's a stack that needs maintaining.\n\nHere the point is that the _linkSource is an array that acts as a stack so that nested link calls are supported by the implementation.\n\n","env":[{"name":"ERED_TIMEOUT","value":"12","type":"num"}]},{"id":"d3683250b7601cd7","type":"link in","z":"8a627c9bfe3b4aff","name":"[lnktst] level 1","links":[],"x":244.5,"y":631.4998779296875,"wires":[["74d88ddb4b6f9a24"]]},{"id":"dd42ee081ce272a9","type":"link call","z":"8a627c9bfe3b4aff","name":"","links":["d3683250b7601cd7"],"linkType":"static","timeout":"30","x":491.5,"y":380.9998779296875,"wires":[["4fb685fc96c8a1c2"]]},{"id":"d229754f8ef59018","type":"link in","z":"8a627c9bfe3b4aff","name":"[lnktst] level 2","links":[],"x":339.5,"y":742.9998779296875,"wires":[["91316f510a61a45b"]]},{"id":"4923efe0d707de2b","type":"link in","z":"8a627c9bfe3b4aff","name":"[lnktst] level 3","links":[],"x":428.5,"y":856.4998779296875,"wires":[["0c352cecced97685"]]},{"id":"fdf66c6062ef4dd2","type":"link in","z":"8a627c9bfe3b4aff","name":"[lnktst] level 4","links":[],"x":492.5,"y":970.9998779296875,"wires":[["c1594eb3ca8cb66f"]]},{"id":"74d88ddb4b6f9a24","type":"delay","z":"8a627c9bfe3b4aff","name":"","pauseType":"delay","timeout":"750","timeoutUnits":"milliseconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":431.5,"y":631.4998779296875,"wires":[["6f8fbae1dc44fba4"]]},{"id":"91316f510a61a45b","type":"delay","z":"8a627c9bfe3b4aff","name":"","pauseType":"delay","timeout":"750","timeoutUnits":"milliseconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":530.5,"y":742.9998779296875,"wires":[["77eb64dfc70e4e47"]]},{"id":"0c352cecced97685","type":"delay","z":"8a627c9bfe3b4aff","name":"","pauseType":"delay","timeout":"750","timeoutUnits":"milliseconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":617.5,"y":856.4998779296875,"wires":[["8f4af57274cd230f"]]},{"id":"c1594eb3ca8cb66f","type":"delay","z":"8a627c9bfe3b4aff","name":"","pauseType":"delay","timeout":"750","timeoutUnits":"milliseconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":665.5,"y":970.9998779296875,"wires":[["f3125f01cf9eb499"]]},{"id":"eede0c68da8c1ace","type":"inject","z":"8a627c9bfe3b4aff","name":"trigger","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"this is the payload Wow!","payloadType":"str","x":118.5,"y":378.9998779296875,"wires":[["dd42ee081ce272a9"]]},{"id":"6f8fbae1dc44fba4","type":"link call","z":"8a627c9bfe3b4aff","name":"","links":["d229754f8ef59018"],"linkType":"static","timeout":"30","x":676.5,"y":631.4998779296875,"wires":[["1ecb404b2307403b"]]},{"id":"77eb64dfc70e4e47","type":"link call","z":"8a627c9bfe3b4aff","name":"","links":["4923efe0d707de2b"],"linkType":"static","timeout":"30","x":749.5,"y":742.9998779296875,"wires":[["075526941d6963be"]]},{"id":"8f4af57274cd230f","type":"link call","z":"8a627c9bfe3b4aff","name":"","links":["fdf66c6062ef4dd2"],"linkType":"static","timeout":"30","x":838.5,"y":856.4998779296875,"wires":[["be9a9202ee56f3fb"]]},{"id":"f3125f01cf9eb499","type":"change","z":"8a627c9bfe3b4aff","name":"","rules":[{"p":"level4","pt":"msg","t":"set","to":"reached","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1014.5,"y":970.9998779296875,"wires":[["fa3b148be88392b5"]]},{"id":"fa3b148be88392b5","type":"link out","z":"8a627c9bfe3b4aff","name":"link out 133","mode":"return","links":[],"x":1527.5,"y":969.9998779296875,"wires":[]},{"id":"a68af14030de4576","type":"change","z":"8a627c9bfe3b4aff","name":"","rules":[{"p":"level3","pt":"msg","t":"set","to":"reached","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1276.5,"y":856.4998779296875,"wires":[["fa3b148be88392b5"]]},{"id":"f61afe5ae0c4978f","type":"change","z":"8a627c9bfe3b4aff","name":"","rules":[{"p":"level2","pt":"msg","t":"set","to":"reached","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1309.5,"y":742.9998779296875,"wires":[["fa3b148be88392b5"]]},{"id":"3a86bbca95f73d28","type":"change","z":"8a627c9bfe3b4aff","name":"","rules":[{"p":"level1","pt":"msg","t":"set","to":"reached","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1398.5,"y":631.4998779296875,"wires":[["fa3b148be88392b5"]]},{"id":"be9a9202ee56f3fb","type":"delay","z":"8a627c9bfe3b4aff","name":"","pauseType":"delay","timeout":"750","timeoutUnits":"milliseconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":1063.5,"y":856.4998779296875,"wires":[["a68af14030de4576"]]},{"id":"075526941d6963be","type":"delay","z":"8a627c9bfe3b4aff","name":"","pauseType":"delay","timeout":"750","timeoutUnits":"milliseconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":1112.5,"y":742.9998779296875,"wires":[["f61afe5ae0c4978f"]]},{"id":"1ecb404b2307403b","type":"delay","z":"8a627c9bfe3b4aff","name":"","pauseType":"delay","timeout":"750","timeoutUnits":"milliseconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":1163.5,"y":631.4998779296875,"wires":[["3a86bbca95f73d28"]]},{"id":"4fb685fc96c8a1c2","type":"delay","z":"8a627c9bfe3b4aff","name":"","pauseType":"delay","timeout":"750","timeoutUnits":"milliseconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":1267.5,"y":380.9998779296875,"wires":[["f55e05a40f9b239f","e2b8866af2cce742"]]},{"id":"f55e05a40f9b239f","type":"ut-assert-success","z":"8a627c9bfe3b4aff","name":"","count":1,"x":1492,"y":344,"wires":[]},{"id":"e2b8866af2cce742","type":"ut-assert-values","z":"8a627c9bfe3b4aff","name":"","rules":[{"p":"payload","pt":"msg","t":"eql","to":"this is the payload Wow!","tot":"str"},{"p":"level1","pt":"msg","t":"eql","to":"reached","tot":"str"},{"p":"level2","pt":"msg","t":"eql","to":"reached","tot":"str"},{"p":"level3","pt":"msg","t":"eql","to":"reached","tot":"str"},{"p":"level4","pt":"msg","t":"eql","to":"reached","tot":"str"}],"x":1498,"y":420.5,"wires":[[]]}]
|
|
1
|
+
[{"id":"8a627c9bfe3b4aff","type":"tab","label":"[link nodes] cascading link calls","disabled":false,"info":"the _linkSource array must be maintained by link returns and link calls - it's a stack that needs maintaining.\n\nHere the point is that the _linkSource is an array that acts as a stack so that nested link calls are supported by the implementation.\n\n","env":[{"name":"ERED_TIMEOUT","value":"12","type":"num"},{"name":"NRED_TIMEOUT","value":"12","type":"num"}]},{"id":"d3683250b7601cd7","type":"link in","z":"8a627c9bfe3b4aff","name":"[lnktst] level 1","links":[],"x":244.5,"y":631.4998779296875,"wires":[["74d88ddb4b6f9a24"]]},{"id":"dd42ee081ce272a9","type":"link call","z":"8a627c9bfe3b4aff","name":"","links":["d3683250b7601cd7"],"linkType":"static","timeout":"30","x":491.5,"y":380.9998779296875,"wires":[["4fb685fc96c8a1c2"]]},{"id":"d229754f8ef59018","type":"link in","z":"8a627c9bfe3b4aff","name":"[lnktst] level 2","links":[],"x":339.5,"y":742.9998779296875,"wires":[["91316f510a61a45b"]]},{"id":"4923efe0d707de2b","type":"link in","z":"8a627c9bfe3b4aff","name":"[lnktst] level 3","links":[],"x":428.5,"y":856.4998779296875,"wires":[["0c352cecced97685"]]},{"id":"fdf66c6062ef4dd2","type":"link in","z":"8a627c9bfe3b4aff","name":"[lnktst] level 4","links":[],"x":492.5,"y":970.9998779296875,"wires":[["c1594eb3ca8cb66f"]]},{"id":"74d88ddb4b6f9a24","type":"delay","z":"8a627c9bfe3b4aff","name":"","pauseType":"delay","timeout":"750","timeoutUnits":"milliseconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":431.5,"y":631.4998779296875,"wires":[["6f8fbae1dc44fba4"]]},{"id":"91316f510a61a45b","type":"delay","z":"8a627c9bfe3b4aff","name":"","pauseType":"delay","timeout":"750","timeoutUnits":"milliseconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":530.5,"y":742.9998779296875,"wires":[["77eb64dfc70e4e47"]]},{"id":"0c352cecced97685","type":"delay","z":"8a627c9bfe3b4aff","name":"","pauseType":"delay","timeout":"750","timeoutUnits":"milliseconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":617.5,"y":856.4998779296875,"wires":[["8f4af57274cd230f"]]},{"id":"c1594eb3ca8cb66f","type":"delay","z":"8a627c9bfe3b4aff","name":"","pauseType":"delay","timeout":"750","timeoutUnits":"milliseconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":665.5,"y":970.9998779296875,"wires":[["f3125f01cf9eb499"]]},{"id":"eede0c68da8c1ace","type":"inject","z":"8a627c9bfe3b4aff","name":"trigger","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"this is the payload Wow!","payloadType":"str","x":118.5,"y":378.9998779296875,"wires":[["dd42ee081ce272a9"]]},{"id":"6f8fbae1dc44fba4","type":"link call","z":"8a627c9bfe3b4aff","name":"","links":["d229754f8ef59018"],"linkType":"static","timeout":"30","x":676.5,"y":631.4998779296875,"wires":[["1ecb404b2307403b"]]},{"id":"77eb64dfc70e4e47","type":"link call","z":"8a627c9bfe3b4aff","name":"","links":["4923efe0d707de2b"],"linkType":"static","timeout":"30","x":749.5,"y":742.9998779296875,"wires":[["075526941d6963be"]]},{"id":"8f4af57274cd230f","type":"link call","z":"8a627c9bfe3b4aff","name":"","links":["fdf66c6062ef4dd2"],"linkType":"static","timeout":"30","x":838.5,"y":856.4998779296875,"wires":[["be9a9202ee56f3fb"]]},{"id":"f3125f01cf9eb499","type":"change","z":"8a627c9bfe3b4aff","name":"","rules":[{"p":"level4","pt":"msg","t":"set","to":"reached","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1014.5,"y":970.9998779296875,"wires":[["fa3b148be88392b5"]]},{"id":"fa3b148be88392b5","type":"link out","z":"8a627c9bfe3b4aff","name":"link out 133","mode":"return","links":[],"x":1527.5,"y":969.9998779296875,"wires":[]},{"id":"a68af14030de4576","type":"change","z":"8a627c9bfe3b4aff","name":"","rules":[{"p":"level3","pt":"msg","t":"set","to":"reached","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1276.5,"y":856.4998779296875,"wires":[["fa3b148be88392b5"]]},{"id":"f61afe5ae0c4978f","type":"change","z":"8a627c9bfe3b4aff","name":"","rules":[{"p":"level2","pt":"msg","t":"set","to":"reached","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1309.5,"y":742.9998779296875,"wires":[["fa3b148be88392b5"]]},{"id":"3a86bbca95f73d28","type":"change","z":"8a627c9bfe3b4aff","name":"","rules":[{"p":"level1","pt":"msg","t":"set","to":"reached","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1398.5,"y":631.4998779296875,"wires":[["fa3b148be88392b5"]]},{"id":"be9a9202ee56f3fb","type":"delay","z":"8a627c9bfe3b4aff","name":"","pauseType":"delay","timeout":"750","timeoutUnits":"milliseconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":1063.5,"y":856.4998779296875,"wires":[["a68af14030de4576"]]},{"id":"075526941d6963be","type":"delay","z":"8a627c9bfe3b4aff","name":"","pauseType":"delay","timeout":"750","timeoutUnits":"milliseconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":1112.5,"y":742.9998779296875,"wires":[["f61afe5ae0c4978f"]]},{"id":"1ecb404b2307403b","type":"delay","z":"8a627c9bfe3b4aff","name":"","pauseType":"delay","timeout":"750","timeoutUnits":"milliseconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":1163.5,"y":631.4998779296875,"wires":[["3a86bbca95f73d28"]]},{"id":"4fb685fc96c8a1c2","type":"delay","z":"8a627c9bfe3b4aff","name":"","pauseType":"delay","timeout":"750","timeoutUnits":"milliseconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":1267.5,"y":380.9998779296875,"wires":[["f55e05a40f9b239f","e2b8866af2cce742"]]},{"id":"f55e05a40f9b239f","type":"ut-assert-success","z":"8a627c9bfe3b4aff","name":"","count":1,"x":1492,"y":344,"wires":[]},{"id":"e2b8866af2cce742","type":"ut-assert-values","z":"8a627c9bfe3b4aff","name":"","rules":[{"p":"payload","pt":"msg","t":"eql","to":"this is the payload Wow!","tot":"str"},{"p":"level1","pt":"msg","t":"eql","to":"reached","tot":"str"},{"p":"level2","pt":"msg","t":"eql","to":"reached","tot":"str"},{"p":"level3","pt":"msg","t":"eql","to":"reached","tot":"str"},{"p":"level4","pt":"msg","t":"eql","to":"reached","tot":"str"}],"x":1498,"y":420.5,"wires":[[]]}]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"id":"90c1ce90f8af227f","type":"tab","label":"[markdown] allow for inline html","disabled":false,"info":"","env":[]},{"id":"ade4aebe9981300d","type":"template","z":"90c1ce90f8af227f","name":"expected html content","field":"expected_payload","fieldType":"msg","format":"html","syntax":"mustache","template":"<h1
|
|
1
|
+
[{"id":"90c1ce90f8af227f","type":"tab","label":"[markdown] allow for inline html","disabled":false,"info":"","env":[]},{"id":"ade4aebe9981300d","type":"template","z":"90c1ce90f8af227f","name":"expected html content","field":"expected_payload","fieldType":"msg","format":"html","syntax":"mustache","template":"<h1>Hello</h1>\n<p>Does Earmark support inline HTML?</p>\n<center><b>I don't know</b></center>\n<p>But I will find out.</p>\n<h1>World</h1>\n<p>The end.</p>","output":"str","x":734,"y":502,"wires":[["f3685f3c644a87b8"]]},{"id":"ceef0885c9ed45f4","type":"markdown","z":"90c1ce90f8af227f","name":"","x":480,"y":502,"wires":[["ade4aebe9981300d"]]},{"id":"c1742fdddda43ca6","type":"ut-assert-values","z":"90c1ce90f8af227f","name":"","rules":[{"p":"payload","pt":"msg","t":"eql","to":"expected_payload","tot":"msg"}],"x":983,"y":354.75,"wires":[[]]},{"id":"c4982962b320d89d","type":"template","z":"90c1ce90f8af227f","name":"Markdown content","field":"payload","fieldType":"msg","format":"markdown","syntax":"mustache","template":"# Hello\n\nDoes Earmark support inline HTML?\n\n<center><b>I don't know</b></center>\n\nBut I will find out.\n\n# World\n\nThe end.","output":"str","x":280,"y":386.25,"wires":[["ceef0885c9ed45f4"]]},{"id":"66efb51a78f2897d","type":"inject","z":"90c1ce90f8af227f","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":85,"y":244.25,"wires":[["c4982962b320d89d"]]},{"id":"f3685f3c644a87b8","type":"change","z":"90c1ce90f8af227f","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"$trim($$.payload)","tot":"jsonata"},{"t":"set","p":"expected_payload","pt":"msg","to":"$trim($$.expected_payload)","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":867.7777938842773,"y":414.4444522857666,"wires":[["c1742fdddda43ca6"]]}]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"id":"789db0c14f72267f","type":"tab","label":"[markdown] convert markdown to html","disabled":false,"info":"","env":[]},{"id":"33ffccc4fd703cec","type":"markdown","z":"789db0c14f72267f","name":"","x":
|
|
1
|
+
[{"id":"789db0c14f72267f","type":"tab","label":"[markdown] convert markdown to html","disabled":false,"info":"","env":[]},{"id":"33ffccc4fd703cec","type":"markdown","z":"789db0c14f72267f","name":"","property":"payload","x":489,"y":400.75,"wires":[["08e40d6cc659a544"]]},{"id":"1e0192749d1e9b10","type":"inject","z":"789db0c14f72267f","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":104,"y":143,"wires":[["e58ccc463bd1a51b"]]},{"id":"e58ccc463bd1a51b","type":"template","z":"789db0c14f72267f","name":"Markdown content","field":"payload","fieldType":"msg","format":"markdown","syntax":"mustache","template":"# Hello\n\nWorld.\n\n## Example\n\nThis is an example of markdown code.\n\nMuch simpler than writing html.\n\nSome would argue that is why one should use Elixir instead of Erlang.\n\nTrue.\n\n## Human Cognitive Dissonance\n\nIs endless but not infinite.\n\n","output":"str","x":299,"y":285,"wires":[["33ffccc4fd703cec"]]},{"id":"df7139ebb77a4bcb","type":"ut-assert-values","z":"789db0c14f72267f","name":"","ignore_failure_if_succeed":false,"rules":[{"t":"eql","p":"payload","pt":"msg","to":"expected_payload","tot":"msg"}],"x":1002,"y":253.5,"wires":[[]]},{"id":"08e40d6cc659a544","type":"template","z":"789db0c14f72267f","name":"expected html content","field":"expected_payload","fieldType":"msg","format":"html","syntax":"mustache","template":"<h1>Hello</h1>\n<p>World.</p>\n<h2>Example</h2>\n<p>This is an example of markdown code.</p>\n<p>Much simpler than writing html.</p>\n<p>Some would argue that is why one should use Elixir instead of Erlang.</p>\n<p>True.</p>\n<h2>Human Cognitive Dissonance</h2>\n<p>Is endless but not infinite.</p>","output":"str","x":753,"y":400.75,"wires":[["85e711c492ece7b1"]]},{"id":"85e711c492ece7b1","type":"change","z":"789db0c14f72267f","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"$trim($$.payload)","tot":"jsonata"},{"t":"set","p":"expected_payload","pt":"msg","to":"$trim($$.expected_payload)","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":873.3333740234375,"y":340.0000305175781,"wires":[["df7139ebb77a4bcb"]]}]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"id":"ce75d24712238223","type":"tab","label":"[markdown] support code block","disabled":false,"info":"","env":[]},{"id":"99adae1b210a6769","type":"inject","z":"ce75d24712238223","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":150,"y":176,"wires":[["7c44e969726ef6a4"]]},{"id":"7c44e969726ef6a4","type":"template","z":"ce75d24712238223","name":"Markdown content","field":"payload","fieldType":"msg","format":"markdown","syntax":"mustache","template":"```\nCode block containing code.\n```\n","output":"str","x":345,"y":318,"wires":[["b8cf41f282d697f4"]]},{"id":"b8cf41f282d697f4","type":"markdown","z":"ce75d24712238223","name":"","x":545,"y":433.75,"wires":[["d6773775a7a8ead2"]]},{"id":"d6773775a7a8ead2","type":"template","z":"ce75d24712238223","name":"expected html content","field":"expected_payload","fieldType":"msg","format":"html","syntax":"mustache","template":"<pre><code>Code block containing code
|
|
1
|
+
[{"id":"ce75d24712238223","type":"tab","label":"[markdown] support code block","disabled":false,"info":"","env":[]},{"id":"99adae1b210a6769","type":"inject","z":"ce75d24712238223","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":150,"y":176,"wires":[["7c44e969726ef6a4"]]},{"id":"7c44e969726ef6a4","type":"template","z":"ce75d24712238223","name":"Markdown content","field":"payload","fieldType":"msg","format":"markdown","syntax":"mustache","template":"```\nCode block containing code.\n```\n","output":"str","x":345,"y":318,"wires":[["b8cf41f282d697f4"]]},{"id":"b8cf41f282d697f4","type":"markdown","z":"ce75d24712238223","name":"","x":545,"y":433.75,"wires":[["d6773775a7a8ead2"]]},{"id":"d6773775a7a8ead2","type":"template","z":"ce75d24712238223","name":"expected html content","field":"expected_payload","fieldType":"msg","format":"html","syntax":"mustache","template":"<pre><code>Code block containing code.\n</code></pre>","output":"str","x":799,"y":433.75,"wires":[["752bf85be47743f6"]]},{"id":"2d0cbb28bc26917e","type":"ut-assert-values","z":"ce75d24712238223","name":"","rules":[{"p":"payload","pt":"msg","t":"eql","to":"expected_payload","tot":"msg"}],"x":1048,"y":286.5,"wires":[[]]},{"id":"752bf85be47743f6","type":"change","z":"ce75d24712238223","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"$trim($$.payload)","tot":"jsonata"},{"t":"set","p":"expected_payload","pt":"msg","to":"$trim($$.expected_payload)","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":928.888916015625,"y":362.22222900390625,"wires":[["2d0cbb28bc26917e"]]}]
|