Skip to content

Commit a0e9116

Browse files
Signed-off-by: Mingshi Liu <mingshl@amazon.com> (cherry picked from commit 066652b) Co-authored-by: Mingshi Liu <mingshl@amazon.com>
1 parent 7afaf2a commit a0e9116

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

plugin/build.gradle

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ ext {
2424
apply plugin: 'opensearch.opensearchplugin'
2525
apply plugin: 'opensearch.testclusters'
2626
apply plugin: 'opensearch.pluginzip'
27+
apply plugin: 'opensearch.yaml-rest-test'
2728
ext {
2829
projectSubstitutions = [:]
2930
licenseFile = rootProject.file('LICENSE.txt')

plugin/src/yamlRestTest/java/org/opensearch/ml/plugin/PluginClientYamlTestSuiteIT.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@
66
*/
77
package org.opensearch.ml.plugin;
88

9-
import com.carrotsearch.randomizedtesting.annotations.Name;
10-
import com.carrotsearch.randomizedtesting.annotations.ParametersFactory;
119
import org.opensearch.test.rest.yaml.ClientYamlTestCandidate;
1210
import org.opensearch.test.rest.yaml.OpenSearchClientYamlSuiteTestCase;
1311

12+
import com.carrotsearch.randomizedtesting.annotations.Name;
13+
import com.carrotsearch.randomizedtesting.annotations.ParametersFactory;
1414

1515
public class PluginClientYamlTestSuiteIT extends OpenSearchClientYamlSuiteTestCase {
1616

17-
public ConversationalClientYamlTestSuiteIT(@Name("yaml") ClientYamlTestCandidate testCandidate) {
17+
public PluginClientYamlTestSuiteIT(@Name("yaml") ClientYamlTestCandidate testCandidate) {
1818
super(testCandidate);
1919
}
2020

plugin/src/yamlRestTest/resources/rest-api-spec/test/10_basic.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
h: component
66

77
- match:
8-
$body: /^plugin\n$/
8+
$body: /opensearch-ml\n$/

plugin/src/yamlRestTest/resources/rest-api-spec/test/20_inference_ingest_processor.yml

+5-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@ teardown:
66
ignore: 404
77

88
---
9-
"Test ML Inference Processor":
9+
"Test ML Inference Ingest Processor":
10+
- skip:
11+
version: " - 2.13.99"
12+
reason: "Added in 2.14.0"
1013
- do:
1114
ingest.put_pipeline:
1215
id: "my_pipeline"
@@ -21,4 +24,4 @@ teardown:
2124
}
2225
]
2326
}
24-
- match: { acknowledged: true }
27+
- match: { acknowledged: true }

0 commit comments

Comments
 (0)