From ba853c2e63b549d9200cf8f72b186cecffdcdd4d Mon Sep 17 00:00:00 2001 From: Rishikesh Pasham <62345295+Rishikesh1159@users.noreply.github.com> Date: Fri, 22 Apr 2022 14:36:54 +0000 Subject: [PATCH] Documenting usage of overriding Default Distribution Download URL with custom URL by setting external property customDistributionUrl (#125) * Documenting usage of overriding Default Distribution Download URL with custom URL by setting external property customDistributionUrl Signed-off-by: Rishikesh1159 * correcting spelling in testing.md file Signed-off-by: Rishikesh1159 * Setting the custom Url with -P Signed-off-by: Rishikesh1159 --- TESTING.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/TESTING.md b/TESTING.md index 82806e8..2d3b5c4 100644 --- a/TESTING.md +++ b/TESTING.md @@ -13,6 +13,8 @@ - [Backwards Compatibility Testing](#backwards-compatibility-testing) - [Types of BWC tests](#types-of-bwc-tests) - [Hooking the BWC tests to CI](#hooking-the-bwc-tests-to-ci) + - [Gradle Plugins](#gradle-plugins) + - [Distribution Download plugin](#distribution-download-plugin) ## Testing @@ -99,4 +101,13 @@ Each plugin can test various functionalities in their bwc tests and add more sce The bwc tests can be hooked to the CI workflow in the plugin to run it with each pull request and push. -See [anomaly-detection#181](https://github.com/opensearch-project/anomaly-detection/pull/181) for more information. \ No newline at end of file +See [anomaly-detection#181](https://github.com/opensearch-project/anomaly-detection/pull/181) for more information. + +### Gradle Plugins + +#### Distribution Download Plugin + +The Distribution Download plugin downloads the latest version of OpenSearch by default, and supports overriding this behavior by setting `customDistributionUrl`. This will help to pull artifacts from custom location for testing during release process. +``` +./gradlew integTest -PcustomDistributionUrl="https://ci.opensearch.org/ci/dbc/bundle-build/1.2.0/1127/linux/x64/dist/opensearch-1.2.0-linux-x64.tar.gz" +```