Skip to content

Commit

Permalink
[Backport 2.x] Fixing integ tests due to missing opensearch-job-sched…
Browse files Browse the repository at this point in the history
…uler plugin (#1032)

Fixing integ tests due to missing opensearch-job-scheduler plugin (#1031)

* Fixing integ tests due to missing opensearch-job-scheduler plugin



* Fixing bwc test due to missing opensearch-job-scheduler plugin



---------



(cherry picked from commit addf027)

Signed-off-by: Siddhartha Bingi <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Siddhartha Bingi <[email protected]>
  • Loading branch information
3 people authored Jan 29, 2025
1 parent dd9d8f5 commit cd9b52a
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,8 @@ dependencies {
testImplementation "com.fasterxml.jackson.datatype:jackson-datatype-jsr310:${versions.jackson_databind}"

// ZipArchive dependencies used for integration tests
// Check the order in case of transitive dependencies
zipArchive group: 'org.opensearch.plugin', name:'opensearch-job-scheduler', version: "${opensearch_build}"
zipArchive group: 'org.opensearch.plugin', name:'opensearch-ml-plugin', version: "${opensearch_build}"
zipArchive group: 'org.opensearch.plugin', name:'opensearch-knn', version: "${opensearch_build}"
zipArchive group: 'org.opensearch.plugin', name:'neural-search', version: "${opensearch_build}"
Expand Down Expand Up @@ -537,6 +539,17 @@ task integTestRemote(type: RestIntegTestTask) {
}

List<Provider<RegularFile>> plugins = [
provider(new Callable<RegularFile>(){
@Override
RegularFile call() throws Exception {
return new RegularFile() {
@Override
File getAsFile() {
return configurations.zipArchive.asFileTree.matching{include "**/opensearch-job-scheduler-${opensearch_build}.zip"}.getSingleFile()
}
}
}
}),
provider(new Callable<RegularFile>(){
@Override
RegularFile call() throws Exception {
Expand Down

0 comments on commit cd9b52a

Please sign in to comment.