Seth Michael Larson
8074ff294b
[7.x] Restore default metric='_all' to cluster.state()
2020-03-10 12:08:03 -05:00
Seth Michael Larson
210fae23d0
Run Black+Flake8 on project
2020-03-09 13:54:47 -05:00
Seth Michael Larson
04403ffb1d
[7.x] Refactor cloud_id, api_key, headers, and http_compress
2020-03-04 13:07:07 -06:00
Seth Michael Larson
b0bc6418e3
[7.x] Add HTTP compression to RequestsHttpConnection
2020-03-03 10:17:58 -06:00
Seth Michael Larson
024abcfa39
Unskip API tests, add xpack no_xpack default_shards features
2020-02-28 11:36:03 -06:00
Seth Michael Larson
2c7ea70201
Migrate CI to Jenkins on 7.x branch ( #1114 )
2020-02-27 10:13:49 -06:00
Seth Michael Larson
1bda6aca8a
[7.x] Don't issue warning when using 'ssl_context'
2020-02-26 15:57:30 -06:00
Honza Král
fba8e60ca8
xpack tests passing
2020-01-19 00:46:24 +00:00
Honza Král
8fdf11cc5c
make local.py work in tests
2020-01-19 00:02:02 +00:00
Honza Král
c4d61b7bce
No more broken upstream tests, yay!
2020-01-18 22:33:57 +00:00
Francesco Vigliaturo
6c5ff986fe
adds python client support for 7.5
2020-01-09 16:16:01 +00:00
Marshall Main
466ac7249e
use side effect call count instead of mock call count
2020-01-07 18:06:34 +00:00
Marshall Main
74b5f61dbf
add single test run instructions to docs
2020-01-06 12:17:25 -05:00
Honza Král
4be0f72bd5
Special cases for doc-based APIs
2019-12-22 16:32:49 +01:00
epiphyte
5c3ff5a718
Add a unit test
2019-10-30 18:40:06 +01:00
Alex Kahan
a2e9f0c807
Closes #1044 . Fixing bug with mark_dead in connection pool
2019-10-29 17:01:47 +01:00
Honza Král
fc78c992ef
Take skipped shards as successful in scan helper
2019-10-04 11:46:48 +02:00
Philip Krauss
c4bc2e420d
API key Authentication ( #1010 )
2019-09-20 14:01:31 +01:00
Honza Král
d936ba3eb4
Do a git fetch instead of pull
2019-08-21 17:39:28 +02:00
Philip Krauss
28920b5d59
Ensure a custom User-Agent header is not overwritten ( #992 )
2019-08-12 14:20:10 +02:00
Philip Krauss
100a2e623b
Send User-Agent header identifying the Client ( #991 )
...
* send user agent header identifing the client
* no need to instantiate a new var
* add python version to user-agent
2019-08-08 08:50:11 -06:00
Nick Lang
60d254860b
Add support for using cloud_id when instantiating conections ( #957 )
...
* add cloud_id
* adding doc strings
* update changelog
* adding some tests to check for cloud_id
* update the read me
2019-05-21 21:21:34 -05:00
Nick Lang
8e92b857bc
Update ES client API's for some missing 7 features ( #949 )
...
* Update cat.py to have correct query params
* Add missing api remote_info and missing params
* a couple apis have had added query params
* Add Split api and add missing query params
* Adding processor_grok api
* Adding missing apis:
* update by query rethrottle
* scripts painless execute
* scripts painless context
* rank eval
* delete by query rethrottle
* add missing query params
* Add missing xpack apis
* Update helpers to account for 7.x scroll api
2019-05-10 16:41:50 -06:00
Nick Lang
206f5e2754
Black ( #948 )
2019-05-10 09:16:33 -06:00
Nick Lang
45db46c855
upgrade start_elasticsearch to use 7.0.0
2019-04-26 12:05:30 -06:00
Slam
2181611a00
Scan refactor ( #924 )
...
* Adds scan test for exception & data yielded
* Adds scan test for fast route & initial search error
* Refactores scan implementation; better scroll test
* Adds tests clear_scroll & logger
2019-04-05 09:31:43 -06:00
Nick Lang
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
Alvaro Olmedo Rodriguez
51ad5d3617
ssl_show_warn option added ( #913 )
...
* ssl_show_warn option added
* Typo fixed
2019-03-28 13:20:16 -06:00
Asher Mancinelli
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 Lang
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 Lang
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
Akira Yumiyama
3176f46ae8
TypeError: string indices must be integers in TransportError ( #833 )
...
* Add tests of TransportError
* Fix to work properly even if the error is not structured on TransportError
2018-10-12 09:42:47 -06:00
Milly
cd871244e0
TransportError not raised in helpers.streaming_bulk() with max_retries. (#775 )
...
* Add test to raise `TransportError` in `helpers.streaming_bulk()` with `max_retries`.
* Re-raise `TransportError` if the last retry fails.
2018-04-24 11:35:54 -06:00
robgil
64c125d34c
Adding GZip support to urllib3 ( #704 )
...
* Adding GZip support to urllib3
* Adding compression documentation and example
* Convert to lowercase for consistency
* Moving header manipulation to __init__()
* Validating headers for compression
* Moving body compression out of the headers block
* Don't compress if there is no body
* Infer true
2018-03-13 10:34:25 -06:00
Nick Lang
058d38f0ae
Use use ssl_context or don't but don't mix ( #714 )
...
* Use original SSL process and add SSLContext
Not going to deprecate and replace with SSLContext.
But instead give option for using SSLContext next to the original way of
handling SSL.
2018-03-04 15:09:40 -08:00
Nick Lang
94ebf85404
better bash script to allow start from anywhere. closes #721
2018-02-03 12:20:26 -08:00
Nick Lang
08e0bbecc5
Merge pull request #722 from fxdgear/nick/default_es_image_tag
...
Set default ES image since latest isn't avail, closes #720
2018-02-03 12:59:21 -07:00
Nick Lang
4fce845daf
Set default ES image since latest isn't avail, closes #720
2018-02-03 11:57:33 -08:00
Slam
64202273e0
adds dynamic class-based repr ( #713 )
2018-01-24 15:21:29 +01:00
Nick Lang
d5da2ba3e8
Merge pull request #709 from fxdgear/nick/fix_for_6.1.1
...
Skipping/Unskipping tests
2018-01-10 13:58:13 -07:00
Nick Lang
c4ce9af767
Skipping/Unskipping tests
...
Some tests need to be skipped till changes occur in elastic/elasticsarch
Also some previously skipped tests can be unskipped now.
2018-01-10 13:40:17 -07:00
Nick Lang
e620165761
Elastic now supports -oss Docker Images
...
No need to use my personal docker iamges, now that Elastic creates oss docker images
2018-01-10 11:41:08 -07:00
Illia Volochii
43ddb3d56b
Dump as minified JSON as possible in its serializer ( #658 )
2018-01-01 16:08:38 +01:00
Nick Lang
bf1d64e88d
Updates to SSL Context changes,
...
Bug with OSX made breaking changes to the way certifi was being imported
and used.
Unable to reproduce with Linux.
Found improper logic. Fixed now.
Also changing removing the flag for checking `verify_certs` as
it is `True` by default. Don't want to make users flag that as
`False` just to make things work.
A connection to an SSL instance should be:
es = Elasticsearch("https://host:port ", http_auth=(user,pass))
* If using Elastic Cloud or some other publicly recognized certificate
that certifi can recognize.
2017-12-27 20:26:23 -07:00
Nick Lang
37490e223f
When _just_ using an SSL context we don't want breaking behavior ( #673 )
...
Also don't want to break backwards compat. So when chcking for depreicated values ignore
the check on verify_certs. Since it's True. the verify certs will be default true
in the ssl_context. And can be turned off in the SSL context when using it.
2017-11-28 22:01:20 +01:00
Nick Lang
5c537deca4
Merge pull request #635 from fxdgear/nick/ssl_context
...
Nick/ssl context
2017-10-06 11:35:23 -06:00
Nick Lang
7339a272b5
Add SSL context for versions of Python that support SSL Context.
...
Instead of passing parameters manually, you can construct an SSL
context. This allows for greater flexibility in using self signed certs.
2017-10-06 11:27:15 -06:00
Joshua Carp
3045516738
Clean up custom headers.
2017-10-04 16:07:55 -04:00
Joshua Carp
073db90ae8
Set application/x-ndjson content type on bulk requests.
...
Resolves #609
2017-10-04 16:07:55 -04:00
Nick Lang
843ce9ee24
Merge pull request #628 from fxdgear/nick/fix_encode_error
...
better handling of bytestrings in _escape
2017-08-08 14:13:21 -06:00