Commit Graph

20 Commits

Author SHA1 Message Date
Doug Rohrer
4c4637c928 Disable AAE in final part of yz_extractors test to make it deterministic again. 2016-08-31 12:25:14 +00:00
Fred Dushin
d4bc7f4aea Changed extractor test to use bad_entry stat 2016-08-30 14:39:23 -04:00
Fred Dushin
17301e8312 Fixed yz_extractors test. 2016-08-29 14:58:08 -04:00
Fred Dushin
d82b34db8d Added a test for an extractor which returns non-unicode data, and which will therefore result in a bad_data error when transcoding to JSON. 2016-06-15 13:45:54 -04:00
Fred Dushin
4e80028a9d Copied yz_rt:http functions into yokozuna_rt, and replaced direct calls to ibrowse in the yz_* tests to use this function. Added the test result status to the "Test Run Complete" notice in riak_test. 2016-05-27 15:35:39 -04:00
Zeeshan Lakhani
d269a2fd98 - search expect refactor and associated cleanup
- handle wait_for_index properly after index creation and cleanup write_data
  to include commit
2016-05-25 08:59:32 -04:00
Nick Marino
85eaf86f81 Fix false positive test fails caused by AAE race
It is occasionally possible to see a YZ AAE repair in normal operation
if we happen to be running the exchange FSM while writes are occurring,
and we compare the KV tree (which already has the new data inserted)
with the YZ tree (which doesn't have the data inserted yet).

This ends up triggering an extra call to get_map, which could cause some
earlier parts of this test to fail when it expected 60 calls but saw 61.

To fix this, we can simply disable AAE at the start of the test, and
then enable it later when we get to the part of the test that requires
AAE.
2016-03-30 19:31:24 -04:00
Nick Marino
951473a3d7 Remove call to rt:clean_cluster for efficiency
Can't think of a reason why we should need this, since everything gets
reset and cleaned at the start of the next test run.
2016-03-30 13:54:51 -04:00
Zeeshan Lakhani
dd033f9746 sure up possible race between upgrade and first check
(cherry picked from commit 867dc1a036)
2015-11-18 16:24:06 -05:00
Zeeshan Lakhani
81d74cd8ca yokozuna_rt additions for types and better testing w/ allow-mult=true extractors test
(cherry picked from commit 844ee9cdb20bd2f476d28fe7ef80967e23d09046)
2015-10-13 15:35:41 -04:00
Jason Voegele
49d5c361c5 Refactor some Yokozuna tests to eliminate duplication
Specifically, introduce the `gen_keys/1` and `assert_search/6` functions
into yokozuna_rt module and refactor tests to use them instead of copied
and pasted code fragments.
2015-09-24 10:13:48 -04:00
Zeeshan Lakhani
40d0fd22d0 update extractors test to check for possible issue w/ expiry and custom extractors 2015-09-09 19:42:53 -04:00
Zeeshan Lakhani
499a7b1c48 add some clarity to ordering of socket close and such
(cherry picked from commit 13408eb9e2)
2015-08-13 13:07:40 -04:00
Zeeshan Lakhani
203efbbce8 add brief module notes 2015-06-25 15:28:28 -07:00
John R. Daily
aa1ab75da4 Pin these tests to 2.0.5 2015-06-25 15:28:22 -07:00
Zeeshan Lakhani
e86616f38d handle possible race conds w/ trace checker and log out values too for extractor checks 2015-05-27 18:10:30 -04:00
Fred Dushin
a8f00eb46c Removed verify_num_found_query function from yz_extractors and changed test
to use Zeeshan's version by the same name in yokozuna_rt
2015-05-27 16:08:50 -04:00
Zeeshan Lakhani
54568a0c27 * rename file to reduce conflict on buildbot runs
* wait_for_index on write data due to use in upgrade tests
* clean-up other tests to that test upgrade from (2.0.5->2.0.6/2.1.1->2.1.2), namely yz_extractors
* clean-up tests that can start using yokozuna_rt helpers
2015-05-27 10:25:05 -04:00
Zeeshan Lakhani
e6e8d9403c * test default bucket type upgrade on change to entropy iteration... and move assert cap checks to rt.erl
* cleaner setup as we deal w/ immediate version needs
2015-05-27 10:25:05 -04:00
Zeeshan Lakhani
96c2f35227 * add some yz wait_until helper fns
* add count_calls and helpers for tracing fn calls (with dbg)
* add yz_extractors test to check for updates made in RIAK-1673
* add yz_noop_extractor intercept for testing a custom mimetype for extractor
2015-04-28 18:00:42 -04:00