Honza Král
c4d61b7bce
No more broken upstream tests, yay!
2020-01-18 22:33:57 +00:00
Francesco Vigliaturo and Honza Král
6c5ff986fe
adds python client support for 7.5
2020-01-09 16:16:01 +00:00
Marshall Main and Honza Král
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 and Honza Král
5c3ff5a718
Add a unit test
2019-10-30 18:40:06 +01:00
Alex Kahan and Honza Král
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 and Honza Král
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 and Honza Král
28920b5d59
Ensure a custom User-Agent header is not overwritten ( #992 )
2019-08-12 14:20:10 +02:00
Philip Krauss and Nick Lang
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 and GitHub
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 and GitHub
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 and GitHub
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 and Nick Lang
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 and GitHub
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 and Nick Lang
51ad5d3617
ssl_show_warn option added ( #913 )
...
* ssl_show_warn option added
* Typo fixed
2019-03-28 13:20:16 -06:00
Asher Mancinelli and Nick 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 Lang and GitHub
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 and GitHub
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 and Nick Lang
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 and Nick Lang
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 and Nick Lang
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 and GitHub
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 and GitHub
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 and Honza Král
64202273e0
adds dynamic class-based repr ( #713 )
2018-01-24 15:21:29 +01:00
Nick Lang and GitHub
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 and Honza Král
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 and Honza Král
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 and GitHub
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 and GitHub
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
Nick Lang
a5b228a26d
better handling of bytestrings in _escape
...
Fixes #627
2017-08-08 12:50:04 -06:00
Honza Král
4e6f635711
6.x compatibility in tests
2017-08-01 15:54:59 -04:00
Honza Král
aca83e85ae
Update the upstream broken test list
2017-08-01 15:12:09 -04:00
Honza Král
3be98b0a09
first pass for 6.0 compatibility
2017-07-31 19:17:52 -04:00
Honza Král
8f73594cac
Tests for retry logic in streaming_bulk
2017-07-22 13:40:22 -04:00
Glen Smith and Honza Král
a523159e9e
Add "--with-id" to default settings passed to nose testing. ( #608 )
...
This enables "--failed" option to only run tests that failed in the last run
2017-07-12 23:13:03 +02:00
Tyler James Harden and Honza Král
d6fb95353e
Fixes non UTF-8 surrogateescapes ( #612 )
...
Fixes non UTF-8 surrogateescapes
Surrogate escapes in Unicode (non UTF-8 encoding) will be properly escaped with backslashes when encountered, versus breaking the transport layer.
Fixes #611
2017-07-11 16:58:46 +02:00
Honza Král
ce9465afef
Test things to the testing dir
2017-06-14 16:42:47 +02:00
Honza Král
d336c571b9
[WIP] remove scheme checking
2017-05-15 22:01:54 +02:00