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
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
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
45a4d36ae1
Added a failing unicode test
2014-10-01 15:52:46 +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
756a6aee25
unicode_literals ftw
2014-05-29 01:16:17 +02:00
Honza Král
71176d5595
Provide helpers for running tests against elasticsearch
2014-04-23 01:12:03 +02:00
Honza Král
f084251278
Implemented gte/lte for yaml tests
2014-03-28 17:42:51 +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
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
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
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
4bce8a464c
Added more detailed error handling
...
namely being able to detect conflicts and bad requests
2013-11-14 01:12:55 +01: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
Honza Kral
44ed34771e
Better tests for the bulk_index helper
2013-10-06 17:54:07 +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
5c76e7c96c
Run yaml test suite correctly - one test per test method
2013-09-25 23:07:52 +02:00
Honza Kral
56c77f0bd0
Switch to using git submodules for the yaml tests
2013-09-23 17:12:14 +02:00
Honza Kral
402fca0e32
remove all templates in teardown
2013-09-23 14:20:16 +02:00
Honza Kral
f603a834ca
Use one global client instance for all test runs
2013-08-28 19:24:11 +02:00
Honza Kral
fe7cc106f6
Use unittest2 even for python 2.6
2013-08-28 19:11:28 +02:00
Honza Kral
d180e62a99
Revert "Support python 2.6"
...
This reverts commit 158f6e6183 .
2013-08-28 19:02:42 +02:00