Commit Graph

54 Commits

Author SHA1 Message Date
Nick O'Leary da6db24f9e
Reorganise nodes into new categories 2019-08-21 14:23:23 +01:00
Nick O'Leary 944f3bd329
Merge branch 'master' into dev 2019-07-07 21:48:13 +01:00
Nick O'Leary aab0b0b4bf
Bump for 0.20.7 2019-07-05 11:12:26 +01:00
Dave Conway-Jones dc75a5812f
Handle webscoket item being parseable but not an object better
and add test
2019-05-29 12:49:35 +01:00
Nathanaël Lécaudé c1e3b0d971 http request node: warn user if msg.requestTimeout == 0 2019-04-02 15:00:25 -04:00
Nick O'Leary 3c013b3533
Add file upload test for http request node 2019-03-06 21:21:35 +00:00
Nick O'Leary 4de1056d82
Tidy up HTTP Request payload to GET params work 2019-02-04 21:30:11 +00:00
Hiroki Uchikawa f3d2053878 Make the encode option a boolean value to determine whether to encode 2019-02-01 17:15:07 +09:00
Hiroki Uchikawa 7c6eb7c794 Allow http request node to change cookie value encoding 2019-01-30 19:33:23 +09:00
nakanishi 32d9acdaa5 minor fix 2018-12-04 15:46:46 +00:00
nakanishi 4eb3bd496b Add redirectList property in msg of http-request node 2018-12-04 15:39:01 +00:00
Nathanaël Lécaudé 6934a2d5c3 http request: add msg.requestTimeout parameter 2018-11-01 17:27:04 -04:00
Dave Conway-Jones 8dba0dac9e
Fix UDP in test 2018-10-29 22:23:03 +00:00
Nick O'Leary e4d518749f
Remove deprecated Buffer constructor usage
Fixes #1709
2018-10-24 13:45:34 +01:00
Osamu Katada 3d70bc722a Add http-proxy for http-request node. 2018-10-03 09:58:25 +09:00
Dave Conway-Jones c9dc9b4fe9
fix websocket feedback test - now doesn't spin 2018-09-26 16:03:22 +01:00
Nick O'Leary 2aae76c9bc
Merge branch 'dev' into repackage 2018-09-17 14:49:11 +01:00
Osamu Katada 62b2adab78 Bugfix. http-request node 2018-09-10 10:47:05 +09:00
Nick O'Leary 79e004a040
Merge branch 'master' into repackage 2018-08-24 14:13:09 +01:00
Christopher Hiller db1b0ccb79 fix lost messages / properties in TCPRequest Node; closes #1863 (#1864)
- Added some more checks around this.
- We're choosing to only use the latest message when sending, which is
  effectively what was happening before the queue implementation.
2018-08-23 08:50:51 +01:00
Nick O'Leary 38a1291c5b
Fixup all the tests 2018-08-20 16:17:24 +01:00
nakanishi 66fca8710e Fix test cases on windows and under proxy 2018-07-27 15:40:55 +09:00
Nick O'Leary 9df1d44bc4
Merge branch 'issue/1414' of https://github.com/boneskull/node-red into boneskull-issue/1414 2018-07-17 20:28:40 +01:00
HirokiUchikawa 9fd5d1db56 Move to request module 2018-05-23 17:16:20 +09:00
HirokiUchikawa 61f6535be8 Add test case for preventing following redirect 2018-05-23 16:54:03 +09:00
Nick O'Leary 3b5a2815a9
Merge master 2018-05-08 23:27:27 +01:00
Nick O'Leary 2fef6fd1fa
Fix proper closing of http request test ssl/proxy servers 2018-05-08 11:26:28 +01:00
Nick O'Leary 880af0671a
Merge branch 'pr_1706' 2018-05-08 10:44:35 +01:00
Christopher Hiller e1195ac00a fix many test problems (#1677)
* fix many test problems

- adds [stoppable](https://npm.im/stoppable) to force-stop net & http
  servers
- upgrades to latest mocha
- much cleanup of servers
- some removal of useless code

Signed-off-by: Christopher Hiller <boneskull@boneskull.com>

* increase wait time to hack at race condition

* PoC with fork of stoppable

Signed-off-by: Christopher Hiller <boneskull@boneskull.com>

* fix custom stoppable url for newer npm

* make travis go faster; attempt to avoid npm troubles

* fix coveralls executable path

* add extra time for flake to trigger spec

Signed-off-by: Christopher Hiller <boneskull@boneskull.com>
2018-04-23 12:37:26 +01:00
KatsuyaHoshii 6cd9ccc37c Refactor test cases 2018-04-23 14:31:37 +09:00
KatsuyaHoshii c9e2fce94d test for httprequest node 2018-03-27 16:09:04 +09:00
Christopher Hiller 6e2e36e7a0
tcp: queue messages while connecting; closes #1414
- queues messages on a per-client basis while waiting for TCP server
  connection
- add `denque` package for performance (`shift()` happens in constant
  instead of `Array`'s linear time)
- add tests
- remove a duplicate test in `31-tcp_request.spec.js`
- cap queue at value specified in settings (`tcpMsgQueueSize`); default
  to 1000
- add `tcpMsgQueueSize` to `settings.js`

Signed-off-by: Christopher Hiller <boneskull@boneskull.com>
2018-03-20 13:45:44 -07:00
Christopher Hiller 9994df9601
tcprequest tests: normalize indents 2018-03-20 13:45:44 -07:00
mblackstock 10d8ca30b0 use node-red-node-test-helper for node tests 2018-03-01 20:41:16 -08:00
Nick O'Leary cb4120ec4b
Watch node - filter subdir events in tests because fs.notify is inconsistent 2018-01-13 23:24:41 +00:00
Nick O'Leary 5cfbb87bee
Fix global leak in watch tests (again x2) 2018-01-13 23:14:01 +00:00
Nick O'Leary 9e472ed83c
Fix global leak in watch tests (again) 2018-01-13 23:00:05 +00:00
Nick O'Leary ebca753fc4
Fix global leak in watch tests 2018-01-13 22:59:05 +00:00
Nick O'Leary 8ffabf1813
Make Watch node test more reliable
- tidied up some unnecessary code
 - removed the 'size' check as that is highly prone to timing issues
2018-01-13 22:48:35 +00:00
Nick O'Leary 1f40d4f941
Update package dependencies 2018-01-13 22:00:43 +00:00
Hiroyasu Nishiyama d7f0102aa2 add test for WATCH node (#1493) 2017-11-30 13:48:52 +00:00
Hiroyasu Nishiyama 80a8efd8ce Add test script for "tcp in" node (#1465)
* fixed unmatched HTML tags

* add test for "tcp in" node
2017-11-02 16:47:01 +00:00
Hiroyasu Nishiyama d9dce77ef4 add test script for "udp in" node (#1466)
* add test script for "udp in" node

* use old socket.send API for Node4.X compatibility
2017-11-02 16:46:51 +00:00
Hiroyasu Nishiyama ce7053a1fe add test script for "udp out" node (#1467) 2017-11-02 16:46:38 +00:00
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
Nick O'Leary 6d76918424
Fix improper type tests is core test cases 2017-07-22 22:42:35 +01:00
Nick O'Leary 993f1dc853
Add request node test case for POSTing 0 2017-07-09 12:18:05 +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 f215970649
Add http-request node unit tests 2017-05-24 10:36:47 +01:00
Nick O'Leary 0a96259ddf
Update copyright header for JS Foundation 2017-01-11 15:24:33 +00:00