Skip to content

Commit

Permalink
add bwc
Browse files Browse the repository at this point in the history
Signed-off-by: Zhongnan Su <[email protected]>
  • Loading branch information
zhongnansu committed Mar 31, 2022
1 parent b71d7b2 commit e394a2d
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions opensearch-observability/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ testClusters.integTest {

String bwcVersion = "1.2.0-SNAPSHOT"
String baseName = "obsBwcCluster"
String bwcFilePath = "src/test/kotlin/org/opensearch/observability/resources/bwc/"
String bwcFilePath = "src/test/resources/bwc/"

2.times {i ->
testClusters {
Expand All @@ -290,7 +290,7 @@ String bwcFilePath = "src/test/kotlin/org/opensearch/observability/resources/bwc
return new RegularFile() {
@Override
File getAsFile() {
return fileTree(bwcFilePath + bwcVersion).getSingleFile()
return fileTree(bwcFilePath + "observability/" + bwcVersion).getSingleFile()
}
}
}
Expand All @@ -308,6 +308,17 @@ task prepareBwcTests {
dependsOn bundle
doLast {
plugins = [
provider(new Callable<RegularFile>(){
@Override
RegularFile call() throws Exception {
return new RegularFile() {
@Override
File getAsFile() {
return fileTree(bwcFilePath + "job-scheduler/" + project.version).getSingleFile()
}
}
}
}),
project.getObjects().fileProperty().value(bundle.getArchiveFile())
]
}
Expand Down
Binary file not shown.

0 comments on commit e394a2d

Please sign in to comment.