Commit Graph
17 Commits
Author SHA1 Message Date
Seth Michael LarsonandGitHub a728aaa491 [7.x] Sort imports with isort and regenerate APIs 2021-01-13 14:21:04 -06:00
fe5367382b [7.x] Move client meta header logic to Transport
Co-authored-by: Seth Michael Larson <[email protected]>
2020-12-17 15:25:08 -06:00
b894e359df [7.x] Add the 'X-Elastic-Client-Meta' header
Co-authored-by: Seth Michael Larson <[email protected]>
2020-12-14 17:50:14 -06:00
ff378f6b0d [7.x] Add optimistic concurrency and update+_source options to bulk
Co-authored-by: Seth Michael Larson <[email protected]>
2020-09-28 09:17:16 -05:00
Seth Michael LarsonandGitHub b13c7c6217 [7.x] Switch to long Apache-2.0 license header 2020-07-02 13:15:25 -05:00
Seth Michael LarsonandSeth Michael Larson eaff4af910 [7.x] Switch to Pytest as default runner 2020-05-19 14:18:53 -05:00
Seth Michael LarsonandGitHub 9cc48b3e66 Update new APIs in 7.x 2020-05-08 16:07:52 -05:00
Seth Michael LarsonandSeth Michael Larson 8e1798cf31 Apply license header changes and API gen 2020-04-23 14:10:49 -05:00
Marshall MainandHonza Král 466ac7249e use side effect call count instead of mock call count 2020-01-07 18:06:34 +00:00
Nick LangandGitHub 1afceba69b update to ES 7 (#911)
* update to ES 7

* more updates to make tests run

* update the test matrix

* remove python 3.3

* update xpack apis

* relative imports
2019-03-29 09:25:23 -06:00
Asher MancinelliandNick Lang 85573db275 Restructuring helpers dir (#886)
* PEP8 formatting & package structuring

* adding internal function imports into helpers init

* changed absolute paths for mock

* removed debugging print statements

* resolving @fxdgear 's comment
2019-01-14 11:27:02 -08:00
Nick LangandGitHub f3f7266c1f better logic to handling unicode and chunking. (#870)
Chunking was looking at the length of a string but not accounting for the
byte length. closes #716
2018-11-26 10:58:47 -07:00
Nick LangandGitHub bafe65987c Fixing flaky test wrt mock and threading. (#875)
* Fixing flaky test wrt mock and threading.

Mock is apparetnly not threadsafe, and as a result will sometimes
cause tests to fail when we want to count the number of times a
mock function is called.

I've replaced the mock function with a side_effect, which allows for
locking and incrementing manually.

* put threading.Lock in globals
2018-11-26 10:10:12 -07:00
Honza Král 7729c3048f Python2 compatibility in tests 2015-10-11 23:59:26 +02:00
Honza Král 9d415fadef Adding tests for indexing strings via bulk helpers 2015-10-11 05:00:14 +02:00
Honza Král 1378073e2d Moved helpers unit tests to test_helpers 2015-10-11 04:50:31 +02:00
Honza Král 12c2a466e1 Basic tests for parallel_bulk 2015-10-11 04:47:02 +02:00