@gregoriusrippenstein/erlang-red-unittest 0.20.2 → 0.21.0
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/README.md +4 -2
- package/examples/.core/support JS hash naming in variable access.json +1 -0
- package/examples/.elixir/support basic module code.json +1 -0
- package/examples/.jsonata/$privdir operator.json +1 -0
- package/examples/.jsonata/$replace should be working for newlines.json +1 -0
- package/examples/.jsonata/$type operator.json +1 -0
- package/examples/.jsonata/ensure that $millis() works.json +1 -0
- package/examples/.jsonata/non-string key names.json +1 -0
- package/examples/.jsonata/split function.json +1 -0
- package/examples/.jsonata/support array definition.json +1 -0
- package/examples/batch/basic behaviour.json +1 -0
- package/examples/binary/initial test.json +1 -0
- package/examples/binary/parse PNG image data.json +1 -0
- package/examples/captureio/Capture io from function node.json +1 -0
- package/examples/captureio/Mutliple captures.json +1 -0
- package/examples/captureio/capture io from gen_server behaviour.json +1 -0
- package/examples/captureio/collect io from event handlers.json +1 -0
- package/examples/captureio/collect io from state machine node.json +1 -0
- package/examples/catch/catch all exceptions in a single group.json +1 -0
- package/examples/catch/catch all in group except those handler elsewhere.json +1 -0
- package/examples/catch/deal with it yourself.json +1 -0
- package/examples/catch/don't catch if the node isn't selected.json +1 -0
- package/examples/change/debug message if no catch node.json +1 -0
- package/examples/change/set functionality.json +1 -0
- package/examples/change/support buffer type.json +1 -0
- package/examples/change/support num types.json +1 -0
- package/examples/change/support underscores in binary, hex & octal values.json +1 -0
- package/examples/clientcode/Client code node test.json +1 -0
- package/examples/complete/avoid endless recursion.json +1 -0
- package/examples/complete/avoid recursion - test case 2.json +1 -0
- package/examples/complete/its complete nodes all the way down.json +1 -0
- package/examples/complete/split node.json +1 -0
- package/examples/complete/when is a join complete.json +1 -0
- package/examples/csv-decode/comma separated, parse numbers & msg per row.json +1 -0
- package/examples/csv-decode/separators other than comma.json +1 -0
- package/examples/csv-decode/single message for entire CSV, comma, RFC4180.json +1 -0
- package/examples/csv-decode/single message per line.json +1 -0
- package/examples/csv-decode/skip line happens before parsing content.json +1 -0
- package/examples/csv-encode/line termination and separator.json +1 -0
- package/examples/csv-encode/simple object.json +1 -0
- package/examples/debug/ensure debug messages are generated.json +1 -0
- package/examples/debug/handle largish json files as content.json +1 -0
- package/examples/debug/handling of Jsonata expressions.json +1 -0
- package/examples/debug/only debug specific property.json +1 -0
- package/examples/debug/status message counter.json +1 -0
- package/examples/debug/type hadling of JSONata reslults (ered).json +1 -0
- package/examples/debug/type hadling of JSONata reslults (node-red).json +1 -0
- package/examples/delay/delay messages by 5 seconds.json +1 -0
- package/examples/delay/delay multiple message for the same length of time.json +1 -0
- package/examples/delay/need to provide a status message of queue size.json +1 -0
- package/examples/eventhandler/handle kill exits.json +1 -0
- package/examples/eventhandler/handle normal exits.json +1 -0
- package/examples/eventhandler/multiple dynamic event handlers.json +1 -0
- package/examples/eventhandler/register and unregister handler.json +1 -0
- package/examples/eventhandler/static configuration.json +1 -0
- package/examples/eventhandler/static handler with arguments.json +1 -0
- package/examples/eventhandler/static handler: multiple instances.json +1 -0
- package/examples/eventhandler/used with a supervisor node.json +1 -0
- package/examples/exec/async with noisy command.json +1 -0
- package/examples/exec/empty commands are not supported.json +1 -0
- package/examples/exec/generate complete msg once command is done.json +1 -0
- package/examples/exec/handle multiple process at once.json +1 -0
- package/examples/exec/support timeout specification.json +1 -0
- package/examples/exec/synchronised execution.json +1 -0
- package/examples/file in/basic functionality of being able to read a file.json +1 -0
- package/examples/file in/error when file not found.json +1 -0
- package/examples/file in/warning if no file name is defined.json +1 -0
- package/examples/file in/will accept file name from msg obj.json +1 -0
- package/examples/filter/ignore initial value per topic.json +1 -0
- package/examples/filter/ignore initial value.json +1 -0
- package/examples/filter/post if value changed.json +1 -0
- package/examples/flowhubpull/retrieve flow id.json +1 -0
- package/examples/function/divide by zero throws kills node.json +1 -0
- package/examples/function/ensure /"on stop/" code is executed.json" +1 -0
- package/examples/function/function and module work together.json +1 -0
- package/examples/function/handle corrupt code.json +1 -0
- package/examples/function/return values are important.json +1 -0
- package/examples/function/set node context.json +1 -0
- package/examples/function/speaks Erlang.json +1 -0
- package/examples/function/supervisor interaction.json +1 -0
- package/examples/function/support multiple outputs.json +1 -0
- package/examples/function/support not returning a message.json +1 -0
- package/examples/function/support timeout setting.json +1 -0
- package/examples/function/supports completed node.json +1 -0
- package/examples/genserver/addressing modules.json +1 -0
- package/examples/genserver/triggering functionality.json +1 -0
- package/examples/http/Dynamic Routing.json +1 -0
- package/examples/http/POST & GET have different endpoints.json +1 -0
- package/examples/http/dynamic redirect.json +1 -0
- package/examples/http/have params in the path.json +1 -0
- package/examples/http/http static routing.json +1 -0
- package/examples/http/multiple endpoints don't all get the request.json +1 -0
- package/examples/http/nodes should be able to handle requests.json +1 -0
- package/examples/http/post requests - json content.json +1 -0
- package/examples/{f38603a59963386c/flows.json → http/request parses JSON conent.json } +1 -1
- package/examples/http/request, ensure url and method are handled.json +1 -0
- package/examples/http/set content type.json +1 -0
- package/examples/http/support query string on get request.json +1 -0
- package/examples/inject/repeat interval.json +1 -0
- package/examples/inject/support octal, binary & hex underscore values.json +1 -0
- package/examples/inject/trigger after - does not trigger.json +1 -0
- package/examples/inject/unsupported JSONata function.json +1 -0
- package/examples/join/manual config with count & nested property name.json +1 -0
- package/examples/json/parse example json content.json +1 -0
- package/examples/json/raise exception if content not valid.json +1 -0
- package/examples/json/support prettify json content.json +1 -0
- package/examples/link nodes/across flow tabs.json +1 -0
- package/examples/link nodes/cascading link calls.json +1 -0
- package/examples/markdown/allow for inline html.json +1 -0
- package/examples/markdown/convert markdown to html.json +1 -0
- package/examples/markdown/support code block.json +1 -0
- package/examples/module/Using with Statemachine.json +1 -0
- package/examples/module/Using with function node.json +1 -0
- package/examples/mqtt/auto-(re)connect.json +1 -0
- package/examples/noop/Noop node will error out.json +1 -0
- package/examples/process/Can send messages.json +1 -0
- package/examples/range/basic examples.json +1 -0
- package/examples/split/Array type.json +1 -0
- package/examples/split/binary type.json +1 -0
- package/examples/split/using strings and buffers.json +1 -0
- package/examples/split/work with binary data as string data.json +1 -0
- package/examples/statemachine/Representing gen_statem in Erlang-Red.json +1 -0
- package/examples/statemachine/combined with supervisor.json +1 -0
- package/examples/statemachine/exception if no action to perform.json +1 -0
- package/examples/status/basic working version.json +1 -0
- package/examples/status/only one message per status value.json +1 -0
- package/examples/status/source map inside the status map.json +1 -0
- package/examples/supervisor/inform user if config needs updating.json +1 -0
- package/examples/supervisor/multiple individual supervisors.json +1 -0
- package/examples/supervisor/order defined by Y coordinate..json +1 -0
- package/examples/supervisor/restart after exit call.json +1 -0
- package/examples/supervisor/supervising two function nodes.json +1 -0
- package/examples/supervisor/supervisor loops.json +1 -0
- package/examples/supervisor/supervisor of supervisor of supervisor of .....json +1 -0
- package/examples/supervisor/supervisor told to stop.json +1 -0
- package/examples/supervisor/supervisor tree.json +1 -0
- package/examples/supervisor/two supervisors cannot supervise the same nodes.json +1 -0
- package/examples/supervisor/unsupported configrations.json +1 -0
- package/examples/switch/JSONata undefined value & exceptions.json +1 -0
- package/examples/switch/post debug on JSONata exception.json +1 -0
- package/examples/switch/raise exception if JSONata has exception.json +1 -0
- package/examples/tcp/Bad value on output port (3425).json +1 -0
- package/examples/tcp/multiple tcp in connectors (1194).json +1 -0
- package/examples/tcp/request node - disconnect immediately (1001).json +1 -0
- package/examples/tcp/tcp-out node in reply mode (1202).json +1 -0
- package/examples/tcp/transfer string between nodes (1201).json +1 -0
- package/examples/template/handle base64 encoded data.json +1 -0
- package/examples/template/support mustache template.json +1 -0
- package/examples/trigger/initial example.json +1 -0
- package/nodes/ut-assert-debug.js +66 -17
- package/nodes/ut-assert-values.js +179 -161
- package/package.json +1 -1
- package/plugins/sidebar.html +20 -42
- package/examples/069552b2eb6bce48/flows.json +0 -265
- package/examples/08183069b5f8ef9c/flows.json +0 -156
- package/examples/084fb0fc954b7156/flows.json +0 -132
- package/examples/090eb2d5d71fd45f/flows.json +0 -158
- package/examples/0c35d269ca7178c6/flows.json +0 -443
- package/examples/0cc95e44532c14ec/flows.json +0 -94
- package/examples/16b0bc0cdb0c5807/flows.json +0 -1
- package/examples/16b254125478329a/flows.json +0 -114
- package/examples/182731f54d855071/flows.json +0 -52
- package/examples/1ace9e051618db79/flows.json +0 -125
- package/examples/1c1d2cb981cf9f01/flows.json +0 -120
- package/examples/1db9c9a1b92e0263/flows.json +0 -172
- package/examples/20eeaf41372f7b17/flows.json +0 -62
- package/examples/27804627fb8f56bd/flows.json +0 -178
- package/examples/2a2c508260b96236/flows.json +0 -141
- package/examples/34f859d75b76d03c/flows.json +0 -200
- package/examples/36846ad6698e1bc0/flows.json +0 -163
- package/examples/3be6bc074c7647bd/flows.json +0 -319
- package/examples/44f12f6e4a455084/flows.json +0 -272
- package/examples/45209c67f865ce73/flows.json +0 -1
- package/examples/4657dbc0aa4a97bb/flows.json +0 -268
- package/examples/47514a335b4cd67e/flows.json +0 -362
- package/examples/486c1412721bb241/flows.json +0 -525
- package/examples/51bfa9456b1745c0/flows.json +0 -639
- package/examples/538be5947c639b32/flows.json +0 -75
- package/examples/545871d31c3f5f3f/flows.json +0 -376
- package/examples/55f105cfd894b06c/flows.json +0 -121
- package/examples/57d44c342a1f00e2/flows.json +0 -1
- package/examples/597ee2a683d9908f/flows.json +0 -129
- package/examples/59da63b5adb460db/flows.json +0 -188
- package/examples/61142eb3e4e54eab/flows.json +0 -536
- package/examples/64445798b59d2630/flows.json +0 -257
- package/examples/6d46e3fe1f2245b8/flows.json +0 -86
- package/examples/6dd3a5754f83dc2e/flows.json +0 -232
- package/examples/6ff45e2a0ce77393/flows.json +0 -131
- package/examples/700c94899fdd3334/flows.json +0 -107
- package/examples/7581c2be261f9c17/flows.json +0 -1874
- package/examples/7ecfd18f58fc6510/flows.json +0 -1
- package/examples/7fea9696f6186962/flows.json +0 -141
- package/examples/80655e5d4035fa71/flows.json +0 -215
- package/examples/8421f37b6c40e1ec/flows.json +0 -1
- package/examples/866410b56fa42447/flows.json +0 -1076
- package/examples/89aeaeef64509bed/flows.json +0 -101
- package/examples/8a627c9bfe3b4aff/flows.json +0 -552
- package/examples/96f6f83dcab507e5/flows.json +0 -105
- package/examples/9746601768c3b3b6/flows.json +0 -93
- package/examples/9942fa1aeb1b2428/flows.json +0 -2346
- package/examples/9b1023c95a2613cc/flows.json +0 -141
- package/examples/9d11bfc3a6d88535/flows.json +0 -301
- package/examples/9e7ccc97f80d9afb/flows.json +0 -93
- package/examples/9f0d6c3ad7798a77/flows.json +0 -142
- package/examples/9f7351d7a7304584/flows.json +0 -83
- package/examples/a123cd431f1967cd/flows.json +0 -1757
- package/examples/a4c9cabf4b335488/flows.json +0 -86
- package/examples/a916165378c446e3/flows.json +0 -240
- package/examples/ae38b2dbd23d1681/flows.json +0 -3089
- package/examples/ae8a9b0bbbaff447/flows.json +0 -271
- package/examples/b07b511dc8bb8339/flows.json +0 -92
- package/examples/b1501de32c769cf2/flows.json +0 -94
- package/examples/b5fbcdbffb568569/flows.json +0 -1
- package/examples/b723353a316fa50e/flows.json +0 -1
- package/examples/b864b3e3510cd120/flows.json +0 -205
- package/examples/bdbe94d065f3b3a6/flows.json +0 -143
- package/examples/bfced61e72c69715/flows.json +0 -616
- package/examples/c0b1cf6656eac77f/flows.json +0 -518
- package/examples/c381b5135cc947cd/flows.json +0 -272
- package/examples/c4690c0a085d6ef5/flows.json +0 -145
- package/examples/c5f513bc380bc30a/flows.json +0 -696
- package/examples/cfa8595b2e2b8269/flows.json +0 -255
- package/examples/d17fb2553fe8013a/flows.json +0 -157
- package/examples/d61182e87a604efa/flows.json +0 -340
- package/examples/eb24c92ce5621760/flows.json +0 -141
- package/examples/eb447048178f6e16/flows.json +0 -201
- package/examples/eed68dbcecd1431f/flows.json +0 -204
- package/examples/ef61f644d5436dbe/flows.json +0 -1
- package/examples/f19fdae0c02b4f03/flows.json +0 -1008
- package/examples/f2f61ec9fc46a468/flows.json +0 -575
- package/examples/f346d45c81f595e5/flows.json +0 -501
- package/examples/f5f82ca50317fda7/flows.json +0 -121
- package/examples/f946aafaebb1398d/flows.json +0 -135
- package/examples/f94db507552f4934/flows.json +0 -165
- package/examples/fb50bac16667fc54/flows.json +0 -364
- /package/examples/{684b9066e98b9722/flows.json → .core/Disabled node should not be sent messages.json} +0 -0
- /package/examples/{0e54563ba63b1501/flows.json → .core/assert values ignores failures if requested.json} +0 -0
- /package/examples/{7b77600dcf78933f/flows.json → .core/attribute parsing.json} +0 -0
- /package/examples/{93c6e969dcf84e70/flows.json → .core/ensure that message ids don't change.json} +0 -0
- /package/examples/{d206746f9f2594a6/flows.json → .jsonata/$match operator.json} +0 -0
- /package/examples/{37883612d913fd66/flows.json → .jsonata/$not operator.json} +0 -0
- /package/examples/{caccb020fce3f485/flows.json → .jsonata/$pad function.json} +0 -0
- /package/examples/{a862ae412a70ded1/flows.json → .jsonata/$substring functionality.json} +0 -0
- /package/examples/{0b299a3175fc0df1/flows.json → .jsonata/array indexing both forwards and backwards.json} +0 -0
- /package/examples/{2037454a5ee0d6c3/flows.json → .jsonata/basic support for JSONata.json} +0 -0
- /package/examples/{3e9e526b992d4c48/flows.json → .jsonata/ensure random is seeded.json} +0 -0
- /package/examples/{e7184b7ca4f07907/flows.json → .jsonata/sum arrays of objects.json} +0 -0
- /package/examples/{218350f2e240a15d/flows.json → .jsonata/support $keys function.json} +0 -0
- /package/examples/{b50f775ae3b74d38/flows.json → .jsonata/testing the modulo operator.json} +0 -0
- /package/examples/{1658196c31549916/flows.json → batch/batch until batch is full.json} +0 -0
- /package/examples/{c843dacf753a19d8/flows.json → batch/ensure batch size of 1 works.json} +0 -0
- /package/examples/{9a1bdfdcd7b2be8e/flows.json → batch/performance.json} +0 -0
- /package/examples/{538d2f4704cd2eca/flows.json → catch/ensure source is inside error map.json} +0 -0
- /package/examples/{6a9ffd45c418497b/flows.json → catch/file not found exception.json} +0 -0
- /package/examples/{71f65246c742cfc9/flows.json → catch/multiple nodes in one flow is possible.json} +0 -0
- /package/examples/{ed621e03921c13de/flows.json → catch/uncaught catch - part 2 - work.json} +0 -0
- /package/examples/{f5bdafa844f6d280/flows.json → catch/uncaught catches.json} +0 -0
- /package/examples/{9c51a179141515b2/flows.json → change/change functionality.json} +0 -0
- /package/examples/{ea246f68766c8630/flows.json → change/delete functionality.json} +0 -0
- /package/examples/{30465efe017cc9b0/flows.json → change/delete nested keys.json} +0 -0
- /package/examples/{ced70c769db825eb/flows.json → change/ensure rules are expected in order.json} +0 -0
- /package/examples/{7dae2b1a7881c607/flows.json → change/move functionality.json} +0 -0
- /package/examples/{92054e0dd22f14c6/flows.json → change/raises an exception if JSONata has exception.json} +0 -0
- /package/examples/{b85795a24882502b/flows.json → change/set support nested properties.json} +0 -0
- /package/examples/{c28048d859db3773/flows.json → change/support boolean types.json} +0 -0
- /package/examples/{12572f9ac11e1786/flows.json → change/support json values in the set.json} +0 -0
- /package/examples/{def45a46c8f4da72/flows.json → change/support nested array indicies - setting & getting & deleting.json} +0 -0
- /package/examples/{0cb8971e5f88ed1e/flows.json → change/support nested keys on the set operation.json} +0 -0
- /package/examples/{48d9fdcde317974e/flows.json → change/support timestamp type.json} +0 -0
- /package/examples/{1bac0a78e0a36ec0/flows.json → comment/what is there to test?.json} +0 -0
- /package/examples/{b9cd19107a5145c4/flows.json → complete/disabled nodes don't receive.json} +0 -0
- /package/examples/{5e07acf2da13b504/flows.json → complete/ensure the altered msg object is sent.json} +0 -0
- /package/examples/{01b074cfa6ae8818/flows.json → complete/link nodes.json} +0 -0
- /package/examples/{cd44a688eb2ab3cf/flows.json → complete/messags from unconnected inject.json} +0 -0
- /package/examples/{30c79fc42a5c35eb/flows.json → complete/only handle messages from listened to nodes.json} +0 -0
- /package/examples/{f8727464c799eb22/flows.json → complete/switch node isn't compatible with complete.json} +0 -0
- /package/examples/{b2a67e301fabab0e/flows.json → debug/handle the button press to active and deactive debug output.json} +0 -0
- /package/examples/{a6dc7002d0a8640e/flows.json → debug/if not active, no debug message in panel.json} +0 -0
- /package/examples/{b1463d7bbf545725/flows.json → debug/inactive debug nodes still count messages.json} +0 -0
- /package/examples/{5a06352874fa379d/flows.json → debug/only send debug message to server console if asked to.json} +0 -0
- /package/examples/{c1370220fd37968e/flows.json → delay/ignore msg.delay if its not set.json} +0 -0
- /package/examples/{d17062b01c4a9435/flows.json → delay/random between two values.json} +0 -0
- /package/examples/{3ea113b4ec3b6e5e/flows.json → delay/set delay via msg.delay.json} +0 -0
- /package/examples/{e2a801d2b3e2143f/flows.json → exec/add payload and append arguments.json} +0 -0
- /package/examples/{b98d0b05a760ad79/flows.json → exec/execute simple command.json} +0 -0
- /package/examples/{6ea4c6b373eeaa8d/flows.json → filter/narrowband no topic.json} +0 -0
- /package/examples/{cef9dd7dc179b8b3/flows.json → filter/value differ by topic.json} +0 -0
- /package/examples/{b2fcc5806b2715c0/flows.json → inject/JSONata undefined value & exceptions.json} +0 -0
- /package/examples/{09aab59a2455cf15/flows.json → inject/Payload, topic and fubar set on inject.json} +0 -0
- /package/examples/{8180ae5891c673de/flows.json → inject/ensure that topic is set correctly.json} +0 -0
- /package/examples/{1eb35963b752eca9/flows.json → inject/json support for properties other than payload.json} +0 -0
- /package/examples/{61847d719e50f83f/flows.json → inject/jsonata support for both payload and other properties.json} +0 -0
- /package/examples/{459322e0f8e0b785/flows.json → inject/nested hash & array support.json} +0 -0
- /package/examples/{c163c627bd2a37c7/flows.json → inject/support boolean type.json} +0 -0
- /package/examples/{7e1d04570c6bdff9/flows.json → inject/support jsonata for topic values.json} +0 -0
- /package/examples/{1a196bce3e57f5c1/flows.json → inject/support nested property names.json} +0 -0
- /package/examples/{2a12af161b544aa1/flows.json → inject/support num types.json} +0 -0
- /package/examples/{ec921769b3c24fb6/flows.json → inject/support the msg property type.json} +0 -0
- /package/examples/{9ff2e8ab21d922c5/flows.json → inject/trigger once - default value.json} +0 -0
- /package/examples/{1d3326a724ecbea0/flows.json → join/automatic mode.json} +0 -0
- /package/examples/{24f35eaa8656755f/flows.json → join/count overrides parts, complete overrides count.json} +0 -0
- /package/examples/{987cd33b9cda8529/flows.json → join/manual configration with count and property name.json} +0 -0
- /package/examples/{50d5679818477b66/flows.json → join/manual configuration counting messages.json} +0 -0
- /package/examples/{894f6e38bfd1aca6/flows.json → join/remove parts once matched.json} +0 -0
- /package/examples/{5cf6aec7d688fce4/flows.json → join/results are not ordered by index.json} +0 -0
- /package/examples/{d5424657b497d5af/flows.json → join/useparts with count value.json} +0 -0
- /package/examples/{77854a5ea962257b/flows.json → join/useparts without count value.json} +0 -0
- /package/examples/{f1e71f2ccb34fd6e/flows.json → join/wait for complete until messages are sent.json} +0 -0
- /package/examples/{d4ce58359ff6ff96/flows.json → join/with parts until complete received.json} +0 -0
- /package/examples/{b3f365d0b7d1f97d/flows.json → json/overwrite the attribute.json} +0 -0
- /package/examples/{e1ced3b16782f7c8/flows.json → junction/should just pass on the message.json} +0 -0
- /package/examples/{51870a76d1aaf67a/flows.json → link nodes/_linkSource support.json} +0 -0
- /package/examples/{bbb1fc2d47c3cd5f/flows.json → link nodes/basic test whether out and in can connect.json} +0 -0
- /package/examples/{15c2fad089960984/flows.json → link nodes/dynamic targets and timeout.json} +0 -0
- /package/examples/{c274a07715a87ca4/flows.json → link nodes/exception if dynamic link does not exist.json} +0 -0
- /package/examples/{9463eba0ab843567/flows.json → link nodes/exception if multiple link nodes match.json} +0 -0
- /package/examples/{641ddaab2819c61d/flows.json → link nodes/flow for call and returning.json} +0 -0
- /package/examples/{b6d4e4592b27a344/flows.json → link nodes/implement time out on link call node.json} +0 -0
- /package/examples/{c6ee6e89a51c98fc/flows.json → link nodes/link call - return to sender.json} +0 -0
- /package/examples/{38616d22e1569aa5/flows.json → link nodes/link call to a dynamic link in node - by name.json} +0 -0
- /package/examples/{5433b57035d597f9/flows.json → link nodes/link call to a dynamic link in node - by node id.json} +0 -0
- /package/examples/{213803d61ecfde3a/flows.json → link nodes/mutliple links.json} +0 -0
- /package/examples/{b7ebaf91f4d66ab3/flows.json → sort/array of objects.json} +0 -0
- /package/examples/{cffa610c817beb43/flows.json → sort/msg.complete is not respected.json} +0 -0
- /package/examples/{5f6929bb3374b782/flows.json → sort/sort by parts.index.json} +0 -0
- /package/examples/{b1430ea37ba7cc19/flows.json → split/array split.json} +0 -0
- /package/examples/{4de34883c5d93dc3/flows.json → split/len value is the array split size.json} +0 -0
- /package/examples/{2c59ef974b2523ba/flows.json → split/nested parts.json} +0 -0
- /package/examples/{02b18fc0ed9de178/flows.json → split/parts id is identical.json} +0 -0
- /package/examples/{435d3b48dd0f462c/flows.json → split/silently ignore integer as a value to split.json} +0 -0
- /package/examples/{5cd133958df17529/flows.json → switch/catch all v. stop after first.json} +0 -0
- /package/examples/{562c518969666f24/flows.json → switch/empty, non-empty, null & not-null operators.json} +0 -0
- /package/examples/{3edda6bd788f88c2/flows.json → switch/ensure JSONata support.json} +0 -0
- /package/examples/{2c1c291ec8466bfb/flows.json → switch/handle is true & is false.json} +0 -0
- /package/examples/{59aa8a866d8d7a70/flows.json → switch/handle nested values.json} +0 -0
- /package/examples/{def56742e02f6a75/flows.json → switch/property is not defined on msg object.json} +0 -0
- /package/examples/{f4c4a57e77439a1b/flows.json → switch/regular expression operator.json} +0 -0
- /package/examples/{ce2f98273da05245/flows.json → switch/support otherwise /"catchall/" rule.json"} +0 -0
- /package/examples/{0616f795a4aee63e/flows.json → switch/working JSONata expression operator.json} +0 -0
- /package/examples/{84a5a362cafe703f/flows.json → tcp/request node - stream of strings (1101).json} +0 -0
- /package/examples/{6f0dcbf18234c5e2/flows.json → tcp/tcp in node connect to (9393).json} +0 -0
- /package/examples/{2a95a7b40a798878/flows.json → tcp/telnet server (2323).json} +0 -0
- /package/examples/{698b83b8aeb5d5b6/flows.json → template/contains plain text and no mustache content.json} +0 -0
- /package/examples/{63ca9baf860d1d8f/flows.json → template/support Json encoding.json} +0 -0
- /package/examples/{3ed472eab9503b4f/flows.json → template/support logic in logicless mustache template.json} +0 -0
- /package/examples/{ad2bf1089481dcfb/flows.json → trigger/extend timer.json} +0 -0
- /package/examples/{8bc7412d6a4869c6/flows.json → trigger/loops of triggers.json} +0 -0
- /package/examples/{55f7fbe90e5befa8/flows.json → trigger/msg.delay overrides the configured delay.json} +0 -0
- /package/examples/{34d211e37618313c/flows.json → trigger/override via delay but no delay set.json} +0 -0
- /package/examples/{988f27b9abdde6e9/flows.json → trigger/send both messages on one pipe.json} +0 -0
- /package/examples/{338c5b411f4edfe8/flows.json → trigger/send first but not second message.json} +0 -0
- /package/examples/{5d4908af3d4f95e5/flows.json → trigger/send second message only.json} +0 -0
- /package/examples/{d595c53abba88f72/flows.json → trigger/the noop trigger.json} +0 -0
- /package/examples/{1566e453a88578a9/flows.json → trigger/two outputs.json} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[{"id":"44f12f6e4a455084","type":"tab","label":"[http] POST & GET have different endpoints","disabled":false,"info":"Defining two endpoints for the same path but that differ by method should be supported.","env":[{"name":"ERED_NOT_EUNIT","value":"true","type":"bool"},{"name":"ERED_TIMEOUT","value":"5","type":"num"}]},{"id":"1ee4966eef5be3c7","type":"http in","z":"44f12f6e4a455084","name":"","url":"/44f12f6e4a455084/example07/data","method":"get","upload":false,"swaggerDoc":"","x":477,"y":507,"wires":[["c1cfaca2395882ca","905f4a96866d216a","2fb697c68342967d"]]},{"id":"8b46873434c47c64","type":"http in","z":"44f12f6e4a455084","name":"","url":"/44f12f6e4a455084/example07/data","method":"post","upload":false,"swaggerDoc":"","x":472,"y":234.5,"wires":[["0660a9b61b2d2625","c1cfaca2395882ca","3f58a97eadc4d74a"]]},{"id":"0660a9b61b2d2625","type":"ut-assert-values","z":"44f12f6e4a455084","name":"","rules":[{"t":"eql","p":"payload","pt":"msg","to":"world","tot":"str"}],"x":1106,"y":96,"wires":[[]]},{"id":"2fb697c68342967d","type":"ut-assert-success","z":"44f12f6e4a455084","name":"","count":1,"x":1086,"y":511.5,"wires":[]},{"id":"3f58a97eadc4d74a","type":"ut-assert-success","z":"44f12f6e4a455084","name":"","count":1,"x":1086,"y":234.5,"wires":[]},{"id":"480f4d85fc71d2b2","type":"http request","z":"44f12f6e4a455084","name":"","method":"GET","ret":"txt","paytoqs":"ignore","url":"http://localhost:8080/44f12f6e4a455084/example07/data?p=world&p2=ddd","tls":"","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":736,"y":843,"wires":[["8c7c8608c19cf1d0"]]},{"id":"d05bf163282c5908","type":"inject","z":"44f12f6e4a455084","name":"","props":[],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":102,"y":845,"wires":[["a4a6034b312d4597","c6a6f43aca748f8b"]]},{"id":"59a9432dc3b29d21","type":"http request","z":"44f12f6e4a455084","name":"","method":"POST","ret":"txt","paytoqs":"ignore","url":"http://localhost:8080/44f12f6e4a455084/example07/data","tls":"","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":738,"y":902,"wires":[["09b5fc4621688fed"]]},{"id":"a4a6034b312d4597","type":"change","z":"44f12f6e4a455084","name":"","rules":[{"p":"payload","pt":"msg","t":"set","to":"hello","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":547,"y":843,"wires":[["480f4d85fc71d2b2"]]},{"id":"c6a6f43aca748f8b","type":"change","z":"44f12f6e4a455084","name":"","rules":[{"p":"payload","pt":"msg","t":"set","to":"world","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":550,"y":902,"wires":[["59a9432dc3b29d21"]]},{"id":"c1cfaca2395882ca","type":"http response","z":"44f12f6e4a455084","name":"","statusCode":"200","headers":{},"x":1076,"y":373,"wires":[]},{"id":"905f4a96866d216a","type":"ut-assert-values","z":"44f12f6e4a455084","name":"","rules":[{"p":"req.query.p","pt":"msg","t":"eql","to":"world","tot":"str"}],"x":1116,"y":650,"wires":[[]]},{"id":"8c7c8608c19cf1d0","type":"ut-assert-success","z":"44f12f6e4a455084","name":"","count":1,"x":1023,"y":800.5,"wires":[]},{"id":"09b5fc4621688fed","type":"ut-assert-success","z":"44f12f6e4a455084","name":"","count":1,"x":1030,"y":858.5,"wires":[]}]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[{"id":"eed68dbcecd1431f","type":"tab","label":"[http] dynamic redirect","disabled":false,"info":"## HTTP redirect\n\nDynamic redirect overwriting the header settings of the node.\n\nTesting the dynamic setting of the Location header.","env":[{"name":"ERED_NOT_EUNIT","value":"true","type":"bool"},{"name":"ERED_TIMEOUT","value":"5","type":"num"}]},{"id":"5b426d51dcf3c2f8","type":"http response","z":"eed68dbcecd1431f","name":"redirect to https","statusCode":"301","headers":{},"x":747.8572082519531,"y":423.1428680419922,"wires":[]},{"id":"c6d401a2115666f6","type":"change","z":"eed68dbcecd1431f","name":"","rules":[{"p":"statusCode","pt":"msg","t":"set","to":"301","tot":"num"},{"p":"_loc","pt":"msg","t":"set","to":"'http://' & $$.req.hostname & \":8080\" & $$.req.originalUrl","tot":"jsonata"},{"p":"payload","pt":"msg","t":"set","to":"\"<a href='\" & $$._loc & \"'>Redirect</a>\\n\"","tot":"jsonata"},{"p":"headers","pt":"msg","t":"set","to":"{ \"Location\": $$._loc }","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":590.4285507202148,"y":329.2857093811035,"wires":[["5b426d51dcf3c2f8"]]},{"id":"2f671b7422d502d9","type":"http in","z":"eed68dbcecd1431f","name":"","url":"/teed68dbcecd1431f/example12/fubar","method":"get","upload":false,"swaggerDoc":"","x":438.857177734375,"y":245.71429443359375,"wires":[["c6d401a2115666f6"]]},{"id":"e3748318a95178e9","type":"inject","z":"eed68dbcecd1431f","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":250.0000228881836,"y":546.8214645385742,"wires":[["dda324dd7f114c3d"]]},{"id":"455ca5e77834096a","type":"http request","z":"eed68dbcecd1431f","name":"","method":"GET","ret":"txt","paytoqs":"ignore","url":"http://localhost:8080/teed68dbcecd1431f/example12/fubar","tls":"","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":711.5237757364908,"y":546.8214645385742,"wires":[["624fa5de5352cb90"]]},{"id":"dda324dd7f114c3d","type":"delay","z":"eed68dbcecd1431f","name":"","pauseType":"delay","timeout":"250","timeoutUnits":"milliseconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":475.7618993123372,"y":546.8214645385742,"wires":[["455ca5e77834096a"]]},{"id":"624fa5de5352cb90","type":"ut-assert-values","z":"eed68dbcecd1431f","name":"","rules":[{"t":"eql","p":"statusCode","pt":"msg","to":"301","tot":"num"},{"t":"eql","p":"payload","pt":"msg","to":"<a href='http://localhost:8080/teed68dbcecd1431f/example12/fubar'>Redirect</a>\\n","tot":"str"}],"x":957.2856521606445,"y":546.8214645385742,"wires":[[]]}]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[{"id":"64445798b59d2630","type":"tab","label":"[http] have params in the path","disabled":false,"info":"Http in nodes should be able to define paths that contain placeholder for parameters.","env":[{"name":"ERED_NOT_EUNIT","value":"true","type":"bool"},{"name":"ERED_TIMEOUT","value":"5","type":"num"}]},{"id":"636e832e3c16a9e6","type":"http in","z":"64445798b59d2630","name":"","url":"/t64445798b59d2630/testtwo/:param1/:param2","method":"get","upload":false,"swaggerDoc":"","x":208,"y":530,"wires":[["7288f0fd22652e25","58de6c031b4d0618","2b0918bcb0b55c53","c2a29d7fc0ebe85e","2ca24d1ddbfe2454"]]},{"id":"568af6bcb1c5cf73","type":"http response","z":"64445798b59d2630","name":"","statusCode":"","headers":{},"x":743,"y":852,"wires":[]},{"id":"a7e3dcf48b15929a","type":"inject","z":"64445798b59d2630","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":222.5,"y":200,"wires":[["4311564baa38d4f0"]]},{"id":"7288f0fd22652e25","type":"template","z":"64445798b59d2630","name":"","field":"payload","fieldType":"msg","format":"handlebars","syntax":"plain","template":"Hello world.\n\nAnd one more thing.\n\nThis is a test.\n\nBut should work.\n\n","output":"str","x":511,"y":744,"wires":[["568af6bcb1c5cf73"]]},{"id":"2ed1a71543381782","type":"http request","z":"64445798b59d2630","name":"","method":"GET","ret":"txt","paytoqs":"ignore","url":"http://localhost:8080/t64445798b59d2630/testtwo/val1/val2?query1=val3&query1=val4","tls":"","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":589.5,"y":213,"wires":[["ebafe26f5b73eff6"]]},{"id":"4311564baa38d4f0","type":"delay","z":"64445798b59d2630","name":"","pauseType":"delay","timeout":"250","timeoutUnits":"milliseconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":410,"y":260,"wires":[["2ed1a71543381782"]]},{"id":"ebafe26f5b73eff6","type":"ut-assert-values","z":"64445798b59d2630","name":"","rules":[{"p":"statusCode","pt":"msg","t":"eql","to":"200","tot":"num"},{"p":"payload","pt":"msg","t":"eql","to":"\"Hello world.\\n\\nAnd one more thing.\\n\\nThis is a test.\\n\\nBut should work.\\n\\n\"","tot":"json"}],"x":845.5,"y":213.5,"wires":[[]]},{"id":"58de6c031b4d0618","type":"ut-assert-values","z":"64445798b59d2630","name":"","rules":[{"p":"req.params.param1","pt":"msg","t":"eql","to":"val1","tot":"str"}],"x":613,"y":638,"wires":[[]]},{"id":"2b0918bcb0b55c53","type":"ut-assert-values","z":"64445798b59d2630","name":"","rules":[{"p":"req.params.param2","pt":"msg","t":"eql","to":"val2","tot":"str"}],"x":661,"y":579,"wires":[[]]},{"id":"c2a29d7fc0ebe85e","type":"ut-assert-values","z":"64445798b59d2630","name":"","rules":[{"p":"req.query","pt":"msg","t":"set"}],"x":734,"y":471,"wires":[[]]},{"id":"2ca24d1ddbfe2454","type":"ut-assert-values","z":"64445798b59d2630","name":"","rules":[{"p":"req.query","pt":"msg","t":"eql","to":"{ \"query1\": \"val4\"}","tot":"json"}],"x":695,"y":530,"wires":[[]]}]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[{"id":"f346d45c81f595e5","type":"tab","label":"[http] http static routing","disabled":false,"info":"Simple example of how to do http routing visuallying in the flow editor.\n\nThis can be started in Erlang-RED by deploying to the server and then can be accessed by another browser.","env":[{"name":"ERED_NOT_EUNIT","type":"bool","value":"true"},{"name":"ERED_PENDING","type":"bool","value":"false"},{"name":"ERED_TIMEOUT","type":"num","value":"4"}]},{"id":"abfa2c020b95ae9e","type":"http in","z":"f346d45c81f595e5","name":"","url":"/tf346d45c81f595e5/example01/:page","method":"get","upload":false,"swaggerDoc":"","x":319,"y":581,"wires":[["6fc97c857a69a1be"]]},{"id":"6fc97c857a69a1be","type":"switch","z":"f346d45c81f595e5","name":"","property":"req.params.page","propertyType":"msg","rules":[{"t":"eq","v":"page1","vt":"str"},{"t":"eq","v":"page2","vt":"str"},{"t":"eq","v":"page3","vt":"str"},{"t":"eq","v":"image.svg","vt":"str"},{"t":"eq","v":"flow.json","vt":"str"},{"t":"else"}],"checkall":"false","repair":false,"outputs":6,"x":637.6666412353516,"y":580.9999771118164,"wires":[["83b4ccd0b619f244"],["a89f0c5387dccd4e"],["39cf074fa2bfaf2a"],["3476bc4af55f68a1"],["518f379024ec6e32"],["3d8825286adab940"]]},{"id":"83b4ccd0b619f244","type":"template","z":"f346d45c81f595e5","name":"page1 content","field":"payload","fieldType":"msg","format":"handlebars","syntax":"plain","template":"<p>\nThis is page number one, routed to you by Erlang-RED <i>the visual flow based programming tool</i> powered by Node-RED flow editor.\n</p>\n\n<a href=\"/example01/page2\">Next Page</a>\n\n<br>\n","output":"str","x":909.6666412353516,"y":466.2499771118164,"wires":[["77688de786ca2329"]]},{"id":"77688de786ca2329","type":"http response","z":"f346d45c81f595e5","name":"html content","statusCode":"","headers":{"content-type":"text/html"},"x":1403.6666412353516,"y":466.2499771118164,"wires":[]},{"id":"43901891b8b31e0b","type":"inject","z":"f346d45c81f595e5","name":"test starts here","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":382.6666450500488,"y":208.99997234344482,"wires":[["d0794bae04b5a721"]]},{"id":"0455e52d6481298a","type":"http request","z":"f346d45c81f595e5","name":"","method":"GET","ret":"txt","paytoqs":"ignore","url":"http://localhost:8080/tf346d45c81f595e5/example01/page1","tls":"","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":770.6666450500488,"y":204.99997234344482,"wires":[["052939ee49dc884f"]]},{"id":"3d8825286adab940","type":"template","z":"f346d45c81f595e5","name":"","field":"payload","fieldType":"msg","format":"handlebars","syntax":"plain","template":"<b>Page Not Found</b>\n","output":"str","x":889.6666412353516,"y":717.2499771118164,"wires":[["2b0fadc5c3583f16"]]},{"id":"2b0fadc5c3583f16","type":"http response","z":"f346d45c81f595e5","name":"html content","statusCode":"404","headers":{"content-type":"text/html"},"x":1403.6666412353516,"y":717.2499771118164,"wires":[]},{"id":"fb940a9af3e05b41","type":"http request","z":"f346d45c81f595e5","name":"","method":"GET","ret":"txt","paytoqs":"ignore","url":"http://localhost:8080/tf346d45c81f595e5/example01/unknown","tls":"","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":770.6666450500488,"y":263.9999723434448,"wires":[["5cb9be50d953ec61"]]},{"id":"e5324341bc9a0a54","type":"http request","z":"f346d45c81f595e5","name":"","method":"GET","ret":"txt","paytoqs":"ignore","url":"http://localhost:8080/tf346d45c81f595e5/example01/page2","tls":"","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":772.6666450500488,"y":142.99997234344482,"wires":[["1be51f04e59403bc"]]},{"id":"a89f0c5387dccd4e","type":"template","z":"f346d45c81f595e5","name":"page2 content","field":"payload","fieldType":"msg","format":"handlebars","syntax":"plain","template":"<p>\nPage two is far more interesting since it contains an image.\n</p>\n\n<img src=\"/example01/image.svg\"/>\n\n<P>\n <a href=\"/example01/page3\">Page three</a> contains a missling page to check the 404 errors are also available.\n</p>","output":"str","x":909.6666412353516,"y":520.2499771118164,"wires":[["918ac7df0c29647d"]]},{"id":"918ac7df0c29647d","type":"http response","z":"f346d45c81f595e5","name":"html content","statusCode":"","headers":{"content-type":"text/html"},"x":1403.6666412353516,"y":520.2499771118164,"wires":[]},{"id":"518f379024ec6e32","type":"file in","z":"f346d45c81f595e5","name":"","filename":"${priv}/testflows//flow.f346d45c81f595e5.json","filenameType":"str","format":"utf8","chunk":false,"sendError":false,"encoding":"none","allProps":false,"x":1009.6666412353516,"y":664.2499771118164,"wires":[["ef94e7d30f2abf0a"]]},{"id":"ef94e7d30f2abf0a","type":"http response","z":"f346d45c81f595e5","name":"json response","statusCode":"","headers":{"content-type":"application/json"},"x":1393.6666412353516,"y":664.2499771118164,"wires":[]},{"id":"3476bc4af55f68a1","type":"template","z":"f346d45c81f595e5","name":"image.svg","field":"payload","fieldType":"msg","format":"html","syntax":"plain","template":"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n<svg\n id=\"screenshot\"\n viewBox=\"0 0 750 213\"\n width=\"750\"\n height=\"213\"\n version=\"1.1\"\n style=\"-webkit-print-color-adjust: exact;\"\n sodipodi:docname=\"cut-uposh_hr.svg\"\n inkscape:version=\"1.2 (dc2aeda, 2022-05-15)\"\n xmlns:inkscape=\"http://www.inkscape.org/namespaces/inkscape\"\n xmlns:sodipodi=\"http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd\"\n xmlns=\"http://www.w3.org/2000/svg\"\n xmlns:svg=\"http://www.w3.org/2000/svg\">\n <defs\n id=\"defs58754\" />\n <sodipodi:namedview\n id=\"namedview58752\"\n pagecolor=\"#ffffff\"\n bordercolor=\"#000000\"\n borderopacity=\"0.25\"\n inkscape:showpageshadow=\"2\"\n inkscape:pageopacity=\"0.0\"\n inkscape:pagecheckerboard=\"0\"\n inkscape:deskcolor=\"#d1d1d1\"\n showgrid=\"false\"\n inkscape:zoom=\"3.1338441\"\n inkscape:cx=\"417.21922\"\n inkscape:cy=\"87.432555\"\n inkscape:window-width=\"1573\"\n inkscape:window-height=\"484\"\n inkscape:window-x=\"3942\"\n inkscape:window-y=\"1348\"\n inkscape:window-maximized=\"0\"\n inkscape:current-layer=\"screenshot\" />\n <path\n d=\"M 9680,1890 V 400 h 165 165 v 695 694 l 97,101 c 152,159 270,241 398,276 58,16 190,18 264,4 122,-23 232,-106 283,-215 57,-123 58,-140 65,-878 l 6,-677 h 164 164 l -4,713 c -3,674 -5,717 -24,802 -75,330 -305,542 -634,585 -112,15 -193,8 -297,-25 -138,-44 -271,-130 -404,-262 l -78,-77 v 622 622 h -165 -165 z m 3660,0 V 400 h 165 165 v 690 690 l 63,73 c 131,150 312,280 442,316 58,16 211,14 280,-4 158,-42 248,-137 302,-320 15,-54 18,-128 21,-753 l 3,-692 h 165 165 l -3,733 c -4,719 -4,733 -26,812 -49,178 -160,342 -289,428 -123,81 -213,113 -365,129 -93,10 -118,9 -189,-6 -166,-36 -331,-130 -477,-272 -47,-46 -87,-84 -89,-84 -2,0 -3,279 -3,620 v 620 h -165 -165 z m -575,1418 c -3,-7 -88,-301 -191,-653 -102,-352 -313,-1081 -470,-1620 C 11948,496 11815,43 11810,28 l -9,-28 h 137 137 l 474,1618 c 261,889 481,1636 487,1660 l 13,42 h -140 c -103,0 -141,-3 -144,-12 z m 4525,-360 c -50,-132 -142,-317 -200,-405 -79,-120 -191,-225 -293,-274 -45,-22 -47,-25 -47,-66 v -43 h 199 200 l 3,-687 c 3,-616 6,-694 21,-748 60,-209 189,-333 385,-371 177,-34 350,2 504,103 l 38,26 v 134 135 l -32,-19 c -18,-10 -62,-30 -98,-44 -57,-21 -81,-24 -195,-24 -102,0 -136,4 -160,17 -46,25 -86,68 -109,118 -21,44 -21,58 -24,703 l -3,657 h 306 305 v 155 155 h -305 -305 v 295 295 h -73 -74 z M 3440,2504 c -14,-2 -59,-9 -100,-15 -169,-24 -382,-162 -518,-334 l -31,-40 -1,178 v 177 H 2625 2460 V 1235 0 h 165 165 v 341 341 l 67,-62 c 218,-199 456,-295 688,-275 450,37 786,352 892,837 23,105 26,441 5,528 -42,172 -89,280 -172,398 -139,197 -353,338 -580,381 -64,12 -214,21 -250,15 z m 194,-344 c 280,-74 464,-317 483,-641 22,-370 -192,-728 -492,-822 -59,-19 -93,-22 -220,-22 -145,0 -152,1 -221,31 -106,46 -174,95 -289,211 l -105,104 v 265 c 0,285 9,363 55,477 80,201 238,345 435,398 93,25 254,25 354,-1 z m 1947,339 c -110,-13 -214,-45 -326,-99 -511,-250 -739,-861 -521,-1397 93,-227 291,-441 509,-548 417,-204 913,-125 1238,197 198,197 304,440 316,723 14,318 -96,603 -314,820 -244,242 -549,345 -902,304 z m 335,-339 c 208,-53 365,-181 459,-375 63,-131 79,-205 80,-360 0,-235 -63,-392 -220,-551 -104,-105 -186,-152 -317,-185 -113,-28 -317,-23 -423,10 -225,72 -411,271 -475,509 -45,169 -28,391 42,550 73,165 234,322 388,377 135,49 330,59 466,25 z m 2679,336 c -343,-57 -565,-294 -565,-602 0,-184 76,-350 199,-433 84,-58 137,-81 366,-166 304,-112 372,-151 416,-236 63,-125 -30,-298 -193,-360 -56,-21 -79,-24 -208,-24 -131,0 -155,3 -243,29 -55,16 -159,59 -233,96 l -134,66 V 693 520 l 73,-36 c 140,-71 330,-123 509,-138 152,-14 362,35 498,116 136,81 259,242 290,383 6,28 11,89 11,136 0,185 -87,333 -250,428 -78,46 -108,59 -348,145 -217,78 -266,102 -315,153 -121,125 -102,311 42,407 70,46 149,66 262,66 165,0 308,-41 471,-134 l 77,-44 v 174 173 l -44,26 c -179,105 -469,156 -681,121 z m 7860,8 c -11,-2 -45,-9 -75,-15 -152,-31 -368,-204 -478,-384 l -37,-60 -3,213 -2,212 h -165 -165 V 1435 400 h 165 165 v 630 630 l 56,91 c 124,201 233,321 330,366 29,13 89,29 134,35 69,10 93,10 159,-4 42,-9 97,-25 121,-37 24,-11 45,-21 47,-21 2,0 3,85 3,190 v 189 l -52,16 c -55,16 -169,27 -203,19 z M 290,1878 c 0,-730 7,-822 69,-988 137,-365 545,-584 961,-516 320,53 569,259 672,556 43,126 48,208 48,893 v 647 h -170 -170 v -642 c -1,-709 -3,-746 -60,-861 -57,-116 -178,-217 -308,-257 -92,-29 -244,-27 -333,3 -137,47 -251,141 -303,251 -55,116 -56,126 -56,844 v 662 H 465 290 Z M 7315,888 c -113,-41 -195,-150 -196,-261 -2,-121 56,-215 165,-266 75,-37 133,-40 206,-12 76,29 125,74 161,146 29,60 31,71 27,140 -4,60 -11,84 -34,122 -70,112 -217,171 -329,131 z\"\n transform=\"matrix(0.025,0,0,-0.025,172,135)\"\n fill=\"#000000\"\n stroke=\"none\"\n id=\"path58745\"\n style=\"display:none;-webkit-print-color-adjust:exact\" />\n <path\n style=\"fill:none;stroke:#ff0000;stroke-width:5.205;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:0.980745\"\n d=\"m 182.87587,75.671899 c 0.75744,14.845009 -5.4956,46.240161 17.66486,46.370091 23.55316,-1.17501 17.66948,-23.85984 18.2092,-45.922691\"\n id=\"path58811\"\n sodipodi:nodetypes=\"ccc\" />\n <path\n style=\"fill:none;stroke:#ff0000;stroke-width:5.205;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:0.980745\"\n d=\"m 236.68231,75.208573 0.91278,62.367927\"\n id=\"path58813\"\n sodipodi:nodetypes=\"cc\" />\n <path\n style=\"fill:none;stroke:#ff0000;stroke-width:5.205;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:0.980745\"\n d=\"m 242.48958,84.50798 c 47.71874,-31.139949 47.26786,54.84867 3.59911,34.95568\"\n id=\"path58815\"\n sodipodi:nodetypes=\"cc\" />\n <path\n style=\"fill:none;stroke:#ff0000;stroke-width:5.205;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:0.980745\"\n d=\"m 291.8253,101.62618 c 4.82616,-34.739992 34.45558,-28.203694 43.59264,-12.473604 9.13784,15.731424 -7.21867,46.700294 -37.71009,27.146354\"\n id=\"path58817\"\n sodipodi:nodetypes=\"csc\" />\n <path\n style=\"fill:none;stroke:#ff0000;stroke-width:5.205;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:0.980745\"\n d=\"M 359.77592,126.1369 353.3902,113.40746\"\n id=\"path58819\"\n sodipodi:nodetypes=\"cc\" />\n <path\n style=\"fill:none;stroke:#ff0000;stroke-width:5.205;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:0.980745;-webkit-print-color-adjust:exact\"\n d=\"m 351.93759,124.7436 10.50858,-9.61176\"\n id=\"path58819-8\"\n sodipodi:nodetypes=\"cc\" />\n <path\n style=\"fill:none;stroke:#ff0000;stroke-width:5.205;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:0.980745\"\n d=\"m 402.88227,79.753777 c -22.04047,-12.809114 -35.45736,11.558708 -18.00926,17.40638 39.98739,13.652123 4.2711,32.110133 -10.25198,22.100363\"\n id=\"path58821\"\n sodipodi:nodetypes=\"ccc\" />\n <path\n style=\"fill:none;stroke:#ff0000;stroke-width:5.205;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:0.980745\"\n d=\"m 418.63576,53.072922 c 2.8441,18.861023 2.25991,47.872908 -0.19999,70.920108\"\n id=\"path58823\"\n sodipodi:nodetypes=\"cc\" />\n <path\n style=\"fill:none;stroke:#ff0000;stroke-width:5.205;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:0.980745\"\n d=\"m 426.58888,82.656092 c 27.05913,-24.90877 36.26296,17.927048 24.2854,40.819378\"\n id=\"path58825\"\n sodipodi:nodetypes=\"cc\" />\n <path\n style=\"fill:none;stroke:#ff0000;stroke-width:5.205;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:0.980745;-webkit-print-color-adjust:exact\"\n d=\"m 508.91998,52.649703 c 2.8441,18.86103 2.25991,47.872907 -0.19999,70.920107\"\n id=\"path58823-2\"\n sodipodi:nodetypes=\"cc\" />\n <path\n style=\"fill:none;stroke:#ff0000;stroke-width:5.205;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:0.980745;-webkit-print-color-adjust:exact\"\n d=\"m 516.8731,82.232873 c 27.05913,-24.90877 36.26296,17.927047 24.2854,40.819377\"\n id=\"path58825-0\"\n sodipodi:nodetypes=\"cc\" />\n <path\n style=\"fill:none;stroke:#ff0000;stroke-width:5.205;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:0.980745\"\n d=\"M 497.64037,40.645865 466.9699,147.60377\"\n id=\"path58827\"\n sodipodi:nodetypes=\"cc\" />\n <path\n style=\"fill:none;stroke:#ff0000;stroke-width:5.205;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:0.980745\"\n d=\"m 563.11865,78.027376 1.24943,46.964894\"\n id=\"path58833\" />\n <path\n style=\"fill:none;stroke:#ff0000;stroke-width:5.205;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:0.980745\"\n d=\"m 569.09548,85.410387 c 4.48697,-6.03352 8.72964,-12.478417 18.13758,-10.225202\"\n id=\"path58835\"\n sodipodi:nodetypes=\"cc\" />\n</svg>\n","output":"str","x":899.6666412353516,"y":612.9999771118164,"wires":[["f57dc82d2f012518"]]},{"id":"f57dc82d2f012518","type":"http response","z":"f346d45c81f595e5","name":"image/svg response","statusCode":"","headers":{"content-type":"image/svg+xml"},"x":1373.6666412353516,"y":612.9999771118164,"wires":[]},{"id":"39cf074fa2bfaf2a","type":"template","z":"f346d45c81f595e5","name":"page3 content","field":"payload","fieldType":"msg","format":"handlebars","syntax":"plain","template":"<p>\nPage three contains a link to the Node-RED flow that made this happen. It works on any other Node-RED that happens to be in the vicinity.\n</p>\n\n<p>\n Link to the <a href=\"/example01/flow.json\">to the flow</a> that makes this happen.\n</p>\n\n<p>\n Finally, <a href=\"/example01/notfound\">this page does not</a> exist.\n</p>\n\n","output":"str","x":909.6666412353516,"y":568.2499771118164,"wires":[["a622f6c4342adac5"]]},{"id":"a622f6c4342adac5","type":"http response","z":"f346d45c81f595e5","name":"html content","statusCode":"","headers":{"content-type":"text/html"},"x":1403.6666412353516,"y":568.2499771118164,"wires":[]},{"id":"5cb9be50d953ec61","type":"ut-assert-values","z":"f346d45c81f595e5","name":"","rules":[{"p":"statusCode","pt":"msg","t":"eql","to":"404","tot":"num"}],"x":1201.6666450500488,"y":299.4999723434448,"wires":[[]]},{"id":"1be51f04e59403bc","type":"ut-assert-values","z":"f346d45c81f595e5","name":"","rules":[{"p":"statusCode","pt":"msg","t":"eql","to":"200","tot":"num"},{"p":"payload","pt":"msg","t":"mth","to":"Page two is far more interesting","tot":"str"}],"x":1181.6666450500488,"y":109.99997234344482,"wires":[[]]},{"id":"052939ee49dc884f","type":"ut-assert-values","z":"f346d45c81f595e5","name":"","rules":[{"p":"statusCode","pt":"msg","t":"eql","to":"200","tot":"num"},{"p":"payload","pt":"msg","t":"mth","to":"This is page number one","tot":"str"}],"x":1181.6666450500488,"y":204.74997234344482,"wires":[[]]},{"id":"d0794bae04b5a721","type":"delay","z":"f346d45c81f595e5","name":"","pauseType":"random","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"100","randomLast":"500","randomUnits":"milliseconds","drop":false,"allowrate":false,"outputs":1,"x":572.6666450500488,"y":208.99997234344482,"wires":[["e5324341bc9a0a54","0455e52d6481298a","fb940a9af3e05b41"]]}]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[{"id":"3be6bc074c7647bd","type":"tab","label":"[http] multiple endpoints don't all get the request","disabled":false,"info":"If there are multiple endpoints that are completely same, then ordering of definition takes precedents.\n\nAn endpoint is the same when method and path are the same.\n\nSince we don't know which order the endpoints are defined by ErlangRED, we collect together all their outputs and join to form an array of size 1.\n\nIf multiple messages are generated then the join 2 will trigger and hence cause a failure.\n\nOne request, one message and one response, regardless of the number of endpoints.","env":[{"name":"ERED_NOT_EUNIT","value":"true","type":"bool"},{"name":"ERED_TIMEOUT","value":"5","type":"num"}]},{"id":"6f3510804fc3bee4","type":"junction","z":"3be6bc074c7647bd","x":795.0816414356232,"y":280.75,"wires":[["632ce57e1e3a5325","5208ae0ad47c65ba"]]},{"id":"8fc6e3d06952961c","type":"http in","z":"3be6bc074c7647bd","name":"","url":"/t3be6bc074c7647bd/example06/data","method":"get","upload":false,"swaggerDoc":"","x":345,"y":280.75,"wires":[["6f3510804fc3bee4"]]},{"id":"5208ae0ad47c65ba","type":"ut-assert-success","z":"3be6bc074c7647bd","name":"","count":1,"x":1036,"y":280.75,"wires":[]},{"id":"699c2aea3ddbdbaa","type":"inject","z":"3be6bc074c7647bd","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":645,"y":1116,"wires":[["2a450c41c1b18bc4"]]},{"id":"2a450c41c1b18bc4","type":"http request","z":"3be6bc074c7647bd","name":"","method":"GET","ret":"txt","paytoqs":"ignore","url":"http://localhost:8080/t3be6bc074c7647bd/example06/data","tls":"","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":922,"y":1045,"wires":[["14438173ea65a0da","3da4d3a3903f38ae"]]},{"id":"14438173ea65a0da","type":"ut-assert-success","z":"3be6bc074c7647bd","name":"","count":1,"x":1216,"y":1046,"wires":[]},{"id":"f1505d2f3d4bd3c1","type":"http response","z":"3be6bc074c7647bd","name":"","statusCode":"200","headers":{},"x":1012,"y":485,"wires":[]},{"id":"632ce57e1e3a5325","type":"change","z":"3be6bc074c7647bd","name":"","rules":[{"p":"payload","pt":"msg","t":"set","to":"ok","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":989,"y":422,"wires":[["f1505d2f3d4bd3c1"]]},{"id":"3da4d3a3903f38ae","type":"ut-assert-values","z":"3be6bc074c7647bd","name":"","rules":[{"p":"payload","pt":"msg","t":"eql","to":"ok","tot":"str"}],"x":1236,"y":952.5,"wires":[[]]},{"id":"6075c92606ad6bc3","type":"http in","z":"3be6bc074c7647bd","name":"","url":"/t3be6bc074c7647bd/example06/data","method":"get","upload":false,"swaggerDoc":"","x":303,"y":350,"wires":[["6f3510804fc3bee4"]]},{"id":"3fe808e4d905d92c","type":"http in","z":"3be6bc074c7647bd","name":"","url":"/t3be6bc074c7647bd/example06/data","method":"get","upload":false,"swaggerDoc":"","x":349,"y":420,"wires":[["6f3510804fc3bee4"]]},{"id":"a5c3c0556921b32e","type":"http in","z":"3be6bc074c7647bd","name":"","url":"/t3be6bc074c7647bd/example06/data","method":"get","upload":false,"swaggerDoc":"","x":413,"y":491,"wires":[["6f3510804fc3bee4"]]},{"id":"4fe04ea22f685e60","type":"http in","z":"3be6bc074c7647bd","name":"","url":"/t3be6bc074c7647bd/example06/data","method":"get","upload":false,"swaggerDoc":"","x":477,"y":552,"wires":[["6f3510804fc3bee4"]]},{"id":"a8e3f4cfbf278d63","type":"http in","z":"3be6bc074c7647bd","name":"","url":"/t3be6bc074c7647bd/example06/data","method":"get","upload":false,"swaggerDoc":"","x":548,"y":614,"wires":[["6f3510804fc3bee4"]]},{"id":"890bf6f79888e762","type":"http in","z":"3be6bc074c7647bd","name":"","url":"/t3be6bc074c7647bd/example06/data","method":"get","upload":false,"swaggerDoc":"","x":572,"y":684,"wires":[["6f3510804fc3bee4"]]},{"id":"9766fef2f5da140d","type":"http in","z":"3be6bc074c7647bd","name":"","url":"/t3be6bc074c7647bd/example06/data","method":"get","upload":false,"swaggerDoc":"","x":624,"y":737,"wires":[["6f3510804fc3bee4"]]},{"id":"6e058edf3b2d3d2e","type":"http in","z":"3be6bc074c7647bd","name":"","url":"/t3be6bc074c7647bd/example06/data","method":"get","upload":false,"swaggerDoc":"","x":419,"y":219,"wires":[["6f3510804fc3bee4"]]}]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[{"id":"27804627fb8f56bd","type":"tab","label":"[http] nodes should be able to handle requests","disabled":false,"info":"The http in node setups an endpoint and from the same flow, i.e. this one, the http request node makes a request to obtain the data that is stored in the template node.","env":[{"name":"ERED_PENDING","value":"false","type":"bool"},{"name":"ERED_NOT_EUNIT","value":"true","type":"bool"},{"name":"ERED_TIMEOUT","value":"3","type":"num"}]},{"id":"fc6d2a8652ac0a13","type":"http in","z":"27804627fb8f56bd","name":"","url":"/t27804627fb8f56bd/test/url","method":"get","upload":false,"swaggerDoc":"","x":185,"y":316,"wires":[["1e3a49fdb9c9a6a1"]]},{"id":"b35819f95cd15265","type":"http response","z":"27804627fb8f56bd","name":"","statusCode":"","headers":{},"x":762,"y":680,"wires":[]},{"id":"12559851e8165837","type":"inject","z":"27804627fb8f56bd","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":189,"y":163.5,"wires":[["2b8834d322efe359"]]},{"id":"1e3a49fdb9c9a6a1","type":"template","z":"27804627fb8f56bd","name":"","field":"payload","fieldType":"msg","format":"handlebars","syntax":"plain","template":"Hello world.\n\nAnd one more thing.\n\nThis is a test.\n\nBut should work.\n\n","output":"str","x":506,"y":498,"wires":[["b35819f95cd15265"]]},{"id":"93a68f36da4a0c36","type":"http request","z":"27804627fb8f56bd","name":"","method":"GET","ret":"txt","paytoqs":"ignore","url":"http://localhost:8080/t27804627fb8f56bd/test/url","tls":"","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":594.3333333333334,"y":163.5,"wires":[["732ff0f8a0cdb2c9"]]},{"id":"2b8834d322efe359","type":"delay","z":"27804627fb8f56bd","name":"","pauseType":"delay","timeout":"250","timeoutUnits":"milliseconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":386.6666666666667,"y":163.5,"wires":[["93a68f36da4a0c36"]]},{"id":"732ff0f8a0cdb2c9","type":"ut-assert-values","z":"27804627fb8f56bd","name":"","rules":[{"p":"statusCode","pt":"msg","t":"eql","to":"200","tot":"num"},{"p":"payload","pt":"msg","t":"eql","to":"\"Hello world.\\n\\nAnd one more thing.\\n\\nThis is a test.\\n\\nBut should work.\\n\\n\"","tot":"json"}],"x":812,"y":163.5,"wires":[[]]}]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[{"id":"b864b3e3510cd120","type":"tab","label":"[http] post requests - json content","disabled":false,"info":"Post requests have formdata form, handle binary data and json content or plain text.\n\n","env":[{"name":"ERED_NOT_EUNIT","value":"true","type":"bool"},{"name":"ERED_TIMEOUT","value":"3","type":"num"}]},{"id":"b29550d7fb531718","type":"http in","z":"b864b3e3510cd120","name":"","url":"/tb864b3e3510cd120/data","method":"post","upload":false,"swaggerDoc":"","x":197,"y":208.25,"wires":[["d44e6d2a2486f53e","fedba336ce487092","24654fde735ea5e5"]]},{"id":"6769eaa26a8493f1","type":"http response","z":"b864b3e3510cd120","name":"","statusCode":"200","headers":{},"x":612,"y":431,"wires":[]},{"id":"5a2c281c92f8b8c4","type":"http request","z":"b864b3e3510cd120","name":"","method":"POST","ret":"txt","paytoqs":"body","url":"http://localhost:8080/tb864b3e3510cd120/data","tls":"","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":608,"y":754,"wires":[["17f83f445e55daa6"]]},{"id":"9587bcbe2dfedfdd","type":"inject","z":"b864b3e3510cd120","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":199,"y":518,"wires":[["2e442f3b0bb40958"]]},{"id":"2e442f3b0bb40958","type":"template","z":"b864b3e3510cd120","name":"","field":"payload","fieldType":"msg","format":"json","syntax":"plain","template":"{ \"value\": \"hello world\" }","output":"str","x":374,"y":638,"wires":[["5a2c281c92f8b8c4"]]},{"id":"d44e6d2a2486f53e","type":"template","z":"b864b3e3510cd120","name":"","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{ \n \"response\": {{{ payload }}}\n}","output":"str","x":420,"y":353,"wires":[["6769eaa26a8493f1"]]},{"id":"fedba336ce487092","type":"ut-assert-success","z":"b864b3e3510cd120","name":"","count":1,"x":452,"y":60.5,"wires":[]},{"id":"17f83f445e55daa6","type":"ut-assert-success","z":"b864b3e3510cd120","name":"","count":1,"x":884,"y":753,"wires":[]},{"id":"24654fde735ea5e5","type":"json","z":"b864b3e3510cd120","name":"","property":"payload","action":"","pretty":false,"x":508,"y":208.25,"wires":[["332f0fd7b72d092c"]]},{"id":"332f0fd7b72d092c","type":"ut-assert-values","z":"b864b3e3510cd120","name":"","rules":[{"p":"payload.value","pt":"msg","t":"eql","to":"hello world","tot":"str"},{"p":"payload","pt":"msg","t":"eql","to":"{ \"value\" : \"hello world\" }","tot":"json"}],"x":827,"y":208.25,"wires":[[]]}]
|
|
@@ -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":"http://localhost:
|
|
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":"http://localhost:8080/f38603a59963386c/data","tls":"","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"]]}]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[{"id":"bfced61e72c69715","type":"tab","label":"[http] request, ensure url and method are handled","disabled":false,"info":"url and method can either be set by the node or the msg but the logic is different:\n\n- if msg.url is set and node.url is set: node.url takes precedents\n- if msg.url is set and node.url is not set: then msg.url is used\n- if msg.url is not set, node.url is set: node.url is taken\n- if msg.url and node.url are both not set, error occurs\n\nThe same logic applies to the `method` attribute.\n","env":[{"name":"ERED_NOT_EUNIT","value":"false","type":"bool"},{"name":"ERED_PENDING","value":"false","type":"bool"}]},{"id":"02d3bfbbffd30df1","type":"group","z":"bfced61e72c69715","name":"url: set on both","style":{"label":true},"nodes":["b296805ef1d1a7f5","7b6b6db1af849c68"],"x":17,"y":240,"w":383,"h":143},{"id":"27c35a832da93ca7","type":"group","z":"bfced61e72c69715","name":"url: set only on node","style":{"label":true},"nodes":["9bda8c4cdf2064f4","443b760d98f1d39e"],"x":19,"y":412,"w":383,"h":143},{"id":"9da56627f7059503","type":"group","z":"bfced61e72c69715","name":"url: set on neither","style":{"label":true},"nodes":["4aa2a8b25a05ca8e","ad5896b5b9422e32"],"x":19,"y":585,"w":383,"h":143},{"id":"bdebac323df24a74","type":"group","z":"bfced61e72c69715","name":"url: set on msg","style":{"label":true},"nodes":["7b80ebe21fb0c58f","429bf3f4f48119d8"],"x":18,"y":747,"w":383,"h":143},{"id":"83172d43811709da","type":"group","z":"bfced61e72c69715","name":"method: set on both","style":{"label":true},"nodes":["f096cb2b1cec8f15","58a01b842415ec77"],"x":489,"y":242,"w":383,"h":143},{"id":"0dcbb43b70f2e7ea","type":"group","z":"bfced61e72c69715","name":"method: set on msg","style":{"label":true},"nodes":["310eec5943ec1806","f2cef0d042d6d61b"],"x":490,"y":425,"w":383,"h":143},{"id":"48afb936691161db","type":"group","z":"bfced61e72c69715","name":"method: set on neither","style":{"label":true},"nodes":["f8957c740e8d8da7","082b70d1af4ec13d"],"x":493,"y":596,"w":383,"h":143},{"id":"cfcdeea5dd61944e","type":"group","z":"bfced61e72c69715","name":"method: set on node","style":{"label":true},"nodes":["63e2a67aa6004b02","afe07e1a7592dd7f"],"x":493,"y":766,"w":383,"h":143},{"id":"aaa604d58e2b78b3","type":"group","z":"bfced61e72c69715","name":"url: set on msg","style":{"label":true},"nodes":["476a6bfe51259456","946a03fc4a16014c"],"x":254,"y":972,"w":383,"h":143},{"id":"b296805ef1d1a7f5","type":"inject","z":"bfced61e72c69715","g":"02d3bfbbffd30df1","name":"","props":[{"p":"url","v":"http://msg.example.com","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":113,"y":281,"wires":[["7b6b6db1af849c68"]]},{"id":"7b6b6db1af849c68","type":"http request","z":"bfced61e72c69715","g":"02d3bfbbffd30df1","name":"","method":"GET","ret":"txt","paytoqs":"ignore","url":"http://node.example.com","tls":"","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":304,"y":342,"wires":[[]]},{"id":"9bda8c4cdf2064f4","type":"inject","z":"bfced61e72c69715","g":"27c35a832da93ca7","name":"","props":[],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":115,"y":453,"wires":[["443b760d98f1d39e"]]},{"id":"443b760d98f1d39e","type":"http request","z":"bfced61e72c69715","g":"27c35a832da93ca7","name":"","method":"GET","ret":"txt","paytoqs":"ignore","url":"http://node.example.com","tls":"","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":306,"y":514,"wires":[[]]},{"id":"4aa2a8b25a05ca8e","type":"inject","z":"bfced61e72c69715","g":"9da56627f7059503","name":"","props":[],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":115,"y":626,"wires":[["ad5896b5b9422e32"]]},{"id":"ad5896b5b9422e32","type":"http request","z":"bfced61e72c69715","g":"9da56627f7059503","name":"","method":"GET","ret":"txt","paytoqs":"ignore","url":"","tls":"","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":306,"y":687,"wires":[[]]},{"id":"7b80ebe21fb0c58f","type":"inject","z":"bfced61e72c69715","g":"bdebac323df24a74","name":"","props":[{"p":"url","v":"http://msg.example.com","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":114,"y":788,"wires":[["429bf3f4f48119d8"]]},{"id":"429bf3f4f48119d8","type":"http request","z":"bfced61e72c69715","g":"bdebac323df24a74","name":"","method":"GET","ret":"txt","paytoqs":"ignore","url":"","tls":"","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":305,"y":849,"wires":[[]]},{"id":"f096cb2b1cec8f15","type":"inject","z":"bfced61e72c69715","g":"83172d43811709da","name":"","props":[{"p":"method","v":"GET","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":585,"y":283,"wires":[["58a01b842415ec77"]]},{"id":"58a01b842415ec77","type":"http request","z":"bfced61e72c69715","g":"83172d43811709da","name":"","method":"POST","ret":"txt","paytoqs":"ignore","url":"http://node.example.com","tls":"","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":776,"y":344,"wires":[[]]},{"id":"310eec5943ec1806","type":"inject","z":"bfced61e72c69715","g":"0dcbb43b70f2e7ea","name":"","props":[{"p":"method","v":"GET","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":586,"y":466,"wires":[["f2cef0d042d6d61b"]]},{"id":"f2cef0d042d6d61b","type":"http request","z":"bfced61e72c69715","g":"0dcbb43b70f2e7ea","name":"","method":"use","ret":"txt","paytoqs":"ignore","url":"http://node.example.com","tls":"","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":777,"y":527,"wires":[[]]},{"id":"f8957c740e8d8da7","type":"inject","z":"bfced61e72c69715","g":"48afb936691161db","name":"","props":[],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":589,"y":637,"wires":[["082b70d1af4ec13d"]]},{"id":"082b70d1af4ec13d","type":"http request","z":"bfced61e72c69715","g":"48afb936691161db","name":"","method":"use","ret":"txt","paytoqs":"ignore","url":"http://node.example.com","tls":"","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":780,"y":698,"wires":[[]]},{"id":"63e2a67aa6004b02","type":"inject","z":"bfced61e72c69715","g":"cfcdeea5dd61944e","name":"","props":[],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":589,"y":807,"wires":[["afe07e1a7592dd7f"]]},{"id":"afe07e1a7592dd7f","type":"http request","z":"bfced61e72c69715","g":"cfcdeea5dd61944e","name":"","method":"GET","ret":"txt","paytoqs":"ignore","url":"http://node.example.com","tls":"","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":780,"y":868,"wires":[[]]},{"id":"476a6bfe51259456","type":"inject","z":"bfced61e72c69715","g":"aaa604d58e2b78b3","name":"","props":[],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":350,"y":1013,"wires":[["946a03fc4a16014c"]]},{"id":"946a03fc4a16014c","type":"http request","z":"bfced61e72c69715","g":"aaa604d58e2b78b3","name":"","method":"use","ret":"txt","paytoqs":"ignore","url":"","tls":"","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":541,"y":1074,"wires":[[]]}]
|
|
@@ -0,0 +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"]]}]
|
|
@@ -0,0 +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":741,"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":"http://localhost:8080/ae8a9b0bbbaff447/data","tls":"","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":"http://localhost:8080/ae8a9b0bbbaff447/data","tls":"","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":[[]]}]
|
|
@@ -0,0 +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":[]}]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[{"id":"6d46e3fe1f2245b8","type":"tab","label":"[inject] support octal, binary & hex underscore values","disabled":false,"info":"## Support underscore characters \n\nTo make values more readable, support underscore character in their definition.\n\nMultiple underscores are supported and trailing underscores are supported.","env":[{"name":"ERED_ONLY","value":"true","type":"bool"}]},{"id":"f5617e5ac6b90bfc","type":"inject","z":"6d46e3fe1f2245b8","name":"","props":[{"p":"binary_value","v":"0b0010_0011_0011______________","vt":"num"},{"p":"octal_value","v":"0o07654_1234_1111_____","vt":"num"},{"p":"hex_value","v":"0x121f_abcd_4322____","vt":"num"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":273,"y":443,"wires":[["d9ce579175454890"]]},{"id":"d9ce579175454890","type":"ut-assert-values","z":"6d46e3fe1f2245b8","name":"","ignore_failure_if_succeed":false,"rules":[{"t":"eql","p":"binary_value","pt":"msg","to":"563","tot":"num"},{"t":"eql","p":"octal_value","pt":"msg","to":"67312927305","tot":"num"},{"t":"eql","p":"hex_value","pt":"msg","to":"19927235642146","tot":"num"}],"x":552,"y":615,"wires":[[]]}]
|
|
@@ -0,0 +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":[]}]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[{"disabled":false,"env":[],"id":"0cc95e44532c14ec","info":"Ensure that unsupported functions don't crash the process and are instead pushed out to the debug log.","label":"[inject] unsupported JSONata function","type":"tab"},{"h":240.5,"id":"95c19d8bc208f282","name":"exception is raised and captured, no message is generated by inject node","nodes":["1bf09e3d2cebe0d7","8a7407c5a476617f","3e849ab6c6bee761","d02e47bf421d74ac","5dd119b3c4a92c78","4b6cf03dc32f937e"],"style":{"label":true},"type":"group","w":830,"x":123,"y":166,"z":"0cc95e44532c14ec"},{"h":143,"id":"442ef567ebbd92af","name":"exception is raised but not captured, debug message. Also no message is generated by the inject node.","nodes":["650d8bbc3d9dc0c2","ad5087bbf2439079","478138fefcd2b049","3acf1a7f7c4a7f92"],"style":{"label":true},"type":"group","w":871,"x":115,"y":474.5,"z":"0cc95e44532c14ec"},{"crontab":"","g":"95c19d8bc208f282","id":"1bf09e3d2cebe0d7","name":"","once":false,"onceDelay":0.1,"props":[{"p":"topic","v":"1 - $fromMillis()","vt":"jsonata"}],"repeat":"","topic":"","type":"inject","wires":[["8a7407c5a476617f"]],"x":219,"y":365,"z":"0cc95e44532c14ec"},{"g":"95c19d8bc208f282","id":"8a7407c5a476617f","name":"","type":"ut-assert-failure","wires":[],"x":621,"y":365.5,"z":"0cc95e44532c14ec"},{"g":"95c19d8bc208f282","id":"3e849ab6c6bee761","name":"","scope":["1bf09e3d2cebe0d7"],"type":"catch","uncaught":false,"wires":[["d02e47bf421d74ac"]],"x":218,"y":316,"z":"0cc95e44532c14ec"},{"count":1,"g":"95c19d8bc208f282","id":"d02e47bf421d74ac","name":"","type":"ut-assert-success","wires":[],"x":494,"y":210.5,"z":"0cc95e44532c14ec"},{"crontab":"","g":"442ef567ebbd92af","id":"650d8bbc3d9dc0c2","name":"","once":false,"onceDelay":0.1,"props":[{"p":"topic","v":"1 - $fromMillis()","vt":"jsonata"}],"repeat":"","topic":"","type":"inject","wires":[["ad5087bbf2439079"]],"x":211,"y":515.5,"z":"0cc95e44532c14ec"},{"g":"442ef567ebbd92af","id":"ad5087bbf2439079","name":"","type":"ut-assert-failure","wires":[],"x":729,"y":516,"z":"0cc95e44532c14ec"},{"g":"442ef567ebbd92af","id":"478138fefcd2b049","inverse":false,"msgtype":"error","name":"","nodeid":"650d8bbc3d9dc0c2","scope":["650d8bbc3d9dc0c2"],"type":"ut-assert-debug","wires":[["3acf1a7f7c4a7f92"]],"x":464,"y":576.5,"z":"0cc95e44532c14ec"},{"g":"95c19d8bc208f282","id":"5dd119b3c4a92c78","inverse":true,"msgtype":"normal","name":"","nodeid":"1bf09e3d2cebe0d7","scope":["1bf09e3d2cebe0d7"],"type":"ut-assert-debug","wires":[["4b6cf03dc32f937e"]],"x":595,"y":285.5,"z":"0cc95e44532c14ec"},{"g":"95c19d8bc208f282","id":"4b6cf03dc32f937e","name":"","type":"ut-assert-failure","wires":[],"x":857,"y":207,"z":"0cc95e44532c14ec"},{"g":"442ef567ebbd92af","id":"3acf1a7f7c4a7f92","ignore_failure_if_succeed":false,"name":"","rules":[{"p":"payload.name","pt":"msg","t":"eql","to":"inject","tot":"str"},{"p":"payload['level']","pt":"msg","t":"eql","to":"20","tot":"num"},{"p":"payload.format","pt":"msg","t":"eql","to":"object","tot":"str"},{"p":"payload.id","pt":"msg","t":"eql","to":"650d8bbc3d9dc0c2","tot":"str"},{"p":"debug.nodeid","pt":"msg","t":"eql","to":"650d8bbc3d9dc0c2","tot":"str"}],"type":"ut-assert-values","wires":[[]],"x":880,"y":576.5,"z":"0cc95e44532c14ec"}]
|
|
@@ -0,0 +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":[[]]}]
|
|
@@ -0,0 +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":[[]]}]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[{"disabled":false,"env":[{"name":"ERED_PENDING","type":"bool","value":"false"}],"id":"597ee2a683d9908f","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!","label":"[json] raise exception if content not valid","type":"tab"},{"h":308.5,"id":"4dbd0f7712eb9163","name":"with catch node","nodes":["9129e7b9383dead9","a1f180d31364499f","0e7c595d0385aab1","88ab83684f23950e","c712bcadacd8b244","289b1e68bc0aa351"],"style":{"label":true},"type":"group","w":1055,"x":197,"y":220,"z":"597ee2a683d9908f"},{"h":318,"id":"af6d16c1fc56ad30","name":"with catch node","nodes":["9e57eb53f1559cef","9219ceac570a5289","ce0f8e5ab2646ac9","3f3d3c96c3ac12d1"],"style":{"label":true},"type":"group","w":936,"x":195,"y":613.5,"z":"597ee2a683d9908f"},{"crontab":"","g":"4dbd0f7712eb9163","id":"9129e7b9383dead9","name":"","once":false,"onceDelay":0.1,"payload":"","payloadType":"date","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","topic":"","type":"inject","wires":[["a1f180d31364499f"]],"x":303,"y":261,"z":"597ee2a683d9908f"},{"action":"","g":"4dbd0f7712eb9163","id":"a1f180d31364499f","name":"","pretty":true,"property":"payload","type":"json","wires":[[]],"x":605,"y":487.5,"z":"597ee2a683d9908f"},{"g":"4dbd0f7712eb9163","id":"0e7c595d0385aab1","name":"","scope":["a1f180d31364499f"],"type":"catch","uncaught":false,"wires":[["88ab83684f23950e"]],"x":593,"y":270,"z":"597ee2a683d9908f"},{"count":1,"g":"4dbd0f7712eb9163","id":"88ab83684f23950e","name":"","type":"ut-assert-success","wires":[],"x":923,"y":270,"z":"597ee2a683d9908f"},{"crontab":"","g":"af6d16c1fc56ad30","id":"9e57eb53f1559cef","name":"","once":false,"onceDelay":0.1,"payload":"","payloadType":"date","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","topic":"","type":"inject","wires":[["9219ceac570a5289"]],"x":301,"y":664,"z":"597ee2a683d9908f"},{"action":"","g":"af6d16c1fc56ad30","id":"9219ceac570a5289","name":"","pretty":true,"property":"payload","type":"json","wires":[[]],"x":603,"y":890.5,"z":"597ee2a683d9908f"},{"g":"af6d16c1fc56ad30","id":"ce0f8e5ab2646ac9","inverse":false,"msgtype":"error","name":"","nodeid":"9219ceac570a5289","scope":["9219ceac570a5289"],"type":"ut-assert-debug","wires":[["3f3d3c96c3ac12d1"]],"x":668,"y":791.5,"z":"597ee2a683d9908f"},{"g":"4dbd0f7712eb9163","id":"c712bcadacd8b244","inverse":true,"msgtype":"error","name":"","nodeid":"a1f180d31364499f","scope":["a1f180d31364499f"],"type":"ut-assert-debug","wires":[["289b1e68bc0aa351"]],"x":757,"y":385,"z":"597ee2a683d9908f"},{"g":"4dbd0f7712eb9163","id":"289b1e68bc0aa351","name":"","type":"ut-assert-failure","wires":[],"x":1156,"y":384,"z":"597ee2a683d9908f"},{"g":"af6d16c1fc56ad30","id":"3f3d3c96c3ac12d1","ignore_failure_if_succeed":false,"name":"","rules":[{"p":"debug.nodeid","pt":"msg","t":"eql","to":"9219ceac570a5289","tot":"str"},{"p":"payload['level']","pt":"msg","t":"eql","to":"20","tot":"num"},{"p":"payload.msg.error_msg","pt":"msg","t":"mth","to":"Exception: error:function_clause Stack","tot":"str"}],"type":"ut-assert-values","wires":[[]],"x":1025,"y":654.5,"z":"597ee2a683d9908f"}]
|
|
@@ -0,0 +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":[]}]
|
|
@@ -0,0 +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":"false"}]},{"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":["e5f1938d9c213a06"],"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"]]}]
|
|
@@ -0,0 +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":[[]]}]
|
|
@@ -0,0 +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>\nHello</h1>\n<p>\nDoes Earmark support inline HTML?</p>\n<center>\n <b>I don't know</b></center>\n<p>\nBut I will find out.</p>\n<h1>\nWorld</h1>\n<p>\nThe end.</p>\n","output":"str","x":734,"y":502,"wires":[["c1742fdddda43ca6"]]},{"id":"ceef0885c9ed45f4","type":"markdown","z":"90c1ce90f8af227f","name":"","x":480,"y":502,"wires":[["ade4aebe9981300d"]]},{"id":"c1742fdddda43ca6","type":"ut-assert-values","z":"90c1ce90f8af227f","name":"","rules":[{"t":"eql","p":"payload","pt":"msg","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"]]}]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[{"id":"789db0c14f72267f","type":"tab","label":"[markdown] convert markdown to html","disabled":false,"info":"","env":[]},{"id":"33ffccc4fd703cec","type":"markdown","z":"789db0c14f72267f","name":"","x":499,"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's 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":"","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>\nHello</h1>\n<p>\nWorld.</p>\n<h2>\nExample</h2>\n<p>\nThis is an example of markdown code.</p>\n<p>\nMuch simpler than writing html.</p>\n<p>\nSome would argue that’s why one should use Elixir instead of Erlang.</p>\n<p>\nTrue.</p>\n<h2>\nHuman Cognitive Dissonance</h2>\n<p>\nIs endless but not infinite.</p>\n","output":"str","x":753,"y":400.75,"wires":[["df7139ebb77a4bcb"]]}]
|
|
@@ -0,0 +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.</code></pre>\n","output":"str","x":799,"y":433.75,"wires":[["2d0cbb28bc26917e"]]},{"id":"2d0cbb28bc26917e","type":"ut-assert-values","z":"ce75d24712238223","name":"","rules":[{"t":"eql","p":"payload","pt":"msg","to":"expected_payload","tot":"msg"}],"x":1048,"y":286.5,"wires":[[]]}]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[{"id":"30a121650c89fce3","type":"tab","label":"[module] Using with Statemachine","disabled":false,"info":"## Using module code with statemachines\n\nDemonstrates the use of module nodes with the statemachine node.\n\n## Details\n\nImplements the following state machine:\n\n```mermaid\n%% Generated by the Flow2UML Node @ https://flowhub.org/flow2uml\n%% change direction to LR for Node-RED left-to-right UML\nflowchart TB\ne391be61858495a9@{ shape: \"circle\", label: \"start\" } --> 55a2a011ee5c2445@{ shape: \"rounded\", label: \"Idle\" }\n55a2a011ee5c2445@{ shape: \"rounded\", label: \"Idle\" } -- \"AAR\" --> 7497b5cde23db3d6@{ shape: \"rounded\", label: \"pending\" }\n7497b5cde23db3d6@{ shape: \"rounded\", label: \"pending\" } -- \"AAA Result : AUTHORISATION_REJECTED\" --> 55a2a011ee5c2445@{ shape: \"rounded\", label: \"Idle\" }\n7497b5cde23db3d6@{ shape: \"rounded\", label: \"pending\" } -- \"AAA Result : SUCCESS\" --> f85143342acaa6a2@{ shape: \"rounded\", label: \"open\" }\nf85143342acaa6a2@{ shape: \"rounded\", label: \"open\" } -- \"RAR\" --> f85143342acaa6a2@{ shape: \"rounded\", label: \"open\" }\nf85143342acaa6a2@{ shape: \"rounded\", label: \"open\" } -- \"AAA Result-Code=SUCCESS#124;MULTI_ROUND_AUTH\" --> f85143342acaa6a2@{ shape: \"rounded\", label: \"open\" }\nf85143342acaa6a2@{ shape: \"rounded\", label: \"open\" } -- \"ASR\" --> 4324a228efde6037@{ shape: \"rounded\", label: \"disconnected\" }\nf85143342acaa6a2@{ shape: \"rounded\", label: \"open\" } -- \"AAA Result : AUTHORISATION_REJECTED\" --> 55a2a011ee5c2445@{ shape: \"rounded\", label: \"Idle\" }\n4324a228efde6037@{ shape: \"rounded\", label: \"disconnected\" } -- \"STA\" --> 81adf2e8a4251297@{ shape: \"dbl-circ\", label: \"done\" }\n```\n","env":[{"name":"ERED_ONLY","value":"true","type":"bool"}]},{"id":"c8f34e0352bfc88c","type":"erlmodule","z":"30a121650c89fce3","name":"","module_name":"diameter_statem_authorisation","code":"-module(diameter_statem_authorisation).\n\n%%\n%% APIs: https://www.erlang.org/doc/apps/stdlib/gen_statem.html\n%%\n\n-behaviour(gen_statem).\n\n-export([\n start/0,\n init/1,\n callback_mode/0,\n handle_event/4,\n code_change/4,\n terminate/3,\n stop/0\n]).\n\n%% WARNING: state_functions are not supported by statemachine node.\n%% callback_mode() -> state_functions.\ncallback_mode() -> handle_event_function.\n\n-define(KEEP_STATE(ReplyWith),\n {keep_state, Data, [{reply, From, ReplyWith}]}\n).\n\nstart() ->\n gen_statem:start({local, ?MODULE}, ?MODULE, [], []).\n\nstop() ->\n gen_statem:stop(?MODULE).\nterminate(_Reason, _State, _Data) ->\n void.\ncode_change(_Vsn, State, Data, _Extra) ->\n {ok, State, Data}.\n\n%% Initial state and data\ninit([]) ->\n State = idle, \n Data = 0,\n {ok,State,Data}.\n\n%%% handle event function\n\nhandle_event(\n {call, From},\n <<\"AAR\">>,\n idle,\n Data\n) ->\n {next_state, pending, Data, [{reply, From, ok}]};\n\nhandle_event(\n {call, From},\n {<<\"AAA\">>, <<\"success\">>},\n pending,\n Data\n) ->\n {next_state, open, Data, [{reply, From, ok}]};\n\nhandle_event(\n {call, From},\n {<<\"AAA\">>, <<\"authorisation_rejected\">>},\n pending,\n Data\n) ->\n {next_state, idle, Data, [{reply, From, ok}]};\n\nhandle_event(\n {call, From},\n {<<\"AAA\">>, <<\"authorization_rejected\">>},\n pending,\n Data\n) ->\n {next_state, idle, Data, [{reply, From, ok}]};\n\n\n%% Fall through\nhandle_event(\n {call, From},\n _Action,\n _CurrState,\n Data\n) ->\n ?KEEP_STATE(ignored);\n\n\n%%% Absolute fall through\nhandle_event(EventType, Stiff, State, Data) ->\n io:format(\"TEST : ~p ~p ~p ~p~n\",[EventType, Stiff, State, Data]),\n {keep_state, Data}.\n","x":1033,"y":355,"wires":[]},{"id":"57adb046ca1b49fc","type":"erlstatemachine","z":"30a121650c89fce3","name":"","scope":["c8f34e0352bfc88c"],"emit_on_state_change":false,"x":1097,"y":479,"wires":[["97bf4552cae798b7"]]},{"id":"12a9b126fde76957","type":"inject","z":"30a121650c89fce3","name":"AAR","props":[{"p":"action","v":"AAR","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":643,"y":410,"wires":[["57adb046ca1b49fc"]]},{"id":"97bf4552cae798b7","type":"debug","z":"30a121650c89fce3","name":"debug 1","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":1384,"y":465,"wires":[]},{"id":"a02b7cbed4562f38","type":"inject","z":"30a121650c89fce3","name":"AAA - Authorisation Refjected","props":[{"p":"action","v":"AAA","vt":"str"},{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"AUTHORISATION_REJECTED","payloadType":"str","x":651,"y":552,"wires":[["57adb046ca1b49fc"]]},{"id":"8cb6058b34bc0264","type":"inject","z":"30a121650c89fce3","name":"AAA - Mutli Round trip authorisation","props":[{"p":"action","v":"AAA","vt":"str"},{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"MULTI_ROUND_AUTH","payloadType":"str","x":646,"y":618,"wires":[["57adb046ca1b49fc"]]},{"id":"32893caa4524d6b4","type":"inject","z":"30a121650c89fce3","name":"AAA - Authorisation Successful","props":[{"p":"action","v":"AAA","vt":"str"},{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"SUCCESS","payloadType":"str","x":658.5,"y":693,"wires":[["57adb046ca1b49fc"]]}]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[{"id":"81305f9f22711156","type":"tab","label":"[module] Using with function node","disabled":false,"info":"## Using a module node with a function node\n\nSimple example if using a module node with a function node in Erlang-Red.\n\n## Details\n\nThe <a class=\"ahl-node-only\" data-ids=\"39be0334d43cd425\">module: helper_81305f9f22711156</a> provides a very simple echo function that is used by the <a class=\"ahl-node-only\" data-ids=\"d14a67fea490a436\">function node</a>.\n","env":[{"name":"ERED_ONLY","value":"true","type":"bool"}]},{"id":"39be0334d43cd425","type":"erlmodule","z":"81305f9f22711156","name":"","module_name":"helper_81305f9f22711156","code":"-module(helper_81305f9f22711156).\n\n-export([\n echo/1\n]).\n\necho(V) ->\n V.\n","x":575,"y":220,"wires":[]},{"id":"d14a67fea490a436","type":"function","z":"81305f9f22711156","name":"function 1","func":"#{ <<\"payload\">> := Payload } = Msg,\n\nMsg#{ \n <<\"echoed\">> => helper_81305f9f22711156:echo(Payload),\n <<\"payload\">> => <<\"empty\">> \n}\n","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":579,"y":312.25,"wires":[["faf0b6a70791e8d3"]]},{"id":"086414ce6dfa1270","type":"inject","z":"81305f9f22711156","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"this is the payload","payloadType":"str","x":338,"y":312.25,"wires":[["d14a67fea490a436"]]},{"id":"faf0b6a70791e8d3","type":"ut-assert-values","z":"81305f9f22711156","name":"","ignore_failure_if_succeed":false,"rules":[{"t":"eql","p":"echoed","pt":"msg","to":"this is the payload","tot":"str"},{"t":"eql","p":"payload","pt":"msg","to":"empty","tot":"str"}],"x":810,"y":312.25,"wires":[[]]}]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[{"id":"486c1412721bb241","type":"tab","label":"[mqtt] auto-(re)connect","disabled":false,"info":"mqtt nodes connect automagically to the mqtt broker. \n\nThis test use the exec node to create an mqtt broker using Mosquitto. The broker runs for three seconds before being killed by a timeout set on the exec node.\n\nWhat we simulate here are brokers that are flakey and keep dropping in and out, but each time our nodes reconnect and start working again.\n\nThe complete nodes listen for the exec node to complete - this is when the orignal message has been dealt i.e. when the process has started and stopped. So by successively listening for completes, we start a new Mosquitto when the last just stopped.","env":[{"name":"ERED_PENDING","type":"bool","value":"false"},{"name":"ERED_TIMEOUT","type":"num","value":"12"},{"name":"ERED_NOT_EUNIT","type":"bool","value":"true"}]},{"id":"40e104d4cdec19d8","type":"mqtt out","z":"486c1412721bb241","name":"","topic":"topic","qos":"0","retain":"true","respTopic":"","contentType":"","userProps":"","correl":"","expiry":"","broker":"97960d98b2837fa0","x":1523,"y":325,"wires":[]},{"id":"8751e693b7e1f809","type":"mqtt in","z":"486c1412721bb241","name":"","topic":"topic","qos":"2","datatype":"auto-detect","broker":"97960d98b2837fa0","nl":false,"rap":true,"rh":0,"inputs":0,"x":320.5,"y":104.00001525878906,"wires":[["74ef163d0010e62b"]]},{"id":"908334bdc920a58b","type":"exec","z":"486c1412721bb241","command":"mosquitto","addpay":"","append":"","useSpawn":"true","timer":"3","winHide":false,"oldrc":false,"name":"","x":739,"y":233,"wires":[[],["9740e1d0d308f3c3"],[]]},{"id":"b03b64a7f021f854","type":"inject","z":"486c1412721bb241","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":209,"y":233,"wires":[["908334bdc920a58b"]]},{"id":"cf5e59d549198817","type":"ut-assert-values","z":"486c1412721bb241","name":"","rules":[{"p":"payload","pt":"msg","t":"eql","to":"fubar","tot":"str"},{"p":"topic","pt":"msg","t":"eql","to":"topic","tot":"str"}],"x":726,"y":47.5,"wires":[[]]},{"id":"9740e1d0d308f3c3","type":"change","z":"486c1412721bb241","name":"","rules":[{"p":"payload","pt":"msg","t":"set","to":"fubar","tot":"str"},{"p":"topic","pt":"msg","t":"set","to":"","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1000,"y":233,"wires":[["4ae6a76dda47880d"]]},{"id":"5a23f94843302ce3","type":"exec","z":"486c1412721bb241","command":"mosquitto","addpay":"","append":"","useSpawn":"true","timer":"3","winHide":false,"oldrc":false,"name":"","x":739,"y":325,"wires":[[],["3cd356de538d5f56"],[]]},{"id":"c10838d19ffbd1c9","type":"exec","z":"486c1412721bb241","command":"mosquitto","addpay":"","append":"","useSpawn":"true","timer":"5","winHide":false,"oldrc":false,"name":"","x":739,"y":406,"wires":[[],["7833522fc1dbed96"],[]]},{"id":"4ae6a76dda47880d","type":"delay","z":"486c1412721bb241","name":"","pauseType":"delay","timeout":"500","timeoutUnits":"milliseconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":1287,"y":325,"wires":[["40e104d4cdec19d8"]]},{"id":"3cd356de538d5f56","type":"change","z":"486c1412721bb241","name":"","rules":[{"p":"payload","pt":"msg","t":"set","to":"snafu","tot":"str"},{"p":"topic","pt":"msg","t":"set","to":"","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1001,"y":325,"wires":[["4ae6a76dda47880d"]]},{"id":"02a1ab75f99b0610","type":"complete","z":"486c1412721bb241","name":"","scope":["908334bdc920a58b"],"uncaught":false,"x":496,"y":325,"wires":[["5a23f94843302ce3"]]},{"id":"62e9a30e80c4254c","type":"ut-assert-values","z":"486c1412721bb241","name":"","rules":[{"p":"payload","pt":"msg","t":"eql","to":"snafu","tot":"str"},{"p":"topic","pt":"msg","t":"eql","to":"topic","tot":"str"}],"x":726,"y":106.25,"wires":[[]]},{"id":"74ef163d0010e62b","type":"switch","z":"486c1412721bb241","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"fubar","vt":"str"},{"t":"eq","v":"snafu","vt":"str"},{"t":"eq","v":"chuck","vt":"str"}],"checkall":"false","repair":false,"outputs":3,"x":488,"y":104.00001525878906,"wires":[["cf5e59d549198817"],["62e9a30e80c4254c"],["2e1990cd9592221c"]]},{"id":"2e1990cd9592221c","type":"ut-assert-values","z":"486c1412721bb241","name":"","rules":[{"p":"payload","pt":"msg","t":"eql","to":"chuck","tot":"str"},{"p":"topic","pt":"msg","t":"eql","to":"topic","tot":"str"}],"x":726,"y":165,"wires":[[]]},{"id":"9a1b0dc12a3ba53f","type":"complete","z":"486c1412721bb241","name":"","scope":["5a23f94843302ce3"],"uncaught":false,"x":493,"y":406,"wires":[["c10838d19ffbd1c9"]]},{"id":"7833522fc1dbed96","type":"change","z":"486c1412721bb241","name":"","rules":[{"p":"payload","pt":"msg","t":"set","to":"chuck","tot":"str"},{"p":"topic","pt":"msg","t":"set","to":"","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1004,"y":406,"wires":[["4ae6a76dda47880d"]]},{"id":"97960d98b2837fa0","type":"mqtt-broker","name":"localhost","broker":"localhost","port":1883,"clientid":"ClientId","autoConnect":true,"usetls":false,"protocolVersion":4,"keepalive":60,"cleansession":true,"autoUnsubscribe":true,"birthTopic":"","birthQos":"0","birthRetain":"false","birthPayload":"","birthMsg":{},"closeTopic":"","closeQos":"0","closeRetain":"false","closePayload":"","closeMsg":{},"willTopic":"","willQos":"0","willRetain":"false","willPayload":"","willMsg":{},"userProps":"","sessionExpiry":""}]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[{"id":"2c5903c9e50d0648","type":"tab","label":"[noop] Noop node will error out","disabled":false,"info":"enable the function node and this test case will fail becauase the function node isn't yet implemented.","env":[]},{"id":"8ec3f85bb92fdd90","type":"function","z":"2c5903c9e50d0648","d":true,"name":"function 1","func":"\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":492,"y":465,"wires":[[]]},{"id":"5c3b611081827e77","type":"inject","z":"2c5903c9e50d0648","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":242,"y":300,"wires":[["8ec3f85bb92fdd90"]]}]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[{"id":"5c47403f271248bb","type":"tab","label":"[process] Can send messages","disabled":false,"info":"## Process nodes \n\nProcess nodes representing existing processes within Erlang. These can be registered named processes or PID processes.\n\nThese nodes can be sent messages and these messages are converted to erlang messages and passed onto the existing processes.\n\n","env":[{"name":"ERED_ONLY","value":"true","type":"bool"}]},{"id":"abf47d0e2b8a3827","type":"erlprocess","z":"5c47403f271248bb","name":"ered_capture_io_exchange","pid":"ered_capture_io_exchange","x":1017.333251953125,"y":720,"wires":[["ca7899d40e60e8cc","0c53a65c3df0812a"]]},{"id":"4c37a6db591de29a","type":"inject","z":"5c47403f271248bb","name":"","props":[{"p":"payload"},{"p":"msgtype","v":"call","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"$erl('state')","payloadType":"jsonata","x":716,"y":680,"wires":[["abf47d0e2b8a3827"]]},{"id":"ca7899d40e60e8cc","type":"ut-assert-success","z":"5c47403f271248bb","name":"","count":1,"x":1275,"y":652.5,"wires":[]},{"id":"0c53a65c3df0812a","type":"ut-assert-values","z":"5c47403f271248bb","name":"","ignore_failure_if_succeed":false,"rules":[{"t":"set","p":"payload['leaders']","pt":"msg"}],"x":1356,"y":743.5,"wires":[[]]}]
|