Commit Graph

231 Commits

Author SHA1 Message Date
fbac07a6ed _.pairs => _.toPairs 2016-05-19 08:43:38 -07:00
68a8f712c8 fix eslint errors 2016-05-19 07:52:01 -07:00
bd93bc914c _.unique -> _.uniq && _.pluck -> _.map 2016-05-19 07:31:15 -07:00
3d1efa57a0 splip in lodash-migrate for debugging 2016-05-19 07:28:52 -07:00
003c27a9d5 Revert "Merge pull request #386 from spalger/implement/betterStdioInterception"
This reverts commit e285f375f7, reversing
changes made to 3a54441be1.
2016-04-05 10:27:19 -07:00
e285f375f7 Merge pull request #386 from spalger/implement/betterStdioInterception
[jenkinsReporter] hook into stdio earlier
2016-04-05 09:52:57 -07:00
f9743b4e21 [jenkinsReporter] hook into stdio earlier, to capture output from more sources 2016-04-05 09:38:58 -07:00
a55ed2f2ba [client/config/logger/test] added test to ensure stream log could be configured 2016-04-05 08:56:26 -07:00
fe5bad3327 move section headers to client logger 2016-02-22 10:55:14 -08:00
aae2d96d56 [YamlDoc] add section description logging 2016-02-22 10:46:34 -08:00
ece9fa6da8 [YamlDoc] accept headers from yaml tests 2016-02-22 10:22:56 -08:00
ca01cd112c log meaningful warnings for new yaml-test args 2016-02-20 13:43:00 -08:00
7c3e5aefcd https://github.com/elastic/elasticsearch-js/issues/357 - fixing separated spelling error 2016-02-06 00:21:01 -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
d0d55f8f3e switch from jshint to eslint 2016-01-08 14:21:26 -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
f140745527 fix recursive value replacement
The recursive search for $vars was naively using `typeof` to determing if something is an object, which of course failes on `null`...
2015-12-30 18:12:07 -07:00
bf8ef6e503 Merge pull request #289 from saschagoebel/master
Always send Content-Length header. Fixes compatibility issues with el…
2015-11-30 10:32:08 -06:00
48667b2201 Mock setHeader to avoid multiple done() calls. 2015-11-30 13:56:47 +01:00
da50dd5ce6 use bluebird in the yaml docs 2015-11-24 15:32:21 -06: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
236cd91297 clean up snapshots serially to not trigger snapshot cleanup bug 2015-10-26 16:05:29 -05: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
6368d12a2f Support setting elasticsearch bind host for tests 2015-08-25 11:46:20 -07:00
96515e9ced support request_timeout catch in yaml tests 2015-08-18 16:34:44 -07:00
e580b86e2a support status message errors for many http statuses 2015-08-18 16:34:44 -07:00
de3c00b0dc enhance response errors with request/response metadata 2015-08-04 05:01:18 -07:00
fbfe9f98b3 update browser test with current version 2015-08-04 03:41:43 -07:00
a527416976 update config to support repository urls and enable scripting related tests 2015-07-20 09:44:21 -07:00
89aa4575a5 properly pass port around 2015-07-02 14:53:52 -07:00
878a3e41ce strip timeout override left from debugging 2015-07-02 13:07:27 -07:00
863cb7a61c clear the snapshot repos after every doc 2015-07-02 13:05:06 -07:00
5e1da82688 added filterPath support to master api and enhanced yaml testing 2015-06-02 11:23:04 -07:00
36611d0d68 fix clientAction tests 2015-05-13 08:26:02 -05:00
68b9214ab4 allow range string 'all' 2015-05-07 09:08:30 -07: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