8ad271d81c
and finally, return to standard mo
2016-05-19 14:33:04 -07:00
ec06c51c5d
final sweep, moved everything to _v4
2016-05-19 14:23:33 -07:00
c7f6c09d8c
get the unit tests to pass
2016-05-19 09:09:31 -07:00
38cf442acc
protect methods that can not use lodash-migrate
2016-05-19 08:44:15 -07:00
68a8f712c8
fix eslint errors
2016-05-19 07:52:01 -07:00
3d1efa57a0
splip in lodash-migrate for debugging
2016-05-19 07:28:52 -07:00
a55ed2f2ba
[client/config/logger/test] added test to ensure stream log could be configured
2016-04-05 08:56:26 -07:00
453cd9e1af
[transport] expose a method for updating the host list
2016-02-04 12:12:25 -07:00
916aca58c8
Fix #324
...
Added support for string hosts in ConnectionAbstract constructor.
Host constructor is used with supplied host string to create host object for ConnectionAbstract.
2016-01-31 12:40:01 +02:00
9ed1afbcd6
[nodesToHost] align with es.py host parsing behavior
2016-01-10 15:32:18 -07:00
7d5b0395e6
Merge pull request #329 from spalger/implement/createNodeAgent
...
Implement createNodeAgent config
2016-01-07 09:14:54 -07:00
0e3fe1586f
[errors] ensure that error.status is always a number when defined
2016-01-05 14:25:14 -07:00
04dfa9deef
add some tests to make sure the createNodeAgent config works
2016-01-05 10:09:13 -07:00
784942c60c
fix some unit tests expecting bluebird promises
2015-11-24 15:18:54 -06:00
1c3f72db17
[transport] update tests to check 391f228
2015-11-16 17:45:47 -06:00
6cfabff215
Merge pull request #275 from lpetre/fixing_domain_callbacks
...
Fixing domain callbacks
2015-11-16 16:02:32 -06:00
4c106c11b0
[transport] fix test regex
2015-11-16 15:19:14 -06:00
eda443b5b6
[transport] maintain support for 1.x nodes formatted urls
2015-11-16 15:12:05 -06:00
284f61e2ee
Adding transport tests for domain callbacks
2015-10-06 17:02:51 +01:00
04583c2f96
implement config.sniffedNodesProtocol
...
If you use https to protect traffic between esjs client and the nodes in your cluster then you also can't use sniffing. This is because we use the /_nodes/_all/clear output to populate the connection pool and that API does not know that the nodes speak HTTPS at all. This change implements the config.sniffedNodesProtocol to fix this.
As it is implemented here, the sniffedNodesProtocol can be set to a string which will be used as the protocol configuration for each Host object created durring sniffing, plain and simple. The default value for this configuration depends on the hosts initially passed to the client, if all of the nodes have the same protocol that protocol is used. If your nodes list is empty or there is a mixture of protocols in this list then "http" is used, as it is the default protocol for each host.
2015-09-10 18:47:05 -07:00
0ddcb057b4
Merge pull request #267 from spalger/fix/promiseRejection
...
[transport/request] ensure the return value gets defined
2015-09-10 15:25:54 -07:00
a9175dad58
[transport] before failing to send a request, ensure the return value is defined
2015-09-10 15:13:07 -07:00
94ca9d6f5b
Get rid of the satanic cult
2015-09-10 14:49:03 +02:00
e580b86e2a
support status message errors for many http statuses
2015-08-18 16:34:44 -07:00
fbfe9f98b3
update browser test with current version
2015-08-04 03:41:43 -07:00
36611d0d68
fix clientAction tests
2015-05-13 08:26:02 -05:00
c57e509267
remove old comments
2015-04-21 11:41:58 -07:00
55aff23c1e
added support for unbounded skip expressions
2015-04-21 11:40:43 -07:00
7f468d2064
Unify auth handling in the Host class
...
- flatten auth config to an Authorization header when the Host is created
- remove individual Authorization handling from connectors
- removed incomplete support for per-request auth
- use per-request headers to provide your own Authorization header per request
2015-04-10 09:46:21 -07:00
3005201732
test for an api that every version of the client has
2015-03-26 14:44:39 -07:00
ae69f624a7
added timer stubs for clear, since not all platforms accept a number in clearTimeout
2015-03-26 13:55:25 -07:00
867e3ae569
Revert "remove timer specifications"
...
This reverts commit 878fb67801 .
2015-03-26 13:54:05 -07:00
a46cfe529f
added tests for pintTimeout
2015-03-26 13:03:15 -07:00
878fb67801
remove timer specifications
2015-03-17 14:20:59 -07:00
ec6b0fcefc
auditted lodash usage to ensure that it is compatible with lodash 3.0
2015-03-17 13:52:10 -07:00
ed26798e5e
update stream clearing to be compatible with node 0.12
2015-03-17 12:03:39 -07:00
c991b589a4
transition away from lodash-node
2015-03-17 11:59:06 -07:00
88bff6e67d
fix test for IE
2015-01-11 00:46:10 -07:00
3b69e21262
update tests to use new timer object
2015-01-09 23:23:06 -07:00
547ff26104
fix test that now uses through2
2015-01-09 22:34:43 -07:00
93ea7a3fac
save
2015-01-06 07:08:17 -07:00
4fc1c91634
add SSL configuration options
2015-01-05 12:56:48 -07:00
4c1db66521
allow specifying the hostname as the host, eg. host: 'localhost'
2014-11-07 18:48:11 -07:00
165b7d7986
expand the url parsing ability of the Host class
2014-11-07 18:11:59 -07:00
44490e16ae
added a note to the config docs about the suggestCompression setting
2014-09-08 16:22:15 -07:00
4e8d267d71
added tests verifying the global config is always passed to the host.
2014-09-08 16:12:35 -07:00
eb4e0136a6
added a few tests checking the headers actually being set
2014-09-08 13:11:15 -07:00
6e2c2a8417
added suggestCompression config
2014-09-04 16:05:58 -07:00
a0ffe50745
converted decompression to use streams rather than callbacks
2014-09-04 16:05:54 -07:00
83b6400000
adding check and test for deflate algo
2014-09-04 18:14:42 -03:00