-
Notifications
You must be signed in to change notification settings - Fork 25.3k
Yaml tests for range family aggregations #75434
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Yaml tests for range family aggregations #75434
Conversation
@elasticmachine update branch |
Pinging @elastic/es-analytics-geo (Team:Analytics) |
} | ||
} | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These'd be shorter in yaml. You know you can send yaml in curl if you want too. It works.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't know you could send yaml in curl, actually. I'll have to try that the next time I'm messing around with it. This is the result of me copy/pasting an existing test. If you feel strongly about it, I'll clean it up, otherwise I don't think it's a big deal if it sits like this for a while.
|
||
- do: | ||
cluster.health: | ||
wait_for_status: green |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We actually wait for yellow by default which is enough. I think these are mostly left over from the before times.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, again, I just copied what the existing test did.
body: { "date" : 3000 } | ||
|
||
- do: | ||
indices.refresh: {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It'd be a little more readable to do this with bulk
and a single refresh. Maybe even a little faster.
|
||
- do: | ||
search: | ||
rest_total_hits_as_int: true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At some point we're going to deprecate this thing so I'd try to avoid adding it to master. It is sort of required if you are running these against 6.x, but maybe only add on backport? I dunno.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ugh, I hadn't even thought of that. We use that all over the place in these tests
…icsearch into date-range-rest-tests
@elasticmachine update branch |
# Conflicts: # rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/search.aggregation/40_range.yml
Relates to #26220
We already had some tests for Date, Numeric, and IP ranges. This PR breaks them out into three yaml files, and adds coverage for options and modes we weren't exercising before.