Skip to content

Commit

Permalink
Update test setup
Browse files Browse the repository at this point in the history
Signed-off-by: Joshua Li <joshuali925@gmail.com>
  • Loading branch information
joshuali925 committed May 30, 2023
1 parent ab27b24 commit 52711d0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,6 @@ gen

.java-version
.worktrees
http-client.env.json
http-client.env.json
/doctest/sql-cli/
.factorypath
2 changes: 1 addition & 1 deletion docs/user/ppl/interfaces/protocol.rst
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ PPL query::
{
"error": {
"reason": "Error occurred in OpenSearch engine: no such index [unknown]",
"details": "[unknown] IndexNotFoundException[no such index [unknown]]\nFor more details, please send request for Json format to see the raw response from OpenSearch engine.",
"details": "org.opensearch.index.IndexNotFoundException: no such index [unknown]\nFor more details, please send request for Json format to see the raw response from OpenSearch engine.",
"type": "IndexNotFoundException"
},
"status": 404
Expand Down
7 changes: 5 additions & 2 deletions doctest/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,12 @@ def path = project(':').projectDir
// plugin module, and will only build ppl in it.
def plugin_path = project(':doctest').projectDir

task cloneSqlCli(type: Exec) {
task cloneSqlCli() {
// clone the sql-cli repo locally
commandLine 'git', 'clone', 'https://github.com/opensearch-project/sql-cli.git'
def cliRepo = new File("$projectDir/sql-cli")
if(!cliRepo.exists()) {
exec { commandLine 'git', 'clone', 'https://github.com/opensearch-project/sql-cli.git' }
}
}

task bootstrap(type: Exec, dependsOn: ['cloneSqlCli']) {
Expand Down

0 comments on commit 52711d0

Please # to comment.