Nick O'Leary
714c254bab
Update delay burst test to be more tolerant of timing
...
Fixes #1013
2016-10-14 22:35:43 +01:00
Nick O'Leary
325c6135cf
Defeat the exec node test dragons
2016-10-11 20:31:42 +01:00
Nick O'Leary
f002560616
Exec node spawn mode should clone messages it reuses
2016-10-11 14:49:48 +01:00
Nick O'Leary
d119594cbf
Tidy up exec node clean-up to remove failure-causing timing window
2016-10-11 13:25:19 +01:00
Nick O'Leary
84f7da6e93
Fix null checking in exec node test
2016-10-11 11:16:10 +01:00
Nick O'Leary
22e1bafe1b
Fix exec test on node 0.10
2016-10-11 10:53:50 +01:00
Nick O'Leary
42f7dc1947
Fix type checking in unit tests
2016-10-10 13:27:43 +01:00
Antoine Aflalo
ea8c6d5cce
Add number of units to the delay node (rate) ( #994 )
...
* Add possibility to set the value for the rate unit
Backward compatible, if the new nbRateUnits is not set, default to 1.
This way we can delay messages to 1 msg per X seconds/minutes/hours days
instead of always 1.
Useful when interacting with API that have a uncommon rate limiting like
1req per 2 seconds.
* Fix existing testing for delay
* Add new test for the nbRateUnits
* Fix label for timed and topic for delay node
* Schrink width of Units delay rate
* pluralisation of labels
* Dynamic pluralisation respecting i18n
* Remove debug data left
2016-09-16 14:27:14 +01:00
Nick O'Leary
691b083364
Update trigger node ui to use typedInputs
2016-07-05 15:39:00 +01:00
Nick O'Leary
3959fcdc88
Handle null return from Function node in array of messages
2016-06-06 11:40:02 +01:00
Dave Conway-Jones
b27db3e2e7
tiny changes to JSON and exec test for node6
...
no need to specify npm2 defaults are ok now. (on travis)
2016-04-30 17:05:10 +01:00
Dave Conway-Jones
c09be02e4e
small fix to exec node test
2016-04-27 22:54:00 +01:00
Dave Conway-Jones
bd59398cab
Add optional timeout to exec node
...
(both exec and spawn modes)
and add test for it (both exec and spawn)
also extra test for trigger node.
2016-04-27 22:32:58 +01:00
Dave Conway-Jones
8916cf273e
Let trigger node also send last payload to arrive
...
and add test for it.
2016-04-24 17:42:24 +01:00
Dave Conway-Jones
b2923d0fc4
enhance a couple of tests to check more
...
Delay node checks times properly for both types of queue. And File
checks to make sure other payload types are handled (a bit better than
they were)
2016-04-24 17:41:22 +01:00
Dave Conway-Jones
d0f57efe0b
test a few extra paths in several nodes
...
trigger, switch and file
(and linted delay just because)
2016-04-23 21:06:48 +01:00
Dave Conway-Jones
595ff63b72
Fix exec test for v0.10
...
Back out nvm 6 in travis (not there yet)
2016-04-23 17:41:56 +01:00
Dave Conway-Jones
9990046abb
get more debug from travis for exec test
...
Don’t have v.10 locally.
And a,y as well try node v6 also ;-)
2016-04-23 17:29:31 +01:00
Dave Conway-Jones
8dacf72b3c
try to increase coverage for exec and template nodes
...
(works locally - may fail on travis - lets see…)
2016-04-23 17:09:46 +01:00
Dave Conway-Jones
4bc482bc85
update load of grunt related versions
...
and mqtt and fs-extra and should. Fix tests to keep working.
2016-04-18 12:40:08 +01:00
Dave Conway-Jones
906703db5f
Add timed release mode to delay node
2016-03-20 17:46:12 +00:00
Nick O'Leary
633a6a0ee6
Fix inject test to use a proper type
2016-02-04 21:52:27 +00:00
Dave Conway-Jones
d3a29a6f16
fix trigger tests
2016-02-04 21:22:52 +00:00
Nick O'Leary
aed89d82fb
Fix template test
2016-01-06 17:01:14 +00:00
Nick O'Leary
371f72f4f1
Skip delay node burst test
2015-12-11 14:04:24 +00:00
Dave Conway-Jones
61045ddd7f
try to fix debug node non-standard object type handling.
2015-10-10 22:41:07 +01:00
Nick O'Leary
9e91e42a1b
Increase delay burst test timeout
...
The test was occasionally timing out, despite it succeeding. Increased
the timeout to give it a bit more safety margin to complete
2015-10-03 09:06:51 +01:00
Dave Conway-Jones
cc6e0937a0
initialise status.text to be blank string if not set.
...
(and change test to use .text rather than .message)
(not that it matters at this level of test)
2015-10-02 21:27:30 +01:00
Dave Conway-Jones
fcf4f40c36
add basic status node test
2015-10-02 21:27:30 +01:00
Dave Conway-Jones
b555b014b8
Update debug test to check lengths...
2015-08-12 21:56:19 +01:00
Nick O'Leary
39df80bf99
Fix exec test to restart helper server before each test
2015-07-05 23:02:10 +01:00
Dave Conway-Jones
9f0b3eba47
Add basic exec node test
2015-06-22 08:26:38 +01:00
dceejay
a9a0953653
Slide timing window to left for trigger node test.
2015-04-04 22:27:25 +01:00
dceejay
8a96dbd121
New tests for Trigger, catch and unknown nodes
2015-03-25 21:58:26 +00:00
dceejay
5352fc87ee
add extra tests to debug, delay & template
2015-03-22 09:38:42 +00:00
Nick O'Leary
b61a250d58
Debug message formatting mangling brackets
2015-03-20 22:09:58 +00:00
Nick O'Leary
dd4cec84bf
Add node.send/on to Function node
2015-03-17 13:40:12 +00:00
Antoine Aflalo
0ed9f6cc4f
Adding an Object node to the sandbox of a function node
...
Permit the user of the sandbox to log using the Function Node.
Test provided and working.
Fix Display warning message in the debug log
Before they were displayed as error instead of warning
2015-03-05 09:50:11 +02:00
dceejay
2e76541fa5
Update Debug node test to "unbreak" build... oops
2015-02-10 17:31:26 +00:00
Nick O'Leary
8451c29a25
Add line/col report test
2015-02-07 19:56:22 +00:00
Nick O'Leary
0aaea1ec40
Update logging/metric system
2015-02-03 22:02:26 +00:00
hbeeken
b052324d36
Adding logging & metric recording configuration via settings
2015-02-03 19:12:09 +00:00
Nick O'Leary
f983e4da9f
Renable unit tests following logging api changes
2015-01-29 09:57:09 +00:00
hbeeken
0bfbb12211
Adding metric logging mechanism
2015-01-27 14:41:20 +00:00
Mark Hindess
7909ca24d3
Fix random delay in milliseconds case and change test to reproduce bug.
...
Because there was no multiplier the node.randomFirst was a string so
the later '+' was a concatentation. The test failed to catch this because
it uses integers not strings to configure the node.
2015-01-14 10:18:47 +00:00
Nick O'Leary
53a9a5fe93
Merge pull request #422 from anna2130/debug
...
Updated debug node to output other msg properties
2014-10-20 16:35:24 +01:00
Anna Thomas
2a753c9d22
Updated debug node test
2014-10-07 10:25:56 +01:00
Mark Hindess
669f3d9ba1
Fix supertest usage to correctly throw errors.
2014-09-30 14:59:37 +01:00
zobalogh
4706b814dd
Adding drop check to Delay tests
2014-09-08 14:26:35 +01:00
Nick O'Leary
c91a3f3f78
Delay node drop immediate not working
...
Fixes #381
2014-09-05 16:04:35 +01:00