Skip to content

Commit

Permalink
[8.2][Transform] improve CCS test to cover the previous minor version #…
Browse files Browse the repository at this point in the history
…86727 (#86747)

add testing against the previous minor version

backport #86727
relates #86741
relates #86716
  • Loading branch information
Hendrik Muhs committed May 18, 2022
1 parent f8df946 commit ad4d7bf
Showing 1 changed file with 7 additions and 0 deletions.
@@ -1,4 +1,6 @@
import org.elasticsearch.gradle.internal.test.RestIntegTestTask
import org.elasticsearch.gradle.Version
import org.elasticsearch.gradle.VersionProperties

apply plugin: 'elasticsearch.internal-testclusters'
apply plugin: 'elasticsearch.standalone-rest-test'
Expand All @@ -9,6 +11,8 @@ dependencies {
testImplementation project(':client:rest-high-level')
}

Version ccsCompatVersion = new Version(VersionProperties.getElasticsearchVersion().getMajor(), VersionProperties.getElasticsearchVersion().getMinor() - 1, 0)

restResources {
restApi {
include '_common', 'bulk', 'indices', 'cluster', 'search', 'security', 'transform'
Expand All @@ -18,11 +22,14 @@ restResources {

def remoteCluster = testClusters.register('remote-cluster') {
testDistribution = 'DEFAULT'
versions = [ccsCompatVersion.toString(), project.version]
numberOfNodes = 2
setting 'node.roles', '[data,ingest,master]'
setting 'xpack.security.enabled', 'true'
setting 'xpack.watcher.enabled', 'false'
setting 'xpack.license.self_generated.type', 'trial'
// see gh#86716, disable assert to test fix
jvmArgs '-da'

user username: "test_user", password: "x-pack-test-password"
}
Expand Down

0 comments on commit ad4d7bf

Please sign in to comment.