Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,5 @@ gen
/artifacts/
/.pid.lock
/.prom.pid.lock

.java-version
4 changes: 4 additions & 0 deletions DEVELOPER_GUIDE.rst
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,8 @@ The plugin codebase is in standard layout of Gradle project::
├── core
├── doctest
├── opensearch
├── filesystem
├── prometheus
├── integ-test
├── legacy
├── plugin
Expand All @@ -159,6 +161,8 @@ Here are sub-folders (Gradle modules) for plugin source code:
- ``ppl``: PPL language processor.
- ``core``: core query engine.
- ``opensearch``: OpenSearch storage engine.
- ``prometheus``: Prometheus storage engine.
- ``filesystem``: File System storage engine (in development).
- ``protocol``: request/response protocol formatter.
- ``common``: common util code.
- ``integ-test``: integration and comparison test.
Expand Down
17 changes: 17 additions & 0 deletions plugin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ plugins {
}

apply plugin: 'opensearch.pluginzip'
apply plugin: 'opensearch.rest-test'

ext {
projectSubstitutions = [:]
Expand Down Expand Up @@ -226,3 +227,19 @@ afterEvaluate {
}
}
}

testClusters.integTest {
plugin(project.tasks.bundlePlugin.archiveFile)

// debug with command, ./gradlew opensearch-sql:run -DdebugJVM. --debug-jvm does not work with keystore.
if (System.getProperty("debugJVM") != null) {
jvmArgs '-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005'
}

// add customized keystore
keystore 'plugins.query.federation.datasources.config', new File("$projectDir/src/test/resources/", 'datasources.json')
}

run {
useCluster testClusters.integTest
}