Skip to content

Commit

Permalink
Fixing integ tests due to missing opensearch-job-scheduler plugin (#1031
Browse files Browse the repository at this point in the history
)

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

Signed-off-by: Siddhartha Bingi <[email protected]>

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

Signed-off-by: Siddhartha Bingi <[email protected]>

---------

Signed-off-by: Siddhartha Bingi <[email protected]>
Co-authored-by: Siddhartha Bingi <[email protected]>
  • Loading branch information
siddharthabingi and Siddhartha Bingi authored Jan 29, 2025
1 parent 9108b2e commit addf027
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 addf027

Please sign in to comment.