diff --git a/build.gradle b/build.gradle index 92cb6f19..b55e4c8d 100644 --- a/build.gradle +++ b/build.gradle @@ -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 { diff --git a/src/test/resources/org/opensearch/search/asynchronous/bwc/1.13.0.1/opendistro-asynchronous-search-1.13.0.1.zip b/src/test/resources/org/opensearch/search/asynchronous/bwc/1.13.0.1/opendistro-asynchronous-search-1.13.0.1.zip deleted file mode 100644 index fd401973..00000000 Binary files a/src/test/resources/org/opensearch/search/asynchronous/bwc/1.13.0.1/opendistro-asynchronous-search-1.13.0.1.zip and /dev/null differ