@gregoriusrippenstein/erlang-red-unittest 0.20.2 → 0.21.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (362) hide show
  1. package/README.md +4 -2
  2. package/examples/.core/support JS hash naming in variable access.json +1 -0
  3. package/examples/.elixir/support basic module code.json +1 -0
  4. package/examples/.jsonata/$privdir operator.json +1 -0
  5. package/examples/.jsonata/$replace should be working for newlines.json +1 -0
  6. package/examples/.jsonata/$type operator.json +1 -0
  7. package/examples/.jsonata/ensure that $millis() works.json +1 -0
  8. package/examples/.jsonata/non-string key names.json +1 -0
  9. package/examples/.jsonata/split function.json +1 -0
  10. package/examples/.jsonata/support array definition.json +1 -0
  11. package/examples/assert values/ignores failures if requested and boolean not-equal test.json +1 -0
  12. package/examples/batch/basic behaviour.json +1 -0
  13. package/examples/binary/initial test.json +1 -0
  14. package/examples/binary/parse PNG image data.json +1 -0
  15. package/examples/captureio/Capture io from function node.json +1 -0
  16. package/examples/captureio/Mutliple captures.json +1 -0
  17. package/examples/captureio/capture io from gen_server behaviour.json +1 -0
  18. package/examples/captureio/collect io from event handlers.json +1 -0
  19. package/examples/captureio/collect io from state machine node.json +1 -0
  20. package/examples/catch/catch all exceptions in a single group.json +1 -0
  21. package/examples/catch/catch all in group except those handler elsewhere.json +1 -0
  22. package/examples/catch/deal with it yourself.json +1 -0
  23. package/examples/catch/don't catch if the node isn't selected.json +1 -0
  24. package/examples/change/debug message if no catch node.json +1 -0
  25. package/examples/change/set functionality.json +1 -0
  26. package/examples/change/support buffer type.json +1 -0
  27. package/examples/change/support num types.json +1 -0
  28. package/examples/change/support underscores in binary, hex & octal values.json +1 -0
  29. package/examples/clientcode/Client code node test.json +1 -0
  30. package/examples/complete/avoid endless recursion.json +1 -0
  31. package/examples/complete/avoid recursion - test case 2.json +1 -0
  32. package/examples/complete/its complete nodes all the way down.json +1 -0
  33. package/examples/complete/split node.json +1 -0
  34. package/examples/complete/when is a join complete.json +1 -0
  35. package/examples/csv-decode/comma separated, parse numbers & msg per row.json +1 -0
  36. package/examples/csv-decode/separators other than comma.json +1 -0
  37. package/examples/csv-decode/single message for entire CSV, comma, RFC4180.json +1 -0
  38. package/examples/csv-decode/single message per line.json +1 -0
  39. package/examples/csv-decode/skip line happens before parsing content.json +1 -0
  40. package/examples/csv-encode/line termination and separator.json +1 -0
  41. package/examples/csv-encode/simple object.json +1 -0
  42. package/examples/debug/Jsonata expressions in output field.json +1 -0
  43. package/examples/debug/ensure debug messages are generated.json +1 -0
  44. package/examples/debug/handle largish json files as content.json +1 -0
  45. package/examples/debug/only debug specific property.json +1 -0
  46. package/examples/debug/status message counter.json +1 -0
  47. package/examples/debug/type hadling of JSONata results (ered).json +1 -0
  48. package/examples/debug/type hadling of JSONata results (node-red).json +1 -0
  49. package/examples/delay/delay messages by 5 seconds.json +1 -0
  50. package/examples/delay/delay multiple message for the same length of time.json +1 -0
  51. package/examples/delay/need to provide a status message of queue size.json +1 -0
  52. package/examples/delay/respect the reset flag and dont pass on the reset msg.json +1 -0
  53. package/examples/eventhandler/handle kill exits.json +1 -0
  54. package/examples/eventhandler/handle normal exits.json +1 -0
  55. package/examples/eventhandler/multiple dynamic event handlers.json +1 -0
  56. package/examples/eventhandler/register and unregister handler.json +1 -0
  57. package/examples/eventhandler/static configuration.json +1 -0
  58. package/examples/eventhandler/static handler with arguments.json +1 -0
  59. package/examples/eventhandler/static handler: multiple instances.json +1 -0
  60. package/examples/eventhandler/used with a supervisor node.json +1 -0
  61. package/examples/exec/async with noisy command.json +1 -0
  62. package/examples/exec/empty commands are not supported.json +1 -0
  63. package/examples/exec/generate complete msg once command is done.json +1 -0
  64. package/examples/exec/handle multiple process at once (ered).json +1 -0
  65. package/examples/exec/handle multiple process at once (nred).json +1 -0
  66. package/examples/exec/support timeout specification (ered).json +1 -0
  67. package/examples/exec/support timeout specification (nred).json +1 -0
  68. package/examples/exec/synchronised execution (ered).json +1 -0
  69. package/examples/exec/synchronised execution (nred).json +1 -0
  70. package/examples/file in/basic functionality of being able to read a file.json +1 -0
  71. package/examples/file in/error when file not found.json +1 -0
  72. package/examples/file in/warning if no file name is defined.json +1 -0
  73. package/examples/file in/will accept file name from msg obj.json +1 -0
  74. package/examples/filter/ignore initial value per topic.json +1 -0
  75. package/examples/filter/ignore initial value.json +1 -0
  76. package/examples/filter/post if value changed.json +1 -0
  77. package/examples/flowhubpull/retrieve flow id.json +1 -0
  78. package/examples/function/divide by zero throws kills node.json +1 -0
  79. package/examples/function/ensure /"on stop/" code is executed.json" +1 -0
  80. package/examples/function/function and module work together.json +1 -0
  81. package/examples/function/handle corrupt code.json +1 -0
  82. package/examples/function/return values are important.json +1 -0
  83. package/examples/function/set node context.json +1 -0
  84. package/examples/function/speaks Erlang.json +1 -0
  85. package/examples/function/supervisor interaction.json +1 -0
  86. package/examples/function/support multiple outputs.json +1 -0
  87. package/examples/function/support not returning a message.json +1 -0
  88. package/examples/function/support timeout setting.json +1 -0
  89. package/examples/function/supports completed node.json +1 -0
  90. package/examples/genserver/addressing modules.json +1 -0
  91. package/examples/genserver/triggering functionality.json +1 -0
  92. package/examples/http/Dynamic Routing.json +1 -0
  93. package/examples/http/POST & GET have different endpoints.json +1 -0
  94. package/examples/http/dynamic redirect.json +1 -0
  95. package/examples/http/have params in the path.json +1 -0
  96. package/examples/http/http static routing.json +1 -0
  97. package/examples/http/multiple endpoints don't all get the request.json +1 -0
  98. package/examples/http/nodes should be able to handle requests.json +1 -0
  99. package/examples/http/post requests - json content.json +1 -0
  100. package/examples/http/request parses JSON conent.json +1 -0
  101. package/examples/http/request, ensure url and method are handled.json +1 -0
  102. package/examples/http/set content type.json +1 -0
  103. package/examples/http/support query string on get request.json +1 -0
  104. package/examples/inject/repeat interval.json +1 -0
  105. package/examples/inject/support octal, binary & hex underscore values.json +1 -0
  106. package/examples/inject/trigger after - does not trigger.json +1 -0
  107. package/examples/inject/unsupported JSONata function.json +1 -0
  108. package/examples/join/manual config with count & nested property name.json +1 -0
  109. package/examples/json/parse example json content.json +1 -0
  110. package/examples/json/raise exception if content not valid.json +1 -0
  111. package/examples/json/support prettify json content.json +1 -0
  112. package/examples/link nodes/across flow tabs.json +1 -0
  113. package/examples/link nodes/cascading link calls.json +1 -0
  114. package/examples/markdown/allow for inline html.json +1 -0
  115. package/examples/markdown/convert markdown to html.json +1 -0
  116. package/examples/markdown/support code block.json +1 -0
  117. package/examples/module/Using with Statemachine.json +1 -0
  118. package/examples/module/Using with function node.json +1 -0
  119. package/examples/mqtt/auto-(re)connect.json +1 -0
  120. package/examples/noop/Noop node will error out.json +1 -0
  121. package/examples/process/Can send messages.json +1 -0
  122. package/examples/range/basic examples.json +1 -0
  123. package/examples/split/Array type.json +1 -0
  124. package/examples/split/binary type.json +1 -0
  125. package/examples/split/using strings and buffers.json +1 -0
  126. package/examples/split/work with binary data as string data (ered).json +1 -0
  127. package/examples/split/work with binary data as string data (nred).json +1 -0
  128. package/examples/statemachine/Representing gen_statem in Erlang-Red.json +1 -0
  129. package/examples/statemachine/combined with supervisor.json +1 -0
  130. package/examples/statemachine/exception if no action to perform.json +1 -0
  131. package/examples/status/basic working version.json +1 -0
  132. package/examples/status/only one message per status value.json +1 -0
  133. package/examples/status/source map inside the status map.json +1 -0
  134. package/examples/supervisor/inform user if config needs updating.json +1 -0
  135. package/examples/supervisor/multiple individual supervisors.json +1 -0
  136. package/examples/supervisor/order defined by Y coordinate..json +1 -0
  137. package/examples/supervisor/restart after exit call.json +1 -0
  138. package/examples/supervisor/supervising two function nodes.json +1 -0
  139. package/examples/supervisor/supervisor loops.json +1 -0
  140. package/examples/supervisor/supervisor of supervisor of supervisor of .....json +1 -0
  141. package/examples/supervisor/supervisor told to stop.json +1 -0
  142. package/examples/supervisor/supervisor tree.json +1 -0
  143. package/examples/supervisor/two supervisors cannot supervise the same nodes.json +1 -0
  144. package/examples/supervisor/unsupported configrations.json +1 -0
  145. package/examples/switch/JSONata undefined value & exceptions.json +1 -0
  146. package/examples/switch/post debug on JSONata exception.json +1 -0
  147. package/examples/switch/raise exception if JSONata has exception.json +1 -0
  148. package/examples/tcp/Bad value on output port (3425).json +1 -0
  149. package/examples/tcp/multiple tcp in connectors (1194).json +1 -0
  150. package/examples/tcp/request node - disconnect immediately (1001).json +1 -0
  151. package/examples/tcp/tcp-out node in reply mode (1202).json +1 -0
  152. package/examples/tcp/transfer string between nodes (1201).json +1 -0
  153. package/examples/template/handle base64 encoded data.json +1 -0
  154. package/examples/template/support mustache template.json +1 -0
  155. package/examples/trigger/initial example.json +1 -0
  156. package/nodes/ut-assert-debug.js +305 -19
  157. package/nodes/ut-assert-values.js +179 -161
  158. package/package.json +3 -2
  159. package/plugins/sidebar.html +99 -55
  160. package/priv/testdata/helloworld.txt +1 -0
  161. package/{examples/9e7ccc97f80d9afb/flows.json → priv/testdata/test.json} +53 -20
  162. package/examples/069552b2eb6bce48/flows.json +0 -265
  163. package/examples/08183069b5f8ef9c/flows.json +0 -156
  164. package/examples/084fb0fc954b7156/flows.json +0 -132
  165. package/examples/090eb2d5d71fd45f/flows.json +0 -158
  166. package/examples/0c35d269ca7178c6/flows.json +0 -443
  167. package/examples/0cc95e44532c14ec/flows.json +0 -94
  168. package/examples/0e54563ba63b1501/flows.json +0 -1
  169. package/examples/16b0bc0cdb0c5807/flows.json +0 -1
  170. package/examples/16b254125478329a/flows.json +0 -114
  171. package/examples/182731f54d855071/flows.json +0 -52
  172. package/examples/1ace9e051618db79/flows.json +0 -125
  173. package/examples/1c1d2cb981cf9f01/flows.json +0 -120
  174. package/examples/1db9c9a1b92e0263/flows.json +0 -172
  175. package/examples/20eeaf41372f7b17/flows.json +0 -62
  176. package/examples/27804627fb8f56bd/flows.json +0 -178
  177. package/examples/2a2c508260b96236/flows.json +0 -141
  178. package/examples/34f859d75b76d03c/flows.json +0 -200
  179. package/examples/36846ad6698e1bc0/flows.json +0 -163
  180. package/examples/3be6bc074c7647bd/flows.json +0 -319
  181. package/examples/44f12f6e4a455084/flows.json +0 -272
  182. package/examples/45209c67f865ce73/flows.json +0 -1
  183. package/examples/4657dbc0aa4a97bb/flows.json +0 -268
  184. package/examples/47514a335b4cd67e/flows.json +0 -362
  185. package/examples/486c1412721bb241/flows.json +0 -525
  186. package/examples/51bfa9456b1745c0/flows.json +0 -639
  187. package/examples/538be5947c639b32/flows.json +0 -75
  188. package/examples/545871d31c3f5f3f/flows.json +0 -376
  189. package/examples/55f105cfd894b06c/flows.json +0 -121
  190. package/examples/57d44c342a1f00e2/flows.json +0 -1
  191. package/examples/597ee2a683d9908f/flows.json +0 -129
  192. package/examples/59da63b5adb460db/flows.json +0 -188
  193. package/examples/61142eb3e4e54eab/flows.json +0 -536
  194. package/examples/64445798b59d2630/flows.json +0 -257
  195. package/examples/6d46e3fe1f2245b8/flows.json +0 -86
  196. package/examples/6dd3a5754f83dc2e/flows.json +0 -232
  197. package/examples/6ff45e2a0ce77393/flows.json +0 -131
  198. package/examples/700c94899fdd3334/flows.json +0 -107
  199. package/examples/7581c2be261f9c17/flows.json +0 -1874
  200. package/examples/7ecfd18f58fc6510/flows.json +0 -1
  201. package/examples/7fea9696f6186962/flows.json +0 -141
  202. package/examples/80655e5d4035fa71/flows.json +0 -215
  203. package/examples/8421f37b6c40e1ec/flows.json +0 -1
  204. package/examples/866410b56fa42447/flows.json +0 -1076
  205. package/examples/89aeaeef64509bed/flows.json +0 -101
  206. package/examples/8a627c9bfe3b4aff/flows.json +0 -552
  207. package/examples/96f6f83dcab507e5/flows.json +0 -105
  208. package/examples/9746601768c3b3b6/flows.json +0 -93
  209. package/examples/9942fa1aeb1b2428/flows.json +0 -2346
  210. package/examples/9b1023c95a2613cc/flows.json +0 -141
  211. package/examples/9d11bfc3a6d88535/flows.json +0 -301
  212. package/examples/9f0d6c3ad7798a77/flows.json +0 -142
  213. package/examples/9f7351d7a7304584/flows.json +0 -83
  214. package/examples/a123cd431f1967cd/flows.json +0 -1757
  215. package/examples/a4c9cabf4b335488/flows.json +0 -86
  216. package/examples/a916165378c446e3/flows.json +0 -240
  217. package/examples/ae38b2dbd23d1681/flows.json +0 -3089
  218. package/examples/ae8a9b0bbbaff447/flows.json +0 -271
  219. package/examples/b07b511dc8bb8339/flows.json +0 -92
  220. package/examples/b1501de32c769cf2/flows.json +0 -94
  221. package/examples/b5fbcdbffb568569/flows.json +0 -1
  222. package/examples/b723353a316fa50e/flows.json +0 -1
  223. package/examples/b864b3e3510cd120/flows.json +0 -205
  224. package/examples/bdbe94d065f3b3a6/flows.json +0 -143
  225. package/examples/bfced61e72c69715/flows.json +0 -616
  226. package/examples/c0b1cf6656eac77f/flows.json +0 -518
  227. package/examples/c381b5135cc947cd/flows.json +0 -272
  228. package/examples/c4690c0a085d6ef5/flows.json +0 -145
  229. package/examples/c5f513bc380bc30a/flows.json +0 -696
  230. package/examples/cfa8595b2e2b8269/flows.json +0 -255
  231. package/examples/d17fb2553fe8013a/flows.json +0 -157
  232. package/examples/d61182e87a604efa/flows.json +0 -340
  233. package/examples/eb24c92ce5621760/flows.json +0 -141
  234. package/examples/eb447048178f6e16/flows.json +0 -201
  235. package/examples/eed68dbcecd1431f/flows.json +0 -204
  236. package/examples/ef61f644d5436dbe/flows.json +0 -1
  237. package/examples/f19fdae0c02b4f03/flows.json +0 -1008
  238. package/examples/f2f61ec9fc46a468/flows.json +0 -575
  239. package/examples/f346d45c81f595e5/flows.json +0 -501
  240. package/examples/f38603a59963386c/flows.json +0 -1
  241. package/examples/f5f82ca50317fda7/flows.json +0 -121
  242. package/examples/f946aafaebb1398d/flows.json +0 -135
  243. package/examples/f94db507552f4934/flows.json +0 -165
  244. package/examples/fb50bac16667fc54/flows.json +0 -364
  245. /package/examples/{684b9066e98b9722/flows.json → .core/Disabled node should not be sent messages.json} +0 -0
  246. /package/examples/{7b77600dcf78933f/flows.json → .core/attribute parsing.json} +0 -0
  247. /package/examples/{93c6e969dcf84e70/flows.json → .core/ensure that message ids don't change.json} +0 -0
  248. /package/examples/{d206746f9f2594a6/flows.json → .jsonata/$match operator.json} +0 -0
  249. /package/examples/{37883612d913fd66/flows.json → .jsonata/$not operator.json} +0 -0
  250. /package/examples/{caccb020fce3f485/flows.json → .jsonata/$pad function.json} +0 -0
  251. /package/examples/{a862ae412a70ded1/flows.json → .jsonata/$substring functionality.json} +0 -0
  252. /package/examples/{0b299a3175fc0df1/flows.json → .jsonata/array indexing both forwards and backwards.json} +0 -0
  253. /package/examples/{2037454a5ee0d6c3/flows.json → .jsonata/basic support for JSONata.json} +0 -0
  254. /package/examples/{3e9e526b992d4c48/flows.json → .jsonata/ensure random is seeded.json} +0 -0
  255. /package/examples/{e7184b7ca4f07907/flows.json → .jsonata/sum arrays of objects.json} +0 -0
  256. /package/examples/{218350f2e240a15d/flows.json → .jsonata/support $keys function.json} +0 -0
  257. /package/examples/{b50f775ae3b74d38/flows.json → .jsonata/testing the modulo operator.json} +0 -0
  258. /package/examples/{1658196c31549916/flows.json → batch/batch until batch is full.json} +0 -0
  259. /package/examples/{c843dacf753a19d8/flows.json → batch/ensure batch size of 1 works.json} +0 -0
  260. /package/examples/{9a1bdfdcd7b2be8e/flows.json → batch/performance.json} +0 -0
  261. /package/examples/{538d2f4704cd2eca/flows.json → catch/ensure source is inside error map.json} +0 -0
  262. /package/examples/{6a9ffd45c418497b/flows.json → catch/file not found exception.json} +0 -0
  263. /package/examples/{71f65246c742cfc9/flows.json → catch/multiple nodes in one flow is possible.json} +0 -0
  264. /package/examples/{ed621e03921c13de/flows.json → catch/uncaught catch - part 2 - work.json} +0 -0
  265. /package/examples/{f5bdafa844f6d280/flows.json → catch/uncaught catches.json} +0 -0
  266. /package/examples/{9c51a179141515b2/flows.json → change/change functionality.json} +0 -0
  267. /package/examples/{ea246f68766c8630/flows.json → change/delete functionality.json} +0 -0
  268. /package/examples/{30465efe017cc9b0/flows.json → change/delete nested keys.json} +0 -0
  269. /package/examples/{ced70c769db825eb/flows.json → change/ensure rules are expected in order.json} +0 -0
  270. /package/examples/{7dae2b1a7881c607/flows.json → change/move functionality.json} +0 -0
  271. /package/examples/{92054e0dd22f14c6/flows.json → change/raises an exception if JSONata has exception.json} +0 -0
  272. /package/examples/{b85795a24882502b/flows.json → change/set support nested properties.json} +0 -0
  273. /package/examples/{c28048d859db3773/flows.json → change/support boolean types.json} +0 -0
  274. /package/examples/{12572f9ac11e1786/flows.json → change/support json values in the set.json} +0 -0
  275. /package/examples/{def45a46c8f4da72/flows.json → change/support nested array indicies - setting & getting & deleting.json} +0 -0
  276. /package/examples/{0cb8971e5f88ed1e/flows.json → change/support nested keys on the set operation.json} +0 -0
  277. /package/examples/{48d9fdcde317974e/flows.json → change/support timestamp type.json} +0 -0
  278. /package/examples/{1bac0a78e0a36ec0/flows.json → comment/what is there to test-.json} +0 -0
  279. /package/examples/{b9cd19107a5145c4/flows.json → complete/disabled nodes don't receive.json} +0 -0
  280. /package/examples/{5e07acf2da13b504/flows.json → complete/ensure the altered msg object is sent.json} +0 -0
  281. /package/examples/{01b074cfa6ae8818/flows.json → complete/link nodes.json} +0 -0
  282. /package/examples/{cd44a688eb2ab3cf/flows.json → complete/messags from unconnected inject.json} +0 -0
  283. /package/examples/{30c79fc42a5c35eb/flows.json → complete/only handle messages from listened to nodes.json} +0 -0
  284. /package/examples/{f8727464c799eb22/flows.json → complete/switch node isn't compatible with complete.json} +0 -0
  285. /package/examples/{b2a67e301fabab0e/flows.json → debug/handle the button press to active and deactive debug output.json} +0 -0
  286. /package/examples/{a6dc7002d0a8640e/flows.json → debug/if not active, no debug message in panel.json} +0 -0
  287. /package/examples/{b1463d7bbf545725/flows.json → debug/inactive debug nodes still count messages.json} +0 -0
  288. /package/examples/{5a06352874fa379d/flows.json → debug/only send debug message to server console if asked to.json} +0 -0
  289. /package/examples/{c1370220fd37968e/flows.json → delay/ignore msg.delay if its not set.json} +0 -0
  290. /package/examples/{d17062b01c4a9435/flows.json → delay/random between two values.json} +0 -0
  291. /package/examples/{3ea113b4ec3b6e5e/flows.json → delay/set delay via msg.delay.json} +0 -0
  292. /package/examples/{e2a801d2b3e2143f/flows.json → exec/add payload and append arguments.json} +0 -0
  293. /package/examples/{b98d0b05a760ad79/flows.json → exec/execute simple command.json} +0 -0
  294. /package/examples/{6ea4c6b373eeaa8d/flows.json → filter/narrowband no topic.json} +0 -0
  295. /package/examples/{cef9dd7dc179b8b3/flows.json → filter/value differ by topic.json} +0 -0
  296. /package/examples/{b2fcc5806b2715c0/flows.json → inject/JSONata undefined value & exceptions.json} +0 -0
  297. /package/examples/{09aab59a2455cf15/flows.json → inject/Payload, topic and fubar set on inject.json} +0 -0
  298. /package/examples/{8180ae5891c673de/flows.json → inject/ensure that topic is set correctly.json} +0 -0
  299. /package/examples/{1eb35963b752eca9/flows.json → inject/json support for properties other than payload.json} +0 -0
  300. /package/examples/{61847d719e50f83f/flows.json → inject/jsonata support for both payload and other properties.json} +0 -0
  301. /package/examples/{459322e0f8e0b785/flows.json → inject/nested hash & array support.json} +0 -0
  302. /package/examples/{c163c627bd2a37c7/flows.json → inject/support boolean type.json} +0 -0
  303. /package/examples/{7e1d04570c6bdff9/flows.json → inject/support jsonata for topic values.json} +0 -0
  304. /package/examples/{1a196bce3e57f5c1/flows.json → inject/support nested property names.json} +0 -0
  305. /package/examples/{2a12af161b544aa1/flows.json → inject/support num types.json} +0 -0
  306. /package/examples/{ec921769b3c24fb6/flows.json → inject/support the msg property type.json} +0 -0
  307. /package/examples/{9ff2e8ab21d922c5/flows.json → inject/trigger once - default value.json} +0 -0
  308. /package/examples/{1d3326a724ecbea0/flows.json → join/automatic mode.json} +0 -0
  309. /package/examples/{24f35eaa8656755f/flows.json → join/count overrides parts, complete overrides count.json} +0 -0
  310. /package/examples/{987cd33b9cda8529/flows.json → join/manual configration with count and property name.json} +0 -0
  311. /package/examples/{50d5679818477b66/flows.json → join/manual configuration counting messages.json} +0 -0
  312. /package/examples/{894f6e38bfd1aca6/flows.json → join/remove parts once matched.json} +0 -0
  313. /package/examples/{5cf6aec7d688fce4/flows.json → join/results are not ordered by index.json} +0 -0
  314. /package/examples/{d5424657b497d5af/flows.json → join/useparts with count value.json} +0 -0
  315. /package/examples/{77854a5ea962257b/flows.json → join/useparts without count value.json} +0 -0
  316. /package/examples/{f1e71f2ccb34fd6e/flows.json → join/wait for complete until messages are sent.json} +0 -0
  317. /package/examples/{d4ce58359ff6ff96/flows.json → join/with parts until complete received.json} +0 -0
  318. /package/examples/{b3f365d0b7d1f97d/flows.json → json/overwrite the attribute.json} +0 -0
  319. /package/examples/{e1ced3b16782f7c8/flows.json → junction/should just pass on the message.json} +0 -0
  320. /package/examples/{51870a76d1aaf67a/flows.json → link nodes/_linkSource support.json} +0 -0
  321. /package/examples/{bbb1fc2d47c3cd5f/flows.json → link nodes/basic test whether out and in can connect.json} +0 -0
  322. /package/examples/{15c2fad089960984/flows.json → link nodes/dynamic targets and timeout.json} +0 -0
  323. /package/examples/{c274a07715a87ca4/flows.json → link nodes/exception if dynamic link does not exist.json} +0 -0
  324. /package/examples/{9463eba0ab843567/flows.json → link nodes/exception if multiple link nodes match.json} +0 -0
  325. /package/examples/{641ddaab2819c61d/flows.json → link nodes/flow for call and returning.json} +0 -0
  326. /package/examples/{b6d4e4592b27a344/flows.json → link nodes/implement time out on link call node.json} +0 -0
  327. /package/examples/{c6ee6e89a51c98fc/flows.json → link nodes/link call - return to sender.json} +0 -0
  328. /package/examples/{38616d22e1569aa5/flows.json → link nodes/link call to a dynamic link in node - by name.json} +0 -0
  329. /package/examples/{5433b57035d597f9/flows.json → link nodes/link call to a dynamic link in node - by node id.json} +0 -0
  330. /package/examples/{213803d61ecfde3a/flows.json → link nodes/mutliple links.json} +0 -0
  331. /package/examples/{b7ebaf91f4d66ab3/flows.json → sort/array of objects.json} +0 -0
  332. /package/examples/{cffa610c817beb43/flows.json → sort/msg.complete is not respected.json} +0 -0
  333. /package/examples/{5f6929bb3374b782/flows.json → sort/sort by parts.index.json} +0 -0
  334. /package/examples/{b1430ea37ba7cc19/flows.json → split/array split.json} +0 -0
  335. /package/examples/{4de34883c5d93dc3/flows.json → split/len value is the array split size.json} +0 -0
  336. /package/examples/{2c59ef974b2523ba/flows.json → split/nested parts.json} +0 -0
  337. /package/examples/{02b18fc0ed9de178/flows.json → split/parts id is identical.json} +0 -0
  338. /package/examples/{435d3b48dd0f462c/flows.json → split/silently ignore integer as a value to split.json} +0 -0
  339. /package/examples/{5cd133958df17529/flows.json → switch/catch all v. stop after first.json} +0 -0
  340. /package/examples/{562c518969666f24/flows.json → switch/empty, non-empty, null & not-null operators.json} +0 -0
  341. /package/examples/{3edda6bd788f88c2/flows.json → switch/ensure JSONata support.json} +0 -0
  342. /package/examples/{2c1c291ec8466bfb/flows.json → switch/handle is true & is false.json} +0 -0
  343. /package/examples/{59aa8a866d8d7a70/flows.json → switch/handle nested values.json} +0 -0
  344. /package/examples/{def56742e02f6a75/flows.json → switch/property is not defined on msg object.json} +0 -0
  345. /package/examples/{f4c4a57e77439a1b/flows.json → switch/regular expression operator.json} +0 -0
  346. /package/examples/{ce2f98273da05245/flows.json → switch/support otherwise /"catchall/" rule.json"} +0 -0
  347. /package/examples/{0616f795a4aee63e/flows.json → switch/working JSONata expression operator.json} +0 -0
  348. /package/examples/{84a5a362cafe703f/flows.json → tcp/request node - stream of strings (1101).json} +0 -0
  349. /package/examples/{6f0dcbf18234c5e2/flows.json → tcp/tcp in node connect to (9393).json} +0 -0
  350. /package/examples/{2a95a7b40a798878/flows.json → tcp/telnet server (2323).json} +0 -0
  351. /package/examples/{698b83b8aeb5d5b6/flows.json → template/contains plain text and no mustache content.json} +0 -0
  352. /package/examples/{63ca9baf860d1d8f/flows.json → template/support Json encoding.json} +0 -0
  353. /package/examples/{3ed472eab9503b4f/flows.json → template/support logic in logicless mustache template.json} +0 -0
  354. /package/examples/{ad2bf1089481dcfb/flows.json → trigger/extend timer.json} +0 -0
  355. /package/examples/{8bc7412d6a4869c6/flows.json → trigger/loops of triggers.json} +0 -0
  356. /package/examples/{55f7fbe90e5befa8/flows.json → trigger/msg.delay overrides the configured delay.json} +0 -0
  357. /package/examples/{34d211e37618313c/flows.json → trigger/override via delay but no delay set.json} +0 -0
  358. /package/examples/{988f27b9abdde6e9/flows.json → trigger/send both messages on one pipe.json} +0 -0
  359. /package/examples/{338c5b411f4edfe8/flows.json → trigger/send first but not second message.json} +0 -0
  360. /package/examples/{5d4908af3d4f95e5/flows.json → trigger/send second message only.json} +0 -0
  361. /package/examples/{d595c53abba88f72/flows.json → trigger/the noop trigger.json} +0 -0
  362. /package/examples/{1566e453a88578a9/flows.json → trigger/two outputs.json} +0 -0
@@ -14,9 +14,9 @@
14
14
  let treeListItems = [];
15
15
  let tags = {}
16
16
  let nonTag = []
17
-
17
+
18
18
  Object.keys(resp.data).forEach(function (key) {
19
- let mth = resp.data[key].name.match(/^(\[.+\])/)
19
+ let mth = resp.data[key].name.match(/^\[(.+)\]/)
20
20
  if (mth) {
21
21
  if (tags[mth[0]]) {
22
22
  tags[mth[0]].push(resp.data[key])
@@ -110,16 +110,23 @@ function doFlowImportForSidebarUnittesting(flowid) {
110
110
  });
111
111
  }
112
112
 
113
- RED.clipboard.import();
113
+ if ( RED.view.state() === RED.state.DEFAULT) {
114
+ RED.clipboard.import();
114
115
 
115
- setTimeout(() => {
116
- var content = e.flowdata;
116
+ setTimeout(() => {
117
+ var content = e.flowdata;
117
118
 
118
119
 
119
- $('#red-ui-clipboard-dialog-import-text').val(
120
- JSON.stringify(content)
121
- ).trigger("paste");
122
- }, 300);
120
+ $('#red-ui-clipboard-dialog-import-text').val(
121
+ JSON.stringify(content)
122
+ ).trigger("paste");
123
+ }, 300);
124
+ } else {
125
+ RED.notify("Close editor panel and retry, cannot open import dialog while editing nodes.", {
126
+ type: "warning",
127
+ timeout: 3000
128
+ });
129
+ }
123
130
  }).fail(e => {
124
131
  let msg = "<p>Failed to retrieve test flow data from server.</p>" +
125
132
  $('#node-input-unittestingpull-flowid').val().trim() + "</p>" +
@@ -203,9 +210,15 @@ function highlightTestResult(dirList, flowid, status) {
203
210
  clr = "";
204
211
  shp = "fa-minus";
205
212
  break;
213
+ case "not-supported":
214
+ clr = "blue";
215
+ shp = "fa-ban";
216
+ break;
217
+
206
218
  }
207
219
 
208
220
  dirList.treeList('select', `flowid-treelist-${flowid}`);
221
+
209
222
  if ($($(dirList.treeList('selected').treeList.container).find('.red-ui-treeList-icon')).data("status") != status) {
210
223
  $($(dirList.treeList('selected').treeList.container).find('.red-ui-treeList-icon')).data("status", status)
211
224
  $($($(dirList.treeList('selected').treeList.container).find('.red-ui-treeList-icon')).find('i')).prop('class', "fa " + shp).css('color', clr)
@@ -244,7 +257,62 @@ function clearDebugPanel() {
244
257
  RED.actions.invoke("core:clear-debug-messages")
245
258
  }
246
259
 
247
- function runTestForFlowId(flowid,dirList=undefined) {
260
+ function runWorkspaceAsTest(flowid) {
261
+ // this is an Erlang-Red special.
262
+
263
+ let getFlowDataFromCurrentWorkspace = (flowid) => {
264
+ /******
265
+ ** Code taken from Node-RED code base:
266
+ **
267
+ ** https://github.com/node-red/node-red/blob/e8ddee24a9944e57d186f02b081295c56a45b67c/packages/node_modules/%40node-red/editor-client/src/js/ui/clipboard.js#L710-L723
268
+ **
269
+ **/
270
+ var activeWorkspace = flowid || RED.workspaces.active();
271
+ var nodes = RED.nodes.groups(activeWorkspace);
272
+
273
+ nodes = nodes.concat(RED.nodes.junctions(activeWorkspace));
274
+ nodes = nodes.concat(RED.nodes.filterNodes({ z: activeWorkspace }));
275
+
276
+ RED.nodes.eachConfig(function (n) {
277
+ if (n.z === RED.workspaces.active() && n._def.hasUsers === false) {
278
+ // Grab any config nodes scoped to this flow that don't
279
+ // require any flow-nodes to use them
280
+ nodes.push(n);
281
+ }
282
+ });
283
+
284
+ var parentNode = RED.nodes.workspace(
285
+ activeWorkspace
286
+ ) || RED.nodes.subflow(activeWorkspace);
287
+
288
+ nodes.unshift(parentNode);
289
+
290
+ return RED.nodes.createExportableNodeSet(nodes);
291
+ }
292
+
293
+ if (flowid) {
294
+ $.ajax({
295
+ url: `UnitTesting/${flowid}/testworkspace`,
296
+ type: "POST",
297
+ contentType: "application/json; charset=utf-8",
298
+
299
+ data: JSON.stringify({
300
+ flowdata: getFlowDataFromCurrentWorkspace(flowid),
301
+ }),
302
+
303
+ success: function (resp) {
304
+ RED.notify(`Triggered test run for ${flowid}`, "info")
305
+ $('#node-input-unittestingpull-testresults-row').find(".todo").html(resp.todo)
306
+ },
307
+
308
+ error: function (jqXHR, textStatus, errorThrown) {
309
+ RED.notify("Failed to trigger test", "error")
310
+ }
311
+ })
312
+ }
313
+ }
314
+
315
+ function runTestForFlowId(flowid, dirList=undefined) {
248
316
  if (flowid) {
249
317
  if (dirList) {
250
318
  resetTestResultsForFlowId(dirList,flowid)
@@ -284,8 +352,10 @@ function testCurrentWorkspace() {
284
352
  if (RED.comms.isConnected && !RED.comms.isConnected()) {
285
353
  return RED.notify("Not connected to server, websocket down", "error")
286
354
  }
287
- if ( RED.isErlangRed ) {
288
- runTestForFlowId(RED.workspaces.active())
355
+
356
+ // if ( RED.isErlangRed ) {
357
+ runWorkspaceAsTest(RED.workspaces.active())
358
+ /*
289
359
  } else {
290
360
  RED.notify("restarting flow", { type: "info" });
291
361
  RED.actions.invoke("core:restart-flows")
@@ -295,6 +365,7 @@ function testCurrentWorkspace() {
295
365
  RED.search.search("type:inject flow:current").map(d => d.node).forEach(d => RED.view.clickNodeButton(d))
296
366
  }, 2000)
297
367
  }
368
+ */
298
369
  }
299
370
 
300
371
  function triggerInjectsInWorkspace() {
@@ -318,7 +389,7 @@ function sendUnittestngHalt() {
318
389
 
319
390
  function resetTestResultsRow() {
320
391
  $('#node-input-unittestingpull-testresults-row').show();
321
- [".todo", ".pending", ".total", ".success",".failed"].forEach( d => {
392
+ [".todo", ".pending", ".total", ".success", ".failed", ".not-supported"].forEach( d => {
322
393
  $('#node-input-unittestingpull-testresults-row').find(d).html("0")
323
394
  })
324
395
  }
@@ -384,39 +455,6 @@ RED.sidebar.addTab({
384
455
  visible: true
385
456
  });
386
457
 
387
- /*
388
- var tabs = RED.tabs.create({
389
- id: 'func-unittesting-tabs',
390
- onchange: function (tab) {
391
- $('#func-unittesting-tabs-content').children().hide();
392
- $('#' + tab.id).show();
393
- }
394
- });
395
-
396
- // Add pull tab
397
- tabs.addTab({
398
- id: 'func-unittesting-tab-pull',
399
- iconClass: 'fa fa-arrow-down',
400
- label: 'Tests'
401
- });
402
-
403
- // Add compare tab
404
- tabs.addTab({
405
- id: 'func-unittesting-tab-compare',
406
- iconClass: 'fa fa-clone',
407
- label: 'TBD'
408
- });
409
-
410
- // Add push tab
411
- tabs.addTab({
412
- id: 'func-unittesting-tab-push',
413
- iconClass: 'fa fa-arrow-up',
414
- label: 'TBD'
415
- });
416
-
417
- tabs.activateTab("func-unittesting-tab-pull");
418
- */
419
-
420
458
  $('#func-unittesting-tab-pull').show();
421
459
 
422
460
  var dirList = $("#node-input-unittestingpull-sb-target-container-div").css({
@@ -428,7 +466,7 @@ var dirList = $("#node-input-unittestingpull-sb-target-container-div").css({
428
466
  }
429
467
  ).on('treelistselect', function (event, item) {
430
468
  if ( item.flowid) {
431
- $('#unittesting-view-testflow-link').prop('href', `https://flows.red-erik.org/f/${item.flowid}`)
469
+ $('#unittesting-view-testflow-link').prop('href', `https://github.com/gorenje/erlang-red-flow-testsuite/tree/main/${item.flowid}`)
432
470
  $('#unittesting-view-testflow-link').fadeIn(300)
433
471
  $('#unittesting-helper-import-text').fadeIn(300)
434
472
  } else {
@@ -473,6 +511,10 @@ var search = $("#node-input-unittestingpull-sb-target-filter").searchBox({
473
511
  count = dirList.treeList("filter", function (item) {
474
512
  return !!$($(item.treeList.container).find('.red-ui-treeList-icon')).data("status")
475
513
  });
514
+ } else if (val == "is:not-supported") {
515
+ count = dirList.treeList("filter", function (item) {
516
+ return $($(item.treeList.container).find('.red-ui-treeList-icon')).data("status") == "not-supported"
517
+ });
476
518
  } else {
477
519
  count = dirList.treeList("filter", function (item) {
478
520
  return item.label.toLowerCase().indexOf(val) > -1 || item.sublabel.toLowerCase().indexOf(val) > -1
@@ -591,10 +633,11 @@ RED.actions.add("unittesting:trigger-injects-in-workspace", triggerInjectsInWork
591
633
 
592
634
  $('#node-input-unittestingpull-testresults-row').on('click', 'span.filtrg', (e) => {
593
635
  e.preventDefault();
594
- if ( $(e.target).data('filter') == "") {
636
+ let filtervalue = $(e.target).data('filter') || $($(e.target).parent()).data('filter')
637
+ if (!filtervalue) {
595
638
  $('#node-input-unittestingpull-sb-target-filter').val('').trigger('keyup', { keyCode: 13})
596
639
  } else {
597
- let newVal = `is:${$(e.target).data('filter')}`
640
+ let newVal = `is:${filtervalue}`
598
641
  let currVal = $('#node-input-unittestingpull-sb-target-filter').val()
599
642
 
600
643
  if ( newVal == currVal) { newVal = "" } // toggle between filter and all
@@ -709,7 +752,7 @@ $('#node-input-unittestingselect-test-node').on('click', (e) => {
709
752
 
710
753
  <div class="form-row" style="margin-left: 10px; margin-top: 30px;">
711
754
  <button id="node-input-unittestingpull-sb-refresh-list-but"
712
- class="red-ui-button"><i class="fa fa-refresh"></i> Refresh Test List</button>
755
+ class="red-ui-button"><i class="fa fa-refresh"></i></button>
713
756
  <a id="unittesting-view-testflow-link"
714
757
  style="color: blue; display: none; margin-left: 20px;"
715
758
  target="_blank" href="">Share Testcase <i class="fa fa-external-link"></i></a>
@@ -733,11 +776,12 @@ $('#node-input-unittestingselect-test-node').on('click', (e) => {
733
776
 
734
777
  <div id="node-input-unittestingpull-testresults-row" class="form-row"
735
778
  style="margin-left: 10px; margin-top: 15px; display: none;">
736
- <span class='filtrg'data-filter="todo">Todo <span class="todo" style="color: purple">0</span></span>
737
- / <span class='filtrg'data-filter="succeed">Succeed <span class="success" style="color: green">0</span></span>
738
- / <span class='filtrg'data-filter="pending">Pending <span class="pending" style="color: orange">0</span></span>
739
- / <span class='filtrg'data-filter="failed">Failed <span class="failed" style="color: red">0</span></span>
740
- / <span class='filtrg'data-filter="tested">Done <span class='total'>0</span></span>
779
+ <span class='filtrg' data-filter="todo">Todo <span class="todo" style="color: purple">0</span></span>
780
+ / <span class='filtrg' data-filter="succeed">Succeed <span class="success" style="color: green">0</span></span>
781
+ / <span class='filtrg' data-filter="pending">Pending <span class="pending" style="color: orange">0</span></span>
782
+ / <span class='filtrg' data-filter="failed">Failed <span class="failed" style="color: red">0</span></span>
783
+ / <span class='filtrg' data-filter="not-supported">Not Supported <span class="not-supported" style="color: blue">0</span></span>
784
+ / <span class='filtrg' data-filter="tested">Done <span class='total'>0</span></span>
741
785
  </div>
742
786
 
743
787
  <div class="form-row" style="margin-left: 10px; margin-top: 30px;">
@@ -0,0 +1 @@
1
+ hello world
@@ -4,14 +4,8 @@
4
4
  "type": "tab",
5
5
  "label": "[file in] will accept file name from msg obj",
6
6
  "disabled": false,
7
- "info": "A file name can also be dynamic and be taken from the msg object passed to the file in node.\n\nWARNING: Need to have a test file and access that.",
8
- "env": [
9
- {
10
- "name": "NRED_PENDING",
11
- "value": "false",
12
- "type": "bool"
13
- }
14
- ]
7
+ "info": "A file name can also be dynamic and be taken from the msg object passed to the file in node.",
8
+ "env": []
15
9
  },
16
10
  {
17
11
  "id": "3de9bd2926669640",
@@ -21,7 +15,7 @@
21
15
  "props": [
22
16
  {
23
17
  "p": "filename",
24
- "v": "/data/package.json",
18
+ "v": "priv/testdata/helloworld.txt",
25
19
  "vt": "str"
26
20
  }
27
21
  ],
@@ -30,8 +24,8 @@
30
24
  "once": false,
31
25
  "onceDelay": 0.1,
32
26
  "topic": "",
33
- "x": 145.1428985595703,
34
- "y": 147.14284896850586,
27
+ "x": 128,
28
+ "y": 400,
35
29
  "wires": [
36
30
  [
37
31
  "e89d0c894d08b485"
@@ -50,11 +44,12 @@
50
44
  "sendError": false,
51
45
  "encoding": "none",
52
46
  "allProps": false,
53
- "x": 342.1428985595703,
54
- "y": 245.64284896850586,
47
+ "x": 325,
48
+ "y": 498.5,
55
49
  "wires": [
56
50
  [
57
51
  "e0f13216032f1fe6",
52
+ "e36810e4203e8306",
58
53
  "05c8dee92f3f6768"
59
54
  ]
60
55
  ]
@@ -64,30 +59,68 @@
64
59
  "type": "ut-assert-values",
65
60
  "z": "9e7ccc97f80d9afb",
66
61
  "name": "",
67
- "ignore_failure_if_succeed": false,
68
62
  "rules": [
69
63
  {
70
64
  "t": "mth",
71
65
  "p": "payload",
72
66
  "pt": "msg",
73
- "to": "node-red-project",
67
+ "to": "hello world",
74
68
  "tot": "str"
75
69
  }
76
70
  ],
77
- "x": 594.1428985595703,
78
- "y": 143.14284896850586,
71
+ "x": 577,
72
+ "y": 396,
79
73
  "wires": [
80
74
  []
81
75
  ]
82
76
  },
77
+ {
78
+ "id": "e36810e4203e8306",
79
+ "type": "debug",
80
+ "z": "9e7ccc97f80d9afb",
81
+ "name": "debug 1",
82
+ "active": true,
83
+ "tosidebar": true,
84
+ "console": false,
85
+ "tostatus": false,
86
+ "complete": "false",
87
+ "statusVal": "",
88
+ "statusType": "auto",
89
+ "x": 542,
90
+ "y": 611,
91
+ "wires": []
92
+ },
93
+ {
94
+ "id": "2b511c22a8ddb371",
95
+ "type": "ut-assert-debug",
96
+ "z": "9e7ccc97f80d9afb",
97
+ "name": "",
98
+ "nodeid": "e89d0c894d08b485",
99
+ "msgtype": "normal",
100
+ "inverse": true,
101
+ "x": 232,
102
+ "y": 544.5,
103
+ "wires": []
104
+ },
83
105
  {
84
106
  "id": "05c8dee92f3f6768",
85
107
  "type": "ut-assert-success",
86
108
  "z": "9e7ccc97f80d9afb",
87
109
  "name": "",
88
- "count": 1,
89
- "x": 636,
90
- "y": 245.64284896850586,
110
+ "x": 629,
111
+ "y": 496.5,
112
+ "wires": []
113
+ },
114
+ {
115
+ "id": "3d9780925fed909b",
116
+ "type": "ut-assert-debug",
117
+ "z": "9e7ccc97f80d9afb",
118
+ "name": "",
119
+ "nodeid": "e36810e4203e8306",
120
+ "msgtype": "normal",
121
+ "inverse": false,
122
+ "x": 661,
123
+ "y": 653,
91
124
  "wires": []
92
125
  }
93
126
  ]
@@ -1,265 +0,0 @@
1
- [
2
- {
3
- "id": "069552b2eb6bce48",
4
- "type": "tab",
5
- "label": "[tcp] Bad value on output port (3425)",
6
- "disabled": false,
7
- "info": "## gen_tcp:send(...) and numbers\n\nThere is a spot in the [connector code](https://github.com/gorenje/erlang-red/blob/dba90f15888503b4606cb41ac675878d16684841/src/ered_tcp_connector.erl#L39-L50) that highlights a minor issue with `gen_tcp:send/2` and numbers.\n\nThis test uses the connector code but the problem applies equally to the [listener code](https://github.com/gorenje/erlang-red/blob/dba90f15888503b4606cb41ac675878d16684841/src/ered_tcp_listener.erl#L52-L63).\n\nThe problem arises - for me - when using numbers, a single number. In particular it seems to be negative integer values that cause the issue:\n\n```\n08:47:02.788 [error] Bad value on output port 'tcp_inet'\n```\n\n[Stackoverflow](https://stackoverflow.com/questions/38750444/bad-value-on-output-port-tcp-inet) has many suggestions:\n\n> In my phoenix api that I had deployed to heroku. In my case, I was setting response headers with an atom. Once I changed the atom to a binary everything started working fine again.\n\nBut for me it was single numbers that caused the issues, not http headers.\n\nThis flow test demonstrates this. The value -12 will generates the error and the value 12 will not - both are numbers NOT strings.\n\n## What does this test do?\n\nFirst a <a class=\"ahl-node-only\" data-ids=\"7bec330797c929e4\">server on port 3425</a> is started, waiting for connections. Then a <a class=\"ahl-node-only\" data-ids=\"9d73ad81e2ed993c\">tcp request</a> node connects to the server.\n\nWhen it does, it will send the messages that have been sent to it, in this case we have three messages consisting of the value 12 and -12.\n\nThe <a class=\"ahl-node-only\" data-ids=\"6d6da201565de404,46385dd6aa371f45,6b30b8d45824c2ea\">delay nodes</a> ensure that the messages are sent in the order 12, -12 and 12.\n\nThe test is triggered by the <a class=\"ahl-node-only\" data-ids=\"146eaf26868b802c\">inject node</a> which in turn triggers the three messages.\n\nThe <a class=\"ahl-node-only\" data-ids=\"f0e3314691d12a74,046d9545fe9ab505\">join nodes</a> show that only two messages go through, with the third (-12) being lost on the way. This demonstrates that the tcp connection isn't actually closed and continues to function.\n\n## Why is this an issue?\n\nRandom errors are annoying and tracking this one down took a while. However there is nothing that can really be done. Since the value is set by the payload and the payload on a message can be anything, this can happen at any time - day or night.\n\nThe context of the message would be important to know - what is the meaning of a negative integer value being sent over a tcp connection?\n\nSince there isn't a general answer to that question, there isn't much that can be done - generally.\n\nPerhaps raising a debug message in the panel would be the best thing to do at this stage.\n\nAnnoyingly the error generated isn't an exception and cannot be captured, it seems more to be a warning than an error. As pointed out, the tcp connection isn't closed.\n\n",
8
- "env": [
9
- {
10
- "name": "ERED_NOT_EUNIT",
11
- "value": "true",
12
- "type": "bool"
13
- },
14
- {
15
- "name": "ERED_PENDING",
16
- "value": "false",
17
- "type": "bool"
18
- },
19
- {
20
- "name": "NRED_TIMEOUT",
21
- "value": "7",
22
- "type": "num"
23
- }
24
- ]
25
- },
26
- {
27
- "id": "7bec330797c929e4",
28
- "type": "tcp request",
29
- "z": "069552b2eb6bce48",
30
- "name": "",
31
- "server": "localhost",
32
- "port": "3425",
33
- "out": "time",
34
- "ret": "string",
35
- "splitc": "200000",
36
- "newline": "",
37
- "trim": false,
38
- "tls": "",
39
- "x": 839,
40
- "y": 507,
41
- "wires": [
42
- []
43
- ]
44
- },
45
- {
46
- "id": "6d6da201565de404",
47
- "type": "delay",
48
- "z": "069552b2eb6bce48",
49
- "name": "",
50
- "pauseType": "delay",
51
- "timeout": "10",
52
- "timeoutUnits": "milliseconds",
53
- "rate": "1",
54
- "nbRateUnits": "1",
55
- "rateUnits": "second",
56
- "randomFirst": "1",
57
- "randomLast": "5",
58
- "randomUnits": "seconds",
59
- "drop": false,
60
- "allowrate": false,
61
- "outputs": 1,
62
- "x": 599,
63
- "y": 433,
64
- "wires": [
65
- [
66
- "7bec330797c929e4"
67
- ]
68
- ]
69
- },
70
- {
71
- "id": "46385dd6aa371f45",
72
- "type": "delay",
73
- "z": "069552b2eb6bce48",
74
- "name": "",
75
- "pauseType": "delay",
76
- "timeout": "900",
77
- "timeoutUnits": "milliseconds",
78
- "rate": "1",
79
- "nbRateUnits": "1",
80
- "rateUnits": "second",
81
- "randomFirst": "1",
82
- "randomLast": "5",
83
- "randomUnits": "seconds",
84
- "drop": false,
85
- "allowrate": false,
86
- "outputs": 1,
87
- "x": 599,
88
- "y": 507,
89
- "wires": [
90
- [
91
- "7bec330797c929e4"
92
- ]
93
- ]
94
- },
95
- {
96
- "id": "6b30b8d45824c2ea",
97
- "type": "delay",
98
- "z": "069552b2eb6bce48",
99
- "name": "",
100
- "pauseType": "delay",
101
- "timeout": "1600",
102
- "timeoutUnits": "milliseconds",
103
- "rate": "1",
104
- "nbRateUnits": "1",
105
- "rateUnits": "second",
106
- "randomFirst": "1",
107
- "randomLast": "5",
108
- "randomUnits": "seconds",
109
- "drop": false,
110
- "allowrate": false,
111
- "outputs": 1,
112
- "x": 609,
113
- "y": 590,
114
- "wires": [
115
- [
116
- "7bec330797c929e4"
117
- ]
118
- ]
119
- },
120
- {
121
- "id": "508ebb98927e404f",
122
- "type": "change",
123
- "z": "069552b2eb6bce48",
124
- "name": "payload = 12",
125
- "rules": [
126
- {
127
- "p": "payload",
128
- "pt": "msg",
129
- "t": "set",
130
- "to": "12",
131
- "tot": "num"
132
- }
133
- ],
134
- "action": "",
135
- "property": "",
136
- "from": "",
137
- "to": "",
138
- "reg": false,
139
- "x": 398,
140
- "y": 433,
141
- "wires": [
142
- [
143
- "6d6da201565de404"
144
- ]
145
- ]
146
- },
147
- {
148
- "id": "53749a8b6ce5c205",
149
- "type": "change",
150
- "z": "069552b2eb6bce48",
151
- "name": "payload = 12",
152
- "rules": [
153
- {
154
- "p": "payload",
155
- "pt": "msg",
156
- "t": "set",
157
- "to": "12",
158
- "tot": "num"
159
- }
160
- ],
161
- "action": "",
162
- "property": "",
163
- "from": "",
164
- "to": "",
165
- "reg": false,
166
- "x": 398,
167
- "y": 590,
168
- "wires": [
169
- [
170
- "6b30b8d45824c2ea"
171
- ]
172
- ]
173
- },
174
- {
175
- "id": "25d8b0221cd42ca2",
176
- "type": "change",
177
- "z": "069552b2eb6bce48",
178
- "name": "payload = -12",
179
- "rules": [
180
- {
181
- "p": "payload",
182
- "pt": "msg",
183
- "t": "set",
184
- "to": "-12",
185
- "tot": "num"
186
- }
187
- ],
188
- "action": "",
189
- "property": "",
190
- "from": "",
191
- "to": "",
192
- "reg": false,
193
- "x": 388,
194
- "y": 507,
195
- "wires": [
196
- [
197
- "46385dd6aa371f45"
198
- ]
199
- ]
200
- },
201
- {
202
- "id": "146eaf26868b802c",
203
- "type": "inject",
204
- "z": "069552b2eb6bce48",
205
- "name": "",
206
- "props": [
207
- {
208
- "p": "payload"
209
- },
210
- {
211
- "p": "topic",
212
- "vt": "str"
213
- }
214
- ],
215
- "repeat": "",
216
- "crontab": "",
217
- "once": false,
218
- "onceDelay": 0.1,
219
- "topic": "",
220
- "payload": "",
221
- "payloadType": "date",
222
- "x": 128,
223
- "y": 507,
224
- "wires": [
225
- [
226
- "508ebb98927e404f",
227
- "25d8b0221cd42ca2",
228
- "53749a8b6ce5c205"
229
- ]
230
- ]
231
- },
232
- {
233
- "id": "dd3a799aef6166c9",
234
- "type": "ut-assert-success",
235
- "z": "069552b2eb6bce48",
236
- "name": "",
237
- "count": "0",
238
- "x": 1084.75,
239
- "y": 570,
240
- "wires": []
241
- },
242
- {
243
- "id": "9d73ad81e2ed993c",
244
- "type": "tcp in",
245
- "z": "069552b2eb6bce48",
246
- "name": "",
247
- "server": "server",
248
- "host": "",
249
- "port": "3425",
250
- "datamode": "stream",
251
- "datatype": "utf8",
252
- "newline": "",
253
- "topic": "",
254
- "trim": false,
255
- "base64": false,
256
- "tls": "",
257
- "x": 843,
258
- "y": 607,
259
- "wires": [
260
- [
261
- "dd3a799aef6166c9"
262
- ]
263
- ]
264
- }
265
- ]