Hiroyasu Nishiyama
0db1530171
add test script for "tcp request" node ( #1468 )
...
* add test script for "http request" node
* change let -> var
2017-11-02 16:46:26 +00:00
Kazuhito Yokoi
f57a0d4d6b
Remove unused variables in test cases of change node ( #1455 )
...
* Remove unused variables in test cases of change node
* Empty commit to run test cases again
* Empty commit to run test cases again
2017-10-25 12:23:28 +02:00
Hiroki Uchikawa
22772ca33e
Fix debug message format for Buffer ( #1444 )
...
and add a test case
2017-10-23 12:13:28 +02:00
Kazuhito Yokoi
5b137c457b
Fix invalid from property error in change node ( #1442 )
...
* Fix invalid from property error in change node
* Empty commit to run test cases again
2017-10-17 22:17:27 +01:00
Kazuhito Yokoi
611e598756
Add test cases for function node ( #1402 )
...
* Add test cases for function node
* Remove test case for keys() in global context
2017-10-12 20:47:52 +01:00
Hiroki Uchikawa
937d79d28f
Add test cases for debug node ( #1438 )
2017-10-12 20:47:13 +01:00
Dave Conway-Jones
ae7c298b1a
let default apply if msg.delay not set in override mode. ( #1397 )
...
* let default apply if msg.delay not set in override mode.
* Update tests to match
* allow msg.delay to be 0 if wanted
and test for that
2017-10-10 21:40:09 +01:00
Hiroki Uchikawa
53bfe12ac1
Add test cases for switch node ( #1426 )
2017-10-10 21:37:34 +01:00
Kazuhito Yokoi
0634a97598
Fix global.keys() bug in function node ( #1417 )
...
* Fix global.keys() bug in function node
* Filter set(), get() and keys() in global.keys() method
2017-10-10 21:13:38 +01:00
Hiroki Uchikawa
cb4f46decc
Fix circular reference in join node ( #1412 )
...
and add a test case
2017-09-28 19:09:54 +01:00
Hiroki Uchikawa
81256279a8
Fix wrong argument in change node ( #1415 )
...
and add test cases
2017-09-28 10:06:31 +01:00
Kazuhito Yokoi
ef53dca062
Handle escape characters in template node which uses Mustache format and JSON output mode ( #1377 )
...
* Handle escape characters in template node which uses Mustache format and JSON output mode
* Handle escape characters in template node which uses Mustache format and JSON output mode
2017-09-21 13:38:45 +01:00
Nick O'Leary
b1cd13d629
Initial projects implementation
2017-09-20 10:30:07 +01:00
Nick O'Leary
9a8b404054
Split localfilesystem storage plugin into component parts
2017-08-23 17:31:33 +01:00
Nick O'Leary
41af5187aa
Reorganise red/api layout to better componentise
2017-08-22 22:26:29 +01:00
Nick O'Leary
6d76918424
Fix improper type tests is core test cases
2017-07-22 22:42:35 +01:00
Nick O'Leary
2aced893c6
File node: recreate write stream when file deleted
...
Fixes #1351
2017-07-22 22:28:45 +01:00
Kazuki Nakanishi
2f88dc64fc
Fix userDir test case when .config.json exists ( #1350 )
2017-07-21 11:12:04 +01:00
Kazuhito Yokoi
c6e453fb00
Fix boundary problem in range node ( #1338 )
...
* Fix boundary problem in range node
* Remove duplicated test case
* Empty commit to retry Travis CI
2017-07-19 16:42:39 +01:00
Nick O'Leary
993f1dc853
Add request node test case for POSTing 0
2017-07-09 12:18:05 +01:00
Kazuhito Yokoi
b3ffd33507
Add file extension into flow name of library automatically ( #1331 )
2017-07-09 11:58:17 +01:00
Nick O'Leary
c93870316c
Fix accessing global context from jsonata expressions
...
Fixes #1335
2017-07-09 10:40:23 +01:00
Nick O'Leary
f9769a73fe
Retry auto-install of modules that fail
...
- introduces autoInstallModulesRetry - default 30000
- backs off interval if repeated failures
- fixes notification to the editor of an auto-reinstall
2017-07-08 17:30:17 +01:00
Nick O'Leary
f30f80d117
Join: count of 0 should not send on every msg
2017-07-05 14:12:28 +01:00
Nick O'Leary
47e2707fd3
Restore File In node behaviour of sending msg on error
2017-07-04 19:55:09 +01:00
Nick O'Leary
1542f73fa5
Fix global leaks in theme.js
2017-07-04 09:43:16 +01:00
Nick O'Leary
70a22187f7
editorTheme not setting custom css/scripts properly
2017-07-04 09:33:27 +01:00
Kazuki Nakanishi
347e598715
Fix missing icons for some nodes ( #1321 )
2017-07-04 09:04:27 +01:00
Kazuki Nakanishi
c34c98386e
Fix creating userDir other than system drive on Windows ( #1317 )
2017-07-03 15:22:49 +01:00
Nick O'Leary
d8a3d2793f
Trigger node not handling a duration of 0 as block mode
...
Fixes #1316
2017-07-03 15:20:37 +01:00
Nick O'Leary
344076c943
Fix settings tests to remove nodeSettings reference
2017-06-29 11:36:16 +01:00
Nick O'Leary
52c0d360b2
Add buffer joiner mode to Join node
2017-06-27 17:11:11 +01:00
Nick O'Leary
c9317659c5
Prevent unmodified msg.headers from breaking HTTP Request flows
...
Closed #1015
2017-06-27 11:24:20 +01:00
Nick O'Leary
6562c558de
Add help info for split node
2017-06-27 11:24:20 +01:00
Dave Conway-Jones
2482d122b8
Let join node auto re-assemble buffers
...
and add test
2017-06-26 23:10:08 +01:00
Dave Conway-Jones
e23354b2bb
tidy up split node to remove todo comments
2017-06-24 12:09:52 +01:00
Dave Conway-Jones
dc9fa81346
let split of objects use key to set another property (e.g. topic)
...
and add tests
and update messages
2017-06-22 18:42:54 +01:00
Dave Conway-Jones
b91c178200
add "split/stream" ability to file in node
...
and add teste
2017-06-22 18:41:49 +01:00
Dave Conway-Jones
4f34980c9f
adding streaming modes into split node
...
and add tests
2017-06-16 22:26:14 +01:00
Dave Conway-Jones
56405ac903
let join also accumulate strings (and not fail)
2017-06-15 00:11:35 +01:00
Dave Conway-Jones
d407f31ae5
stop delay node spamming web socket (when in fast rate limit mode)
2017-06-09 19:42:12 +01:00
Dave Conway-Jones
7c42b04eff
updated split/join node (split still needs work before release)
2017-06-05 17:04:17 +01:00
Nick O'Leary
f215970649
Add http-request node unit tests
2017-05-24 10:36:47 +01:00
Nick O'Leary
8a7bb1be9f
Log error when non-msg-object is returned from a Function
2017-05-15 13:54:05 +01:00
Nick O'Leary
d4135e80a6
Timeout a node that fails to close - default 15s timeout
2017-05-15 13:05:33 +01:00
Dave Conway-Jones
49389d6f06
Add new msg.delay option to delay node
...
and msg.reset to clear/fluch existing delays
2017-05-11 16:13:40 +01:00
Nick O'Leary
c75dc3cc36
Add test coverage for deleting a flow
2017-05-11 15:39:55 +01:00
Nick O'Leary
29bd43413a
Add context.keys function to list top-level keys
2017-05-03 20:51:33 +01:00
Nick O'Leary
4ea33ea482
Pass a 'removed' parameter to node close handler
2017-04-21 23:36:21 +01:00
Nick O'Leary
e13d410b4a
Update tests for oauth -> strategy rename
2017-04-21 22:06:12 +01:00
Kazuki-Nakanishi
adcb2f1aa8
Fix exec node error tests on Windows ( #1234 )
2017-04-19 22:09:53 +01:00
Dave Conway-Jones
11ee1a7dcb
fix exec node error test
2017-04-13 11:48:33 +01:00
Dave Conway-Jones
a281b8c74e
Make exec node spawn and exec outputs more consistent
...
(with an option to revert if necessary)
and new info docs
2017-04-13 11:36:54 +01:00
Kazuki-Nakanishi
05878d3176
Fix the test cases which sometimes fails due to timing. ( #1228 )
2017-04-12 20:54:31 +01:00
Nick O'Leary
c54cf26848
Add support for oauth adminAuth configs
2017-04-12 10:09:03 +01:00
Nick O'Leary
bfb548636e
Merge branch 'master' into 0.17
2017-04-11 14:53:44 +01:00
Kazuki-Nakanishi
10f94148af
Exec node for windows environment ( #1200 )
...
* Modify exec node to run on Windows.
* Remove unnecessary modification.
2017-04-10 16:06:19 +01:00
David
62b29ecb65
Make theme able to load custom javascript ( #1211 )
...
* Make theme able to load custom javascript
- Look for the field 'customScript' in editorTheme (settings.js)
- Add it to mustach context
- Load list on template side (index.mst)
* Add unit tests for customScripts
* Code review edits : generic behavior for theme.page.[css|scripts]
- Use the same way to share css and javascript files from a theme
- Allow string instead of array for theme.page.scripts
- Remove old customScript field
2017-04-10 15:46:44 +01:00
Andrey Bezugliy
f987fa13ea
Resolve dir argument of getLocalNodeFiles function ( #1216 )
...
* Resolve dir argument of getLocalNodeFiles function
The getLocalNodeFiles is called 3 times. Each time it called, the callee needs to resolve the dir argument.
That was not done for several of calls, and local modules (specified in the "nodesDir" setting) were not returned to client because of that.
This fix will allow to make sure the dir is consistently resolved.
* Several changes in "localfilesystem_spec.js":
- Changed checkNodes to verify that every node's file property is resolved, i.e. containst absolute path, not relative.
- Added a unit-test "Finds nodes in settings.nodesDir (string,relative path)"
2017-04-10 15:41:20 +01:00
Dave Conway-Jones
3f349c3531
remove requirement for cmd in exec node config + new style info
2017-03-29 21:44:58 +01:00
Nick O'Leary
5945be95cf
Treat missing msg properties as undefined rather than throw error
...
Fixes #1167
2017-03-12 22:04:37 +00:00
Kazuki-Nakanishi
3cc4173399
Extend timeout for the test case of installing non-existant path. ( #1191 )
...
to fix timeout on slower hosts
2017-03-10 13:59:44 +00:00
Nick O'Leary
5356373681
Finalise nodeSettings and update tlsConfigDisableLocalFiles
...
- increase test coverage around registerType
2017-03-09 21:06:49 +00:00
Nick O'Leary
e55933706d
Merge branch 'nodeSettings' into 0.17
2017-03-09 20:00:54 +00:00
Kazuki-Nakanishi
3b3d696e45
Add the node setting tlsConfigDisableLocalFiles for tls node. ( #1190 )
...
* Add the node setting tlsConfigDisableLocalFiles for tls node.
* Fix the bug that shows node setting when specified in settings.js and exportable is false.
2017-03-09 19:58:34 +00:00
Kazuki-Nakanishi
34089aec70
Allow a node to declare what settings should be made available to the editor. ( #1185 )
...
* Implement register/exportNodeSettings.
* Change normaliseRegisterTypeName to normaliseNodeTypeName. Force it to name in a camel case.
2017-03-08 14:38:33 +00:00
Kazuki-Nakanishi
3658d0e039
Add wait for writing a library entry into a file. ( #1186 )
2017-03-08 10:00:40 +00:00
kazuhitoyokoi
7a10636128
Add node whitelist function ( #1184 )
2017-03-08 10:00:00 +00:00
Dave Conway-Jones
27b7fb54e8
nail trigger test for windows AND linux
2017-03-06 19:06:10 +00:00
Dave Conway-Jones
99b8f16d88
give up on SIGQUIT for widows test
...
revert to SIGINT
2017-03-06 17:42:59 +00:00
Dave Conway-Jones
06ffe722d4
better tests for windows nodes
2017-03-06 17:40:09 +00:00
Dave Conway-Jones
6264104642
comment out 2nd exec node kill tests
...
(to be revisited)
2017-03-06 16:49:51 +00:00
Dave Conway-Jones
c97812c340
retry exec node tests
...
(diff behaviour on host)
2017-03-06 16:25:38 +00:00
Nick O'Leary
7698990e37
Allows flows to be enabled/disabled in the runtime
2017-03-06 15:29:05 +00:00
Dave Conway-Jones
2db65b9d1f
fixes for grunt files tests on Windows
2017-03-06 15:28:23 +00:00
Dave Conway-Jones
c6436f47eb
let exec node take msg.kill SIG... param and pid param
...
and redo test
2017-03-06 15:27:29 +00:00
Nick O'Leary
63ce743571
Treat missing msg properties as undefined rather than throw error
...
Fixes #1167
2017-03-02 14:02:26 +00:00
Nick O'Leary
6cf53c611b
merge exec fixes
2017-03-02 13:41:01 +00:00
Nick O'Leary
d8720ee325
Third output from Exec node must be consistent for success/failure conditions
2017-03-02 13:34:01 +00:00
Nick O'Leary
73501f3ad3
Resync with master
2017-03-01 17:45:09 +00:00
Nick O'Leary
571b9fb8e0
Merge pull request #1122 from CANDY-LINE/feature/i18n-issue
...
Fix empty extra node help content issue
2017-03-01 16:38:08 +00:00
Nick O'Leary
fca77a868f
Allow a node to declare settings that should be exported
2017-03-01 15:01:07 +00:00
Dave Conway-Jones
a625eeeac8
move csv fixes to master
...
to fix #1142 in master
2017-02-22 20:19:44 +00:00
Dave Conway-Jones
bfcd795687
Fix wrong number of double quotes in CSV parsing
...
to close #1162
2017-02-20 22:44:37 +00:00
Nick O'Leary
4794fe495c
Add events to test helper
2017-02-15 23:15:24 +00:00
Nick O'Leary
869fdbcc6a
Remove event passing for icons/examples from the api layer
2017-02-15 23:07:50 +00:00
Dave Conway-Jones
50838970ec
let css node handle ip addresses without trying to parse
...
and only warn once if no template (and then send object anyway)
to close #1142
2017-02-07 21:14:16 +00:00
Dave Conway-Jones
ada8e447cc
exec node can be killed on demand
2017-02-07 21:14:16 +00:00
Dave Conway-Jones
1841fc18fa
let trigger node set repeated outputs
2017-02-07 21:14:16 +00:00
Nick O'Leary
3e021b3a75
Fix loader test to expect line numbers in load errors
2017-01-30 09:58:43 +00:00
Nick O'Leary
7759aacb35
Ensure custom mustache context parent set in Template node
...
fixes #1126
2017-01-23 15:34:34 +00:00
Nick O'Leary
e27f5d0460
Add node module update api and expose in palette editor
2017-01-21 23:46:44 +00:00
Daisuke Baba
57c529758e
Add an edge case test
2017-01-19 17:19:41 +09:00
Daisuke Baba
5ba9a0eb3f
Fix empty extra node help content issue
2017-01-19 16:55:57 +09:00
Nick O'Leary
0857f979ff
Update ui_spec for icon module path
2017-01-18 13:14:12 +00:00
Nick O'Leary
d146ff8794
Update debug_spec test for Error messages
2017-01-14 21:47:18 +00:00
Nick O'Leary
0a96259ddf
Update copyright header for JS Foundation
2017-01-11 15:24:33 +00:00
btsimonh
c8d6693fba
fix bug where savesettings did not honor local settings variables ( #1073 )
...
* fix bug where savesettings did not honor local settings variables
* don't create lib/flows on read; It's already created in localfilesystem.init and in saveLibraryEntry -
so removed call to promiseDir, and added a return of [] if accessing a folder which did not exist.
This is important because else when settings.readOnly is true, it still creates folders.
* Fix a CI failure where path passed to getLibraryEntry is empty;
treat this case as meaning it was wanting a folder, and return empty if the folder dioes not exist
* Add a test for getLibraryEntry( type, '/' ) as called by node-red
* change newsettings to camelCase newSettings
2017-01-08 23:00:27 +00:00
Nick O'Leary
73a41707e5
Property expressions must not be blank
2017-01-06 21:58:17 +00:00
Nick O'Leary
e73216d4c1
Merge branch 'master' into 0.16
2017-01-06 14:30:13 +00:00