Skip to content

Commit

Permalink
update bwc tests to 2.4.0
Browse files Browse the repository at this point in the history
Signed-off-by: Shenoy Pratik <sgguruda@amazon.com>
  • Loading branch information
ps48 committed Oct 12, 2022
1 parent c753907 commit e743bb2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions opensearch-observability/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -307,16 +307,16 @@ testClusters.integTest {
setting 'path.repo', repo.absolutePath
}

String bwcVersion = "1.2.0-SNAPSHOT"
String bwcVersion = "2.4.0-SNAPSHOT"
String baseName = "obsBwcCluster"
String bwcFilePath = "src/test/resources/bwc/"
String remoteFileURL = "https://github.com/opensearch-project/observability/releases/download/1.2.0.0/opensearch-observability-1.2.0.0.zip"
String remoteFileURL = "https://ci.opensearch.org/ci/dbc/distribution-build-opensearch/2.4.0/latest/linux/x64/tar/builds/opensearch/plugins/opensearch-observability-2.4.0.0.zip"

2.times {i ->
testClusters {
"${baseName}$i" {
testDistribution = "ARCHIVE"
versions = ["1.2.0",opensearch_version]
versions = ["2.4.0",opensearch_version]
numberOfNodes = 3
plugin(provider(new Callable<RegularFile>(){
@Override
Expand All @@ -328,7 +328,7 @@ String remoteFileURL = "https://github.com/opensearch-project/observability/rele
if (!dir.exists()) {
dir.mkdirs()
}
File file = new File(dir, "opensearch-observability-1.2.0.0-SNAPSHOT.zip")
File file = new File(dir, "opensearch-observability-2.4.0.0-SNAPSHOT.zip")
if (!file.exists()) {
new URL(remoteFileURL).withInputStream{ ins -> file.withOutputStream{ it << ins }}
}
Expand Down

0 comments on commit e743bb2

Please sign in to comment.