Commit Graph

217 Commits

Author SHA1 Message Date
d430aecdbd Move make.sh to .buildkite (#2165) 2024-03-21 12:07:24 -05:00
05e3139f80 Ensure new connections inherit client's set defaults (#2159)
* Add test confirming the issue

See https://github.com/elastic/elasticsearch-js/issues/1791

* fix: ensure new connections inherit the client instance's defaults

for https://github.com/elastic/elasticsearch-js/issues/1791
2024-03-20 16:32:15 -05:00
1607a0d3f7 Fix hang in bulk helper semaphore when server responses are slower than flushInterval (#2027)
* Set version to 8.10.1

* Add tests for bulk helper with various flush and server timeouts

* Copy and empty bulkBody when flushBytes is reached

Before it was waiting until after semaphore resolved, then sending with
a reference to bulkBody. If flushInterval is reached after `await
semaphore()` but before `send(bulkBody)`, onFlushTimeout is "stealing"
bulkBody so that there is nothing left in bulkBody for the flushBytes
block to send, causing an indefinite hang for a promise that does not
resolve.

* comment typo fixes

---------

Co-authored-by: Quentin Pradet <quentin.pradet@elastic.co>
2024-02-06 09:58:21 +04:00
4aaf49b6ea Integration test improvements (#2109)
* Improvements to integrations

Borrowed largely from https://github.com/elastic/elasticsearch-serverless-js/pull/38

* Bump all the things to 8.12.0

* Split Dockerfile copy into two layers

* Fix test cron names
2023-12-14 16:35:37 -06:00
426919709f Throw an explicit error when asStream is used with bulk helper (#2078) 2023-11-16 10:14:20 -06:00
6b4cdee53c Allow document to be overwritten in onDocument iteratee of bulk helper (#1732)
Co-authored-by: Josh Mock <joshua.mock@elastic.co>
2023-07-20 14:33:46 -05:00
a2b5e66a46 Add test to verify bulk helper index drift fix (#1912) 2023-06-12 16:03:11 -05:00
5c4c29f51c More integration test fixes (#1889) 2023-05-30 13:11:28 -05:00
bdb44d6d9a Use correct user-agent header by default (#1865) 2023-05-05 10:48:41 -05:00
4011f0153f Fix integration test runner for 8.8 (#1859) 2023-05-02 09:57:03 -05:00
c82005855f Integration test cleanup (#1841
* Fix bad sysctl command in README

* Add --suite and --test flags to integration tests

So we can run a single suite or a single test without having to edit
any code.

* Drop several skipped integration tests

Many of these skips are no longer necessary. Didn't do an exhaustive
check of all skipped tests, so this is just a start.

* Simplify cleanup make target
2023-04-13 11:26:29 -05:00
2c277ee2ba Fixes to YAML REST integration test suite runner (#1837)
* Use more inclusive language

* Don't bail on failing tests without --bail

* Skip a few more free suite tests

* Default to https when running platinum tests

* Add make targets for local integration testing

* Linter cleanup

* Skip some platinum integration tests

* Improvements to integration test README

* Another free test to skip for now

* Continue on non-bail test failure

* Output cleanup
2023-04-10 14:24:14 -05:00
911af982b2 Fix integration test (#1689) 2022-05-06 15:15:19 +02:00
0fbdf10a68 Fix integration test (#1581) 2022-01-12 08:14:19 +01:00
85d1968ce5 Updated transport dependency 2021-12-16 17:56:01 +01:00
4ad5daeaf4 Aggregations should be a generic in responses (#1596) 2021-12-16 17:49:05 +01:00
dbfc8fc4d1 Propagate bulk helper document generic (#1606) 2021-12-16 16:45:48 +01:00
853fe27505 Support params.body as string. (#1585) 2021-10-25 19:06:44 +02:00
a5a0a1c589 Do a shallow clone copy of the body when the body key is defined (#1584) 2021-10-25 16:56:33 +02:00
529742ac1f Updated test 2021-10-25 09:38:16 +02:00
4cf1fc6cd4 Updated test 2021-10-21 09:53:24 +02:00
4492532727 Update unknown parameter handling. (#1568) 2021-10-18 16:01:55 +02:00
1a227459f0 Elasticsearch v8 (#1558) 2021-09-30 09:45:04 +02:00
3feda5d9f6 Show socket local/remote address in case of ECONNRESET (#1555)
* Show socket local/remote address in case of ECONNRESET

* Fallback if socket or properties are not defined
2021-09-22 10:05:58 +02:00
212c3c4ffe Add support for maxResponseSize and maxCompressedResponseSize (#1551) 2021-09-16 08:19:57 +02:00
b67d42cb5f Add test for mocking library (#1545) 2021-08-30 15:36:14 +02:00
ee50a8e770 Always emit request aborted event (#1534) 2021-08-24 11:53:14 +02:00
a7658b2a66 Always display request params and options in request event (#1531) 2021-08-24 11:25:48 +02:00
a9b62049cd Fix parcel build (#1535) 2021-08-23 15:29:57 +02:00
a0dcace7cd Fix isHttpConnection check (#1526) 2021-08-20 12:40:25 +02:00
f161946984 Add warning.name to product check security exception (#1515) 2021-08-20 10:39:38 +02:00
4ae38ca7f0 Update integration test scripts (#1525)
* Updated scripts

* Update runner
2021-08-18 17:47:23 +02:00
516f52e303 Show the body as string if the response error can't be read as ES error (#1509)
* Show the body as string if the response error can't be read as ES error

* Updated test
2021-08-11 09:40:33 +02:00
2d1505eb2b Support CA fingerprint validation (#1499)
Co-authored-by: Aleh Zasypkin <aleh.zasypkin@gmail.com>
Co-authored-by: Ioannis Kakavas <ioannis@elastic.co>
2021-08-02 11:20:31 +02:00
b0a7a21f72 Support mapbox content type (#1500) 2021-08-02 11:19:28 +02:00
6686316433 Better message in case of unsupported build flavor (#1498) 2021-07-24 16:54:18 +02:00
17c744ed80 Verify connection to Elasticsearch (#1487) 2021-07-19 16:42:04 +02:00
3137780d6b Update integration test (#1493) 2021-07-16 10:00:24 +02:00
4073d60b97 Add api compatibility header support (#1478) 2021-07-13 09:47:45 +02:00
101a13f63e Add support for bearer auth (#1488) 2021-07-13 09:39:10 +02:00
f2d8cf7d34 Bulk update improvements (#1428) 2021-07-12 16:04:29 +02:00
4e6ae5d2e8 Fix integration test (#1479) 2021-06-03 17:50:16 +02:00
c64152b9b3 Drop node v10 support (#1471) 2021-05-20 16:16:45 +02:00
bf02b3d0e5 Add top level type error to error message (#1468) 2021-05-19 11:09:19 +02:00
623bd72910 Updated integration test helpers (#1466) 2021-05-12 15:12:49 +02:00
d5f61c7833 Catch HEAD errors (#1460) 2021-05-03 16:40:09 +02:00
dc2de57bd3 Improve response error message (#1457) 2021-05-03 16:38:58 +02:00
6a6d8bc566 Updated new types export (#1446)
* Updated new types

* Updated new types

* Updated test

* Updated docs
2021-04-15 08:43:58 +02:00
6464fc69f1 Wrap inside array ndjson bodies in integration test (#1444)
* Wrap inside array ndjson bodies

* Fix path

* Use orignal api name
2021-04-08 18:26:45 +02:00
7fdfa4834f Expose the new type definition along with the current one (#1440) 2021-04-07 14:08:18 +02:00