Honza Král
a54d7035bb
Compatibility with python 3.2
...
Now all the python 2/3 compatibility code is in elasticsearch.compat
Fixes #52
2014-02-21 16:59:13 +01:00
Honza Král
c4f7cb6182
only look for regexes in strings
2014-02-03 21:42:59 +01:00
Honza Král
aefc942fa5
Implemented the matching by regex feature for the yaml test suite
2014-02-03 19:30:20 +01:00
Honza Král
cfcf062f6a
Skip on feature for yaml tests
2014-02-03 19:10:58 +01:00
Andrey Balandin and Honza Král
27efc6d05a
Fix tests.
2014-01-30 11:56:38 +01:00
Honza Král
c2611e92eb
Set timeout properly for Requests and Thrift connections
2014-01-23 08:48:42 +01:00
Honza Král
ab4f386075
Don't output coverage by default when running from cmdline
2014-01-22 12:31:14 +01:00
Honza Král
8c670793e6
Always use kwargs
2014-01-20 18:54:19 +01:00
Honza Král
d8a84b6045
Just ignore 404 instead of catching exception
2014-01-20 18:53:41 +01:00
Honza Král
705d5d75cc
The yaml test suite has some weird bool rules
2014-01-20 18:51:04 +01:00
Honza Král
69b0c7141d
get_client() already returns a singleton instance
2014-01-20 17:15:53 +01:00
Honza Král
a3e98c5ec3
Raise the timeout for the server to come up. Maybe travis will make it.
2014-01-18 21:25:14 +01:00
Honza Král
dfb939d878
Major test refactor.
...
- removed the git submodule, relying on the elasticsearch repo existing
outside of this one
- modified the run_tests.py script to inspect currently running
elasticsearch and try and checkout the exact SHA used to build the
server
- removed the option of starting out own elasticsearch server
- fixed travis.yml to reflect the changed situation
- added a README file to the test suite explaining all the options
2014-01-18 21:08:15 +01:00
Honza Král
4adad8dc78
Updated tests to work with 1.0
2014-01-18 01:54:30 +01:00
Honza Král
33e0406a8d
Added implementation for catch: param
2014-01-18 01:52:33 +01:00
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