Skip to content

Commit

Permalink
Merge 222314d into 0a7f805
Browse files Browse the repository at this point in the history
  • Loading branch information
bharath-techie authored Apr 20, 2022
2 parents 0a7f805 + 222314d commit 495c390
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -212,9 +212,19 @@ task integTestRemote(type: RestIntegTestTask) {
}
}

ext.getPluginResource = { download_to_folder, download_from_src ->
project.mkdir download_to_folder
ant.get(src: download_from_src,
dest: download_to_folder,
httpusecaches: false)
return fileTree(download_to_folder).getSingleFile()
}

String baseName = "asynSearchCluster"
String bwcVersion = "1.13.0.1"
String bwcFilePath = "src/test/resources/org/opensearch/search/asynchronous/bwc/"

String bwcRemoteFile = "https://d3g5vo6xdbdb9a.cloudfront.net/downloads/elasticsearch-plugins/opendistro-asynchronous-search/opendistro-asynchronous-search-1.13.0.1.zip"
getPluginResource(bwcFilePath + bwcVersion, bwcRemoteFile)
// Creates two test clusters of previous version and loads opensearch plugin of bwcVersion
2.times { i ->
testClusters {
Expand Down
Binary file not shown.

0 comments on commit 495c390

Please sign in to comment.