-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Convert :test projects to new testing framework
#125724
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,11 +7,7 @@ | |
| * License v3.0 only", or the "Server Side Public License, v 1". | ||
| */ | ||
|
|
||
| apply plugin: 'elasticsearch.legacy-yaml-rest-test' | ||
|
|
||
| tasks.named('yamlRestTest').configure { | ||
| it.onlyIf("snapshot build") { buildParams.snapshotBuild } | ||
| } | ||
| apply plugin: 'elasticsearch.internal-yaml-rest-test' | ||
|
|
||
| esplugin { | ||
| description = 'A test module that allows to delay aggregations on shards with a configurable time' | ||
|
|
@@ -23,3 +19,8 @@ restResources { | |
| include '_common', 'indices', 'index', 'cluster', 'search' | ||
| } | ||
| } | ||
|
|
||
| tasks.named('yamlRestTest') { | ||
| def isSnapshot = buildParams.snapshotBuild | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @breskeby I had to do this in a number of places, otherwise the configuration cache would throw an error There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah. Onlyif is evaluated at tasks execution phase and buildparsms here is an extension. Those can not be accessed during execution phase |
||
| it.onlyIf("snapshot build") { isSnapshot } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -16,7 +16,6 @@ | |
| import org.elasticsearch.common.settings.Settings; | ||
| import org.elasticsearch.common.xcontent.support.XContentMapValues; | ||
| import org.elasticsearch.test.cluster.ElasticsearchCluster; | ||
| import org.elasticsearch.test.cluster.local.distribution.DistributionType; | ||
| import org.elasticsearch.test.rest.ESRestTestCase; | ||
| import org.junit.ClassRule; | ||
|
|
||
|
|
@@ -35,8 +34,9 @@ | |
| public class EsqlPartialResultsIT extends ESRestTestCase { | ||
| @ClassRule | ||
| public static ElasticsearchCluster cluster = ElasticsearchCluster.local() | ||
| .distribution(DistributionType.DEFAULT) | ||
| .module("test-error-query") | ||
| .module("x-pack-esql") | ||
| .module("x-pack-ilm") | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. esql requires ml which implicitly requires ilm. Perhaps that dependency should be explicit? 🤷 |
||
| .setting("xpack.security.enabled", "false") | ||
| .setting("xpack.license.self_generated.type", "trial") | ||
| .setting("esql.query.allow_partial_results", "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.
I simply forgot to remove these in earlier PRs