Commit Graph
157 Commits
Author SHA1 Message Date
Honza Král 20aa35d791 Urllib3 will fill in the content-length automatically 2014-10-01 16:42:04 +02:00
Honza Král 45a4d36ae1 Added a failing unicode test 2014-10-01 15:52:46 +02:00
Honza Král 18d6b41e82 Allow body to be passed as bytes in python 3.4
Fixes #113, thanks leplatrem for the report!
2014-08-23 15:25:44 -07:00
Honza Král 8966902e40 Filter out master-only nodes when sniffing
Fixes #106, thanks jolynch!
2014-07-31 00:33:26 +02:00
Honza Král 3a79457250 Do not escape the global request_timeout param
Thanks EyePulp for the report!
2014-07-04 16:50:48 +02:00
Honza Král c112399631 Allow for global parameter to set per-request timeout
Fixes #100, thanks portante!
2014-07-02 15:56:57 +02:00
Honza Král dc28246b71 Add SKIP_TESTS to enable skipping some broken tests in released es versions 2014-06-25 15:32:35 +02:00
Honza Král be766b4a30 Adding a test for a single document in bulk helper 2014-06-04 15:11:39 +04:00
Honza Král 38ae1bd3c3 Fix repr tests and url quoting in bytes/strings 2014-05-29 02:42:59 +02:00
Honza Král 756a6aee25 unicode_literals ftw 2014-05-29 01:16:17 +02:00
Honza Král f10d7f2da2 Body is always sent as utf-8 bytes, reflect it in tests
Thanks johbo for the report!
2014-05-09 18:11:50 +02:00
Honza Král 71176d5595 Provide helpers for running tests against elasticsearch 2014-04-23 01:12:03 +02:00
Honza Král 49b7a1aca9 Make sure to include Content-Length header in calls with body
Fixes #70
2014-03-31 16:41:08 -07:00
Honza Král 7ce5b67a21 Actually add coverage back, it's just coveralls we didn't want 2014-03-28 18:53:39 +01:00
Honza Král 7507bc0dda Don't include coverage in running tests, it's unreliable 2014-03-28 18:49:29 +01:00
Honza Král f084251278 Implemented gte/lte for yaml tests 2014-03-28 17:42:51 +01:00
Honza Král d205cbfbb5 Perform git reset --hard on the elasticsearch repo when running tests. 2014-03-26 18:46:14 +01:00
Honza Král 3c74fd07cd make sure we resolve variables even deep in the yaml tests 2014-03-03 15:02:57 +01:00
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 BalandinandHonza 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