Skip to content

Commit 041f3af

Browse files
ps48joshuali925
authored andcommitted
Add Bwc Test for OS 1.1 (#417)
Signed-off-by: Shenoy Pratik <sgguruda@amazon.com>
1 parent a7818f8 commit 041f3af

3 files changed

Lines changed: 10 additions & 11 deletions

File tree

.github/workflows/reports-scheduler-test-and-build-workflow.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ jobs:
2727
echo "Running backwards compatibility tests ..."
2828
./gradlew bwcTestSuite
2929
30-
3130
- name: Build with Gradle
3231
run: |
3332
cd reports-scheduler

reports-scheduler/build.gradle

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -315,18 +315,18 @@ testClusters.integTest {
315315
setting 'path.repo', repo.absolutePath
316316
}
317317

318-
// For job-scheduler and reports-scheduler, the latest opendistro releases appear to be 1.13.0.0.
319-
String bwcVersion = "1.13.0.0"
318+
// For job-scheduler and reports-scheduler, the latest opensearch releases appear to be 1.1.0.0.
319+
String bwcVersion = "1.1.0.0"
320320
String baseName = "reportsSchedulerBwcCluster"
321321
String bwcFilePath = "src/test/resources/bwc"
322-
String bwcJobSchedulerURL = "https://d3g5vo6xdbdb9a.cloudfront.net/downloads/elasticsearch-plugins/opendistro-job-scheduler/opendistro-job-scheduler-" + bwcVersion + ".zip"
323-
String bwcReportsSchedulerURL = "https://d3g5vo6xdbdb9a.cloudfront.net/downloads/elasticsearch-plugins/opendistro-reports-scheduler/opendistro-reports-scheduler-" + bwcVersion + ".zip"
322+
String bwcJobSchedulerURL = "https://ci.opensearch.org/ci/dbc/bundle-build/1.1.0/20210930/linux/x64/builds/opensearch/plugins/opensearch-job-scheduler-1.1.0.0.zip"
323+
String bwcReportsSchedulerURL = "https://ci.opensearch.org/ci/dbc/bundle-build/1.1.0/20210930/linux/x64/builds/opensearch/plugins/opensearch-reports-scheduler-1.1.0.0.zip"
324324

325325
2.times {i ->
326326
testClusters {
327327
"${baseName}$i" {
328328
testDistribution = "ARCHIVE"
329-
versions = ["7.10.2", opensearch_version]
329+
versions = ["1.1.0", opensearch_version]
330330
numberOfNodes = 3
331331
plugin(provider(new Callable<RegularFile>(){
332332
@Override
@@ -338,7 +338,7 @@ String bwcReportsSchedulerURL = "https://d3g5vo6xdbdb9a.cloudfront.net/downloads
338338
if (!dir.exists()) {
339339
dir.mkdirs()
340340
}
341-
File file = new File(dir, "opendistro-job-scheduler-" + bwcVersion + ".zip")
341+
File file = new File(dir, "opensearch-job-scheduler-" + bwcVersion + ".zip")
342342
if (!file.exists()) {
343343
new URL(bwcJobSchedulerURL).withInputStream{ ins -> file.withOutputStream{ it << ins }}
344344
}
@@ -357,7 +357,7 @@ String bwcReportsSchedulerURL = "https://d3g5vo6xdbdb9a.cloudfront.net/downloads
357357
if (!dir.exists()) {
358358
dir.mkdirs()
359359
}
360-
File file = new File(dir, "opendistro-reports-scheduler-" + bwcVersion + ".zip")
360+
File file = new File(dir, "opensearch-reports-scheduler-" + bwcVersion + ".zip")
361361
if (!file.exists()) {
362362
new URL(bwcReportsSchedulerURL).withInputStream{ ins -> file.withOutputStream{ it << ins }}
363363
}
@@ -389,7 +389,7 @@ task prepareBwcTests {
389389
if (!dir.exists()) {
390390
dir.mkdirs()
391391
}
392-
File file = new File(dir, "opendistro-reports-scheduler-" + project.version + ".zip")
392+
File file = new File(dir, "opensearch-reports-scheduler-" + project.version + ".zip")
393393
if (!file.exists()) {
394394
new URL(jobSchedulerURL).withInputStream{ ins -> file.withOutputStream{ it << ins }}
395395
}

reports-scheduler/src/test/kotlin/org/opensearch/integTest/bwc/ReportsSchedulerBackwardsCompatibilityIT.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ class ReportsSchedulerBackwardsCompatibilityIT : PluginRestTestCase() {
5050
val pluginNames = plugins.map { plugin -> plugin["name"] }.toSet()
5151
when (CLUSTER_TYPE) {
5252
ClusterType.OLD -> {
53-
assertTrue(pluginNames.contains("opendistro-reports-scheduler"))
54-
assertTrue(pluginNames.contains("opendistro-job-scheduler"))
53+
assertTrue(pluginNames.contains("opensearch-reports-scheduler"))
54+
assertTrue(pluginNames.contains("opensearch-job-scheduler"))
5555
createBasicReportDefinition()
5656
}
5757
ClusterType.MIXED -> {

0 commit comments

Comments
 (0)