Commit Graph
279 Commits
Author SHA1 Message Date
Seth Michael LarsonandGitHub 7b6a12f2e5 Remove opaque_id from the client constructor 2020-03-19 13:23:52 -05:00
Seth Michael LarsonandGitHub 9b20a30b0f Restore and deprecate client.tasks.get() without task_id 2020-03-13 16:20:54 -05:00
Seth Michael LarsonandGitHub 883287551a Update supported ES API to 7.6 2020-03-13 13:44:46 -05:00
Seth Michael LarsonandGitHub ae74e1d0e6 [7.x] Update Cloud ID default port, parsing of Cloud ID 2020-03-12 07:02:04 -05:00
Seth Michael LarsonandGitHub 9219c92779 [7.x] Add support for X-Opaque-Id 2020-03-11 16:33:15 -05:00
Seth Michael LarsonandGitHub 8074ff294b [7.x] Restore default metric='_all' to cluster.state() 2020-03-10 12:08:03 -05:00
Seth Michael LarsonandSeth Michael Larson 210fae23d0 Run Black+Flake8 on project 2020-03-09 13:54:47 -05:00
Seth Michael LarsonandGitHub 04403ffb1d [7.x] Refactor cloud_id, api_key, headers, and http_compress 2020-03-04 13:07:07 -06:00
Seth Michael LarsonandGitHub b0bc6418e3 [7.x] Add HTTP compression to RequestsHttpConnection 2020-03-03 10:17:58 -06:00
Seth Michael LarsonandGitHub 024abcfa39 Unskip API tests, add xpack no_xpack default_shards features 2020-02-28 11:36:03 -06:00
Seth Michael LarsonandGitHub 2c7ea70201 Migrate CI to Jenkins on 7.x branch (#1114) 2020-02-27 10:13:49 -06:00
Seth Michael LarsonandGitHub 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 VigliaturoandHonza Král 6c5ff986fe adds python client support for 7.5 2020-01-09 16:16:01 +00:00
Marshall MainandHonza 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
epiphyteandHonza Král 5c3ff5a718 Add a unit test 2019-10-30 18:40:06 +01:00
Alex KahanandHonza 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 KraussandHonza 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 KraussandHonza Král 28920b5d59 Ensure a custom User-Agent header is not overwritten (#992) 2019-08-12 14:20:10 +02:00
Philip KraussandNick 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 LangandGitHub 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 LangandGitHub 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 LangandGitHub 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
SlamandNick 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 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
Alvaro Olmedo RodriguezandNick Lang 51ad5d3617 ssl_show_warn option added (#913)
* ssl_show_warn option added

* Typo fixed
2019-03-28 13:20:16 -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
Akira YumiyamaandNick 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
MillyandNick 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
robgilandNick 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 LangandGitHub 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 LangandGitHub 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
SlamandHonza Král 64202273e0 adds dynamic class-based repr (#713) 2018-01-24 15:21:29 +01:00
Nick LangandGitHub 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 VolochiiandHonza 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 LangandHonza 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