Skip to content

Commit

Permalink
Update ingest-attachment module to use new rest test framework (elast…
Browse files Browse the repository at this point in the history
…ic#100734)

(cherry picked from commit 0a95aa2)
  • Loading branch information
brianseeders committed Oct 30, 2023
1 parent 6c54b3e commit 99b5ea6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/ingest-attachment/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import org.elasticsearch.gradle.internal.info.BuildParams
* in compliance with, at your election, the Elastic License 2.0 or the Server
* Side Public License, v 1.
*/
apply plugin: 'elasticsearch.legacy-yaml-rest-test'
apply plugin: 'elasticsearch.legacy-yaml-rest-compat-test'
apply plugin: 'elasticsearch.internal-yaml-rest-test'
apply plugin: 'elasticsearch.yaml-rest-compat-test'

esplugin {
description 'Ingest processor that uses Apache Tika to extract contents'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,21 @@
import com.carrotsearch.randomizedtesting.annotations.Name;
import com.carrotsearch.randomizedtesting.annotations.ParametersFactory;

import org.elasticsearch.test.cluster.ElasticsearchCluster;
import org.elasticsearch.test.rest.yaml.ClientYamlTestCandidate;
import org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase;
import org.junit.ClassRule;

public class IngestAttachmentClientYamlTestSuiteIT extends ESClientYamlSuiteTestCase {

@ClassRule
public static ElasticsearchCluster cluster = ElasticsearchCluster.local().module("ingest-attachment").build();

@Override
protected String getTestRestCluster() {
return cluster.getHttpAddresses();
}

public IngestAttachmentClientYamlTestSuiteIT(@Name("yaml") ClientYamlTestCandidate testCandidate) {
super(testCandidate);
}
Expand Down

0 comments on commit 99b5ea6

Please sign in to comment.