From 33f630832a56eb471f0a001896a031860f32f74a Mon Sep 17 00:00:00 2001 From: Bharathwaj G Date: Sat, 12 Mar 2022 08:32:23 +0530 Subject: [PATCH 1/3] Adding 1.3.0 release notes Signed-off-by: Bharathwaj G --- ...earch-asynchronous-search.release-notes-1.3.0.0.md | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 release-notes/opensearch-asynchronous-search.release-notes-1.3.0.0.md diff --git a/release-notes/opensearch-asynchronous-search.release-notes-1.3.0.0.md b/release-notes/opensearch-asynchronous-search.release-notes-1.3.0.0.md new file mode 100644 index 00000000..ab014b4d --- /dev/null +++ b/release-notes/opensearch-asynchronous-search.release-notes-1.3.0.0.md @@ -0,0 +1,11 @@ +## Version 1.3.0.0 2022-03-12 + +Compatible with OpenSearch 1.3.0 + +### Infrastructure + +* Added backwards compatibility tests for async search([#95](https://github.com/opensearch-project/asynchronous-search/pull/95)) + +### Maintenance + +* Removed jcenter([#94](https://github.com/opensearch-project/asynchronous-search/pull/94)) \ No newline at end of file From 18f3553c016dccc2f090f9790e44827fdb8a67ca Mon Sep 17 00:00:00 2001 From: Bharathwaj G Date: Tue, 15 Mar 2022 00:09:04 +0530 Subject: [PATCH 2/3] Adding support for integration tests with remote cluster Signed-off-by: Bharathwaj G --- build.gradle | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/build.gradle b/build.gradle index 92108df3..45a4e58a 100644 --- a/build.gradle +++ b/build.gradle @@ -4,6 +4,7 @@ */ import java.util.concurrent.Callable import org.opensearch.gradle.testclusters.StandaloneRestIntegTestTask +import org.opensearch.gradle.test.RestIntegTestTask buildscript { ext { distribution = 'oss-zip' @@ -180,6 +181,25 @@ integTest { } } + +task integTestRemote(type: RestIntegTestTask) { + testClassesDirs = sourceSets.test.output.classesDirs + classpath = sourceSets.test.runtimeClasspath + systemProperty 'tests.security.manager', 'false' + systemProperty 'java.io.tmpdir', opensearch_tmp_dir.absolutePath + + systemProperty "https", System.getProperty("https") + systemProperty "user", System.getProperty("user") + systemProperty "password", System.getProperty("password") + + // Only rest case can run with remote cluster + if (System.getProperty("tests.rest.cluster") != null) { + filter { + includeTestsMatching "org.opensearch.search.asynchronous.rest*" + } + } +} + String baseName = "asynSearchCluster" String bwcFilePath = "src/test/resources/org/opensearch/search/asynchronous/bwc/" From 2c434929c6393a116d580ea181c44ee9660375ff Mon Sep 17 00:00:00 2001 From: Bharathwaj G Date: Tue, 15 Mar 2022 09:47:52 +0530 Subject: [PATCH 3/3] Readme file changes Signed-off-by: Bharathwaj G --- README.md | 1 + build.gradle | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/README.md b/README.md index f17027f4..ac31a489 100644 --- a/README.md +++ b/README.md @@ -77,6 +77,7 @@ The project in this package uses the [Gradle](https://docs.gradle.org/current/us 9. `./gradlew asynSearchCluster#rollingUpgradeClusterTask -Dtests.security.manager=false` launches a cluster with three nodes of bwc version of OpenSearch with async search plugin and tests backwards compatibility by performing rolling upgrade of all nodes with the current version of OpenSearch with async search plugin. 10. `./gradlew asynSearchCluster#fullRestartClusterTask -Dtests.security.manager=false` launches a cluster with three nodes of bwc version of OpenSearch with async search plugin and tests backwards compatibility by performing a full restart on the cluster upgrading all the nodes with the current version of OpenSearch with async search plugin. 11. `./gradlew bwcTestSuite -Dtests.security.manager=false` runs all the above bwc tests combined. +12. `./gradlew integTestRemote -Dtests.rest.cluster=localhost:9200 -Dtests.cluster=localhost:9200 -Dtests.clustername="docker-cluster" -Dhttps=true -Duser=admin -Dpassword=admin` launches integration tests against a local cluster and run tests with security When launching a cluster using one of the above commands, logs are placed in `build/testclusters/integTest-0/logs`. Though the logs are teed to the console, in practices it's best to check the actual log file. diff --git a/build.gradle b/build.gradle index 14109aec..2f81c184 100644 --- a/build.gradle +++ b/build.gradle @@ -193,6 +193,12 @@ task integTestRemote(type: RestIntegTestTask) { systemProperty "user", System.getProperty("user") systemProperty "password", System.getProperty("password") + if (System.getProperty("tests.rest.bwcsuite") == null) { + filter { + excludeTestsMatching "org.opensearch.search.asynchronous.bwc.*IT" + } + } + // Only rest case can run with remote cluster if (System.getProperty("tests.rest.cluster") != null) { filter {