Honza Král
953c66e650
fix Elasticsearch.index with id=0
...
Fixes #164 Thanks larsmans!
2014-12-30 18:50:52 +01:00
Honza Král
836c6d1933
Introducing DummyConnectionPool for when only 1 connection defined
2014-12-20 00:35:24 +01:00
Honza Král
82a32540d7
Fix race condition in ConnectionPool
...
Fixes #158
2014-12-20 00:34:42 +01:00
Honza Král
9b5d2c062e
Add an option to use scan helper without search_type=scan, use with caution
...
Fixes #160
2014-12-15 15:15:03 +01:00
Honza Král
0f0630d8d7
Make sure we always have connections defined
2014-12-08 14:32:52 +01:00
Honza Král
5173d5b741
Check required parameters for empty values.
...
Fixes #138 , thanks robhudson!
2014-12-02 00:13:01 +01:00
Honza Král
cd5d646c09
Allow to specify url_prefix through RFC-1738 parsing
...
Also add docs about the various connection options.
2014-11-15 16:18:58 +01:00
Honza Král
bf74f7244e
make host url parsing more resilient
...
Reject invalid combinations of url scheme and connection_class
2014-11-14 15:55:32 +01:00
Rémy HUBSCHER and Honza Král
923ee018cf
Support RFC-1738 URLs
...
Fixes #149
2014-11-14 15:42:37 +01:00
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 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