-
Notifications
You must be signed in to change notification settings - Fork 25.4k
Migrate downsample REST with security tests #131453
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
Migrate downsample REST with security tests #131453
Conversation
Pinging @elastic/es-core-infra (Team:Core/Infra) |
…/elasticsearch into refactor-xpack-downsample-tests
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.
Should would prefer to ditch the default distro here. Not sure how far down that rabbit hole you attempted to go.
@@ -35,7 +35,7 @@ public DownsampleRestIT(final ClientYamlTestCandidate testCandidate) { | |||
|
|||
@ParametersFactory | |||
public static Iterable<Object[]> parameters() throws Exception { | |||
return ESClientYamlSuiteTestCase.createParameters(); | |||
return ESClientYamlSuiteTestCase.createParameters(new String[] { "downsample" }); |
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 should really make createParameters
take a variable argument parameter to make this more convenient.
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'll make a note to do this next time (in a separate PR)
@@ -34,7 +34,7 @@ public DownsampleWithBasicRestIT(final ClientYamlTestCandidate testCandidate) { | |||
|
|||
@ParametersFactory | |||
public static Iterable<Object[]> parameters() throws Exception { | |||
return ESClientYamlSuiteTestCase.createParameters(); | |||
return ESClientYamlSuiteTestCase.createParameters(new String[] { "downsample" }); |
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 sure wish I understood the rationale behind running these tests multiple times with difference license types. We don't do this consistently.
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.
Same here. I just "ported" them 1-1, but I do wonder if there is a consistent rule or pattern here, and if we should flag any test that does not follow it so the teams owning them could review and amend.
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.
but I do wonder if there is a consistent rule or pattern here
There almost certainly is not.
TBH I haven't tried, as DownsampleRestIT was already using the new framework with the default distribution, I used the same for the missing test(s). |
Serverless failure is related, this test was not running in serverless before and we "accidentally" added it. |
👍 |
💔 Backport failed
You can use sqren/backport to manually backport by running |
Same changes as in elastic#131464 Fixes elastic#131513 too
Same changes as in #131464
Fixes #131513 too