Commit Graph
187 Commits
Author SHA1 Message Date
Honza Král aefd60fa64 Better exception matching in yaml tests 2015-08-25 01:40:04 +02:00
Honza Král 36d8d4b545 2.0 compatibility 2015-08-25 01:21:45 +02:00
Honza Král 9c61a1140d 2.0 compatibility 2015-08-25 01:09:54 +02:00
Honza Král d328998b36 Add keep_alive headers by default to Urllib3HttpConnection 2015-06-22 20:39:58 +02:00
Honza Král fdeb3d1131 Make sure reindex preserves _parent, _routing and _timestamp
Fixes #140
2015-06-20 00:27:08 +02:00
Honza Král 8b85d888b5 Add debug info to catch: // handling in yaml tests 2015-05-08 21:41:13 +02:00
Honza Král 42b4cfd3aa Get ready for the structured exceptions coming in es 2.0 2015-04-27 20:40:55 +02:00
Honza Král f910581f5e Yet another special case for the yaml tests 2015-04-22 22:57:45 +02:00
Honza Král 63c1c05a93 Save the last response even when catch is applied in yaml tests 2015-04-22 21:55:05 +02:00
Honza Král 47afab73ad Fix new skipping logic in yaml tests 2015-04-22 21:50:19 +02:00
Honza Král aa2d4f079c Adding tests for advanced auth options for requests 2015-03-26 14:17:10 +01:00
Russell Savage 4c24468168 updating doc links to elastic.co
reverting bucket link to elasticsearch.org

updating test cases to use elastic.co

updating pylibmc version
2015-03-23 15:56:32 -07:00
Honza Král 79ca075ab0 More sane defaults for helpers
Also make sure errors while scrolling will not be ignored
Fixes #194
2015-02-18 18:28:55 +01:00
Honza Král cca84058ff Sometimes we have dicts indexed by integers in yaml tests 2015-02-16 16:15:56 +01:00
Honza Král 293e8a3aca Implementing stash_in_path functionality 2015-02-10 22:08:44 +01:00
Honza Král f065817e89 Add option to pass kwargs to scan and bulk in reindex helper 2015-01-30 00:04:04 +01:00
Honza Král 271fc4d232 Warn when people using insecure options. 2015-01-29 23:46:01 +01:00
Honza Král 93d287d99c Added tests for raise_on_exception 2015-01-24 18:41:43 +01:00
Honza Král 1f0852bb92 Tests for reindex accepting a query 2015-01-16 16:34:44 +01:00
Honza Král d293346375 Proper skipping technique for yaml test suite 2015-01-12 14:57:52 +01:00
Honza Král d3e745ab77 Make initial sniff (sniff_on_start) ignore sniff_timeout
This is due to issue mentioned in #167 as part of discussion
2015-01-04 19:44:21 +01:00
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 HUBSCHERandHonza 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