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
Patrick Mézard and Honza Král
7f6d38273e
Unquote user:password in hosts ( #569 )
...
Before turning them into an authentication header, the user or password
supplied in hosts must be URL decoded.
The RFC https://tools.ietf.org/html/rfc3986 describes userinfo like:
userinfo = *( unreserved / pct-encoded / sub-delims / ":" )
and python documentation about urlparse says:
The components are not broken up in smaller parts (for example, the
network location is a single string), and % escapes are not expanded.
It is the caller job to unquote them before using them.
For instance, a character like "]" cannot be supplied in a host or
urllib will incorrectly interpret it using ipv6 syntax.
Fix #568
2017-04-13 15:10:40 +02:00
Honza Král
597bf7ade9
Log proper headers in trace logs
2017-03-05 11:19:01 -08:00
Honza Král
d862c8a799
Add content-type default headers with application/json
2017-02-08 20:50:50 +01:00
Honza Král
f38fa51fea
When user is passing params we need to make a copy
...
Fixes #517
2017-01-17 03:10:50 +01:00
Honza Král
75bc46f506
add unauthorized catch code for common test runner
2017-01-03 15:07:28 +01:00
Honza Král
fe53ab588e
Fix sniffing for 5.0
...
Fixes #477
2016-12-06 12:17:57 +01:00
Honza Král
8b96556769
Change the trace logger to also include failed requests
2016-10-19 15:28:31 +02:00
Honza Král
8314f7b25c
Set verify_certs default to True
...
If certifi is installed use it as default for ca_certs value
Closes #403
2016-10-17 14:16:56 +02:00
Honza Král
cd8aaf2c5e
5.0 compatibility
2016-10-17 13:57:10 +02:00
Honza Král
99c91b7b5c
Skip in yaml tests can have multiple values
2016-07-14 17:29:16 +02:00
Honza Král
7bdaa317ed
adding the headers feature for our yaml test runner
2016-07-12 22:45:27 +02:00
Honza Král
ac74778037
Allow test client to be created with kwargs
2016-07-12 18:02:46 +02:00
Honza Král
06e9a9851c
Implement teardown functionality for yaml tests
2016-07-11 11:01:56 +02:00
Honza Král
418b93bfec
Do not warn on 404s when using HEAD method
...
Fixes #396
2016-04-27 13:21:47 +02:00
Honza Král
6e94bf76ad
5.0 compatibility
2016-03-22 21:04:07 +01:00
Alexei Peters and Honza Král
b792be3652
add the ability to serialize uuid types
2015-12-13 19:08:55 -08:00
Honza Král
fb8eb4e385
Respect publish host when present on a node.
...
Closes #251 . Thanks danpilch and bowensong for the patch!
2015-12-01 03:40:40 +01:00
Honza Král
ade841a680
Better exception representation
2015-11-04 19:21:29 +01:00
Honza Král
1b60d9bf84
iElasticsearch 2.0 exposes just host:port in nodes.info
...
Fixes #293
2015-11-02 14:26:28 +01:00
Honza Král
99980036e2
skip search_exists tests
2015-10-14 00:05:17 +02: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
Honza Král
6f7a56964c
Removing ThriftConnection and MemcachedConnection
2015-10-07 17:47:05 +02:00