In #70278 I implemented a bunch of randomized tests for the fields API. In particular, all extensions of MapperTestCase must override generateRandomInputValue to generate a random input value to test. Once they do that they get fields tests for free. Here are some follow ups:
[ ] Finish implementing generateRandomInputValue
[ ] _doc_count @jtibshirani
[x] #96742
[x] binary (@mayya-sharipova #70826)
[ ] geo_point
[ ] geo_shape
[ ] geo_shape with doc values
[ ] flattened @jtibshirani
[ ] histogram
[ ] aggregate_metric_double
[ ] point
[ ] shape
[x] #96761
[ ] Come up with a way to assert something for fields that don't have useful doc values
[ ] text
[ ] annotated_text
[ ] completion
[ ] search_as_you_type
[ ] range (See #70269)
[ ] icu_collation_keyword
[ ] rank_feature
[ ] rank_features
[x] Fix round trip test for half_float_point. We fixed the fetcher already but the test still assumes a still busted fetcher. (@nik9000 #70937)
[ ] Fix rounding for longs sent as floating point numbers in the json (#70585)
In #70278 I implemented a bunch of randomized tests for the
fields
API. In particular, all extensions ofMapperTestCase
must overridegenerateRandomInputValue
to generate a random input value to test. Once they do that they getfields
tests for free. Here are some follow ups:generateRandomInputValue
_doc_count
@jtibshiranibinary
(@mayya-sharipova #70826)geo_point
geo_shape
geo_shape
with doc valuesflattened
@jtibshiranihistogram
aggregate_metric_double
point
shape
text
annotated_text
completion
search_as_you_type
range
(See #70269)icu_collation_keyword
rank_feature
rank_features
half_float_point
. We fixed the fetcher already but the test still assumes a still busted fetcher. (@nik9000 #70937)