Honza Král
aaeab13f8b
Handle regexp-based catch statements in the yaml test suite
2014-01-03 18:05:25 +01:00
Honza Král
f7d7931a2d
Rest-api-spec repo has been merged with elasticsearch proper
...
Changing the git submodule and moving it top level to avoid traversing
the es source code during test discovery
2013-12-28 17:40:00 +01:00
Honza Král
06efe2c15b
Update to latest tests
2013-12-23 16:03:04 +01:00
Honza Král
05c4eefbf3
Enable deserialization of different content types coming from the server.
2013-12-14 18:15:15 +01:00
Honza Král
e2ab7ea80d
Adding a third return value from connection.perform_request - headers
...
This will be used to implement deserializing based on mimetype
2013-12-13 19:36:21 +01:00
Honza Král
be9acfad90
Make sure we handle quotes correctly in the trace logger
2013-12-11 14:41:42 +01:00
Honza Král
1345b36948
Make sure actions aren't modified when passed into bulk
2013-12-11 14:30:59 +01:00
Honza Král
79c59d6f80
Use fully qualified names for the generated tests
2013-12-09 22:24:54 +01:00
Honza Král
a19595e803
Report the name of the generated test case when running the tests with -v
2013-12-09 22:17:36 +01:00
Honza Král
95fba05e02
Fix unicode body handling.
...
Only body should be encoded as bytes, not anything going through the
serializer (mostly because of bulk)
2013-12-04 15:07:56 +01:00
Honza Král
cf03f9831a
Ass send_get_body_as parameter for situations where GET cannot have a body
2013-12-02 22:57:47 +01:00
Honza Král
6f6c864bc8
Bulk supports timeout parameter in new ES
2013-11-25 11:57:21 +01:00
Honza Král
82fa7b03a4
Enable users to override the client used in tests.
...
Fixes #7 , thanks nkvoll!
2013-11-23 19:20:44 +01:00
Honza Král
5ce42094c6
Skip test for different op types before 0.90.1
2013-11-22 22:28:29 +01:00
Honza Král
5f8c5322b0
Have bulk tests work for 0.90.0 too
2013-11-22 16:05:51 +01:00
Honza Král
3ae44db90c
Bulk helpers overhaul
...
streaming_bulk for iterative consumption of the input
bulk_index -> bulk
callback expand_action to transform input into action/data pairs
support for non-index actions through _op_type key
2013-11-22 14:29:08 +01:00
Honza Král
a4e068c505
Fix the helpers tests.
...
ES doesn't guarantee that refresh will wait for cluster state
propagation and thus the type might not exist right after the index
being created during the bulk load. Just check the documents instead.
2013-11-19 22:33:53 +01:00
Honza Král
5557fbff1e
Make sure jenkins output contains logs
2013-11-19 04:10:34 +01:00
Honza Král
4bce8a464c
Added more detailed error handling
...
namely being able to detect conflicts and bad requests
2013-11-14 01:12:55 +01:00
Honza Král
e04b875ca7
Changer is 1.0 Beta2
2013-11-07 17:18:19 +02:00
Honza Král
68b19ebe55
Fixed test after log format change
2013-11-03 22:44:16 +01:00
Boaz Leskes
422d43f4f8
Added get_field_mapping API
2013-10-30 19:23:43 +01:00
Honza Král
04afc03cdd
Thrift plugin uses different format in cluster stats
2013-10-29 17:45:49 +01:00
Honza Král
2bd421f29d
Add in __repr__ to client to simplify debugging
2013-10-22 01:23:12 +02:00
Honza Král
78d5a0b5a8
Be more benevolent when dealing with hosts parameter
...
This was mostly inspired by work on haystack for backwards compatibility
2013-10-22 01:22:47 +02:00
Honza Král
73f170f23f
Decimal support
...
Currently only converting to floats which may lose some precision.
Not recommended in 2.6 where float to string serialization is sub-optimal
2013-10-22 00:26:58 +02:00
Honza Kral
2bb16fe7ed
Make offset in search work. from is a reserved word in python so use from_
...
Fixes #13
Thanks llonchj, danfairs, vanatteveldt and RonRothman!
2013-10-17 22:01:25 +02:00
Honza Kral
174c431afb
Add raise_on_error parameter to bulk_index to enable short-circuiting bulk loading
2013-10-14 23:50:42 +02:00
Honza Kral
4e56b4fbc1
Only collect info on failed docs when using the bulk_index helper
2013-10-14 23:33:16 +02:00
Honza Kral
64dd28fd8f
Failed indexes in bulk_index do not contain theok flag
2013-10-14 23:33:16 +02:00
Boaz Leskes
70829a219b
upgrade submodule to the latest spec
2013-10-11 13:57:35 +02:00
Honza Kral
5b36475197
Updated the yaml test suite
2013-10-10 14:48:54 +02:00
Boaz Leskes
1e52c17d1a
updated source filtering tests and spec
...
Fixed id tests to be strings.
Changed the _source_* param of get_source as they have changed in core.
2013-10-08 18:18:20 +02:00
Honza Kral
44ed34771e
Better tests for the bulk_index helper
2013-10-06 17:54:07 +02:00
Honza Kral
cc524e9c9d
Python 3 fix fo tests
2013-10-06 17:43:45 +02:00
Honza Kral
92c7dde5e0
Removing redundant code
2013-10-02 01:04:50 +02:00
Njal Karevoll and Honza Kral
6a0f5c7646
urllib3: add a test to verify that providing http_auth as a list works
2013-10-02 01:01:30 +02:00
Honza Kral
1a9fd9e105
Remove duplicate test
2013-10-02 01:01:05 +02:00
Njal Karevoll and Honza Kral
4037de58d0
requests: add tests to verify that providing http_auth as a list works and that the authorization headers are added to the request
2013-10-02 01:00:11 +02:00
Honza Kral
a24337ca6b
Updated rest api specs
2013-10-02 00:54:39 +02:00
Honza Kral
5fccd1e793
Allow lists for http_auth in RequestsHttpConnection
...
thanks nkvoll!
2013-10-02 00:42:38 +02:00
Honza Kral
b0587071b6
Circumvent prepared requests from RequestsHttpConnection
...
this is because sesion.send(prepared_request) doesn't pass through auth
info. Thanks nkvoll!
Fixes #8
2013-10-02 00:39:19 +02:00
Honza Kral
17c4a3dd21
stats_only parameter to bulk_index helper for large loads`
2013-09-30 19:05:12 +02:00
Honza Kral
8da490e672
Even when using existing server wait for yellow status before proceeding
...
This should solve travis issues where ES is run just before the test
suite.
2013-09-28 15:51:24 +02:00
Honza Kral
49a23db148
New spec repo version
2013-09-25 23:10:30 +02:00
Honza Kral
5c76e7c96c
Run yaml test suite correctly - one test per test method
2013-09-25 23:07:52 +02:00
Honza Kral
33b05bdc62
Thrift SSL support
2013-09-25 21:31:10 +02:00
Honza Kral
490fd237ee
rename use_https to use_ssl to make it forwards copatible with thrift
2013-09-25 21:07:29 +02:00
Honza Kral
b724288d76
Https support for the http-based transports.
...
Thanks, nkvoll!
2013-09-24 23:07:14 +02:00
Honza Kral
7a440fda4a
Support for HTTP auth. Thanks, nkvoll!
2013-09-24 22:55:04 +02:00