-
Couldn't load subscription status.
- Fork 25.6k
Migrate ILM REST tests to new test framework. #136744
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
Conversation
Relates to ES-11813
|
Pinging @elastic/es-core-infra (Team:Core/Infra) |
| } | ||
|
|
||
| tasks.named("check").configure { dependsOn 'follow-cluster' } | ||
| if (buildParams.inFipsJvm) { |
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 have a utility for this:
tasks.named("javaRestTest") {
buildParams.withFipsEnabledOnly(it)
}
| public static TemporaryFolder repoDir = new TemporaryFolder(); | ||
|
|
||
| public static ElasticsearchCluster leaderCluster = ElasticsearchCluster.local() | ||
| .module("x-pack-ilm") |
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.
For multi-cluster tests it's generally good practice to give them unique names. The default is "test-cluster" but you can use name() to customize this. This can be helpful when analyzing the logs, since the node nodes use the cluster name as a prefix. That way you can see leader-1 and follower-1 in the test output vs just test-cluster-n and have to figure out which cluster it is.
| @ClassRule | ||
| public static ElasticsearchCluster cluster = ElasticsearchCluster.local() | ||
| .module("x-pack-ilm") | ||
| .setting("xpack.ml.enabled", "false") |
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.
Is this setting still necessary if we aren't including the ML module?
💔 Backport failed
You can use sqren/backport to manually backport by running |
I'll follow up consolidating the projects in another PR. This felt easier to review if migrating in place. Relates to ES-11813 (cherry picked from commit 440faee) # Conflicts: # x-pack/plugin/ilm/qa/multi-cluster/src/javaRestTest/java/org/elasticsearch/xpack/ilm/CCRIndexLifecycleIT.java # x-pack/plugin/ilm/qa/multi-node/build.gradle # x-pack/plugin/ilm/qa/multi-node/src/javaRestTest/java/org/elasticsearch/xpack/ilm/actions/SearchableSnapshotActionIT.java
I'll follow up consolidating the projects in another PR. This felt easier to review if migrating in place. Relates to ES-11813 (cherry picked from commit 440faee) # Conflicts: # x-pack/plugin/ilm/qa/multi-cluster/build.gradle # x-pack/plugin/ilm/qa/multi-cluster/src/javaRestTest/java/org/elasticsearch/xpack/ilm/CCRIndexLifecycleIT.java # x-pack/plugin/ilm/qa/multi-node/build.gradle # x-pack/plugin/ilm/qa/multi-node/src/javaRestTest/java/org/elasticsearch/xpack/ilm/actions/SearchableSnapshotActionIT.java # x-pack/plugin/ilm/qa/rest/build.gradle # x-pack/plugin/ilm/qa/with-security/build.gradle
💚 All backports created successfully
Questions ?Please refer to the Backport tool documentation |
💚 All backports created successfully
Questions ?Please refer to the Backport tool documentation |
I'll follow up consolidating the projects in another PR. This felt easier to review if migrating in place. Relates to ES-11813 (cherry picked from commit 440faee) # Conflicts: # x-pack/plugin/ilm/qa/multi-cluster/src/javaRestTest/java/org/elasticsearch/xpack/ilm/CCRIndexLifecycleIT.java
* Migrate ILM REST tests to new test framework. (#136744) I'll follow up consolidating the projects in another PR. This felt easier to review if migrating in place. Relates to ES-11813 (cherry picked from commit 440faee) # Conflicts: # x-pack/plugin/ilm/qa/multi-cluster/src/javaRestTest/java/org/elasticsearch/xpack/ilm/CCRIndexLifecycleIT.java # x-pack/plugin/ilm/qa/multi-node/build.gradle # x-pack/plugin/ilm/qa/multi-node/src/javaRestTest/java/org/elasticsearch/xpack/ilm/actions/SearchableSnapshotActionIT.java * [CI] Auto commit changes from spotless --------- Co-authored-by: elasticsearchmachine <[email protected]>
* Migrate ILM REST tests to new test framework. (#136744) I'll follow up consolidating the projects in another PR. This felt easier to review if migrating in place. Relates to ES-11813 (cherry picked from commit 440faee) # Conflicts: # x-pack/plugin/ilm/qa/multi-cluster/build.gradle # x-pack/plugin/ilm/qa/multi-cluster/src/javaRestTest/java/org/elasticsearch/xpack/ilm/CCRIndexLifecycleIT.java # x-pack/plugin/ilm/qa/multi-node/build.gradle # x-pack/plugin/ilm/qa/multi-node/src/javaRestTest/java/org/elasticsearch/xpack/ilm/actions/SearchableSnapshotActionIT.java # x-pack/plugin/ilm/qa/rest/build.gradle # x-pack/plugin/ilm/qa/with-security/build.gradle * [CI] Auto commit changes from spotless * fix --------- Co-authored-by: elasticsearchmachine <[email protected]>
* Migrate ILM REST tests to new test framework. (#136744) I'll follow up consolidating the projects in another PR. This felt easier to review if migrating in place. Relates to ES-11813 (cherry picked from commit 440faee) # Conflicts: # x-pack/plugin/ilm/qa/multi-cluster/src/javaRestTest/java/org/elasticsearch/xpack/ilm/CCRIndexLifecycleIT.java * [CI] Auto commit changes from spotless --------- Co-authored-by: elasticsearchmachine <[email protected]>
I'll follow up consolidating the projects in another PR. This felt easier to review if migrating in place.
Relates to ES-11813