Skip to content

Commit

Permalink
Add doc-test for AD command
Browse files Browse the repository at this point in the history
Signed-off-by: jackieyanghan <[email protected]>
  • Loading branch information
jackiehanyang committed Mar 15, 2022
1 parent c4c9320 commit 5f4ce02
Show file tree
Hide file tree
Showing 6 changed files with 1,979 additions and 2 deletions.
1 change: 1 addition & 0 deletions docs/category.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"user/admin/settings.rst"
],
"ppl_cli": [
"user/ppl/cmd/ad.rst",
"user/ppl/cmd/dedup.rst",
"user/ppl/cmd/eval.rst",
"user/ppl/cmd/fields.rst",
Expand Down
14 changes: 13 additions & 1 deletion doctest/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* SPDX-License-Identifier: Apache-2.0
*/

import java.util.concurrent.Callable
import org.opensearch.gradle.testclusters.RunTask

plugins {
Expand Down Expand Up @@ -49,7 +50,18 @@ clean.dependsOn(cleanBootstrap)

testClusters {
docTestCluster {
plugin ':plugin'
plugin(provider(new Callable<RegularFile>(){
@Override
RegularFile call() throws Exception {
return new RegularFile() {
@Override
File getAsFile() {
return fileTree("resources/ml-commons").getSingleFile()
}
}
}
}))

testDistribution = 'integ_test'
}
}
Expand Down
Binary file not shown.
Loading

0 comments on commit 5f4ce02

Please sign in to comment.