Skip to content

Commit 481906a

Browse files
committed
BWC testing: remove hardcoded OpenSearch version
In order to remove hardcoded version of actual OpenSearch from BWC versions array we need to introduce new 'empty' property and update it before testClusters are defined. Closes: #324 Signed-off-by: Lukáš Vlček <lukas.vlcek@aiven.io>
1 parent 8efef9a commit 481906a

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

build.gradle

+5-1
Original file line numberDiff line numberDiff line change
@@ -174,11 +174,15 @@ task copyZIPBundle {
174174
}
175175
}
176176

177+
// A hack. For some reason we can not reference 'ext' variables from testClusters, hence we define actual opensearch
178+
// version the following way which seems to work fine for testClusters. See issue #324
179+
project.opensearch_version = ext.versions.opensearch
180+
177181
// Clusters for BWC tests
178182
2.times { i ->
179183
testClusters {
180184
"${baseName}$i" {
181-
versions = [project.BWCversion, "2.17.1"]
185+
versions = [project.BWCversion, project.opensearch_version]
182186
numberOfNodes = 3
183187
plugin(provider(new Callable<RegularFile>() {
184188
@Override

gradle.properties

+3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
# An actual version of plugin
44
version = 2.17.1.0
55

6+
# Leave this property empty, it is assigned during the gradle build execution (yes, it is a hack! see issue #324)
7+
opensearch_version =
8+
69
# A version of OpenSearch cluster to run BWC tests against
710
BWCversion = 2.17.0
811

0 commit comments

Comments
 (0)