Skip to content

Commit 1e74aa0

Browse files
committed
Use @WithoutEntitlements on ingest plugin tests
1 parent c3cc1d2 commit 1e74aa0

File tree

5 files changed

+10
-0
lines changed

5 files changed

+10
-0
lines changed

modules/ingest-attachment/src/test/java/org/elasticsearch/ingest/attachment/AttachmentProcessorTests.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
import org.elasticsearch.ingest.Processor;
1616
import org.elasticsearch.ingest.RandomDocumentPicks;
1717
import org.elasticsearch.test.ESTestCase;
18+
import org.elasticsearch.test.ESTestCase.WithoutEntitlements;
1819
import org.junit.Before;
1920

2021
import java.io.InputStream;
@@ -38,6 +39,7 @@
3839
import static org.hamcrest.Matchers.notNullValue;
3940
import static org.hamcrest.Matchers.nullValue;
4041

42+
@WithoutEntitlements // ES-12084
4143
public class AttachmentProcessorTests extends ESTestCase {
4244

4345
private Processor processor;

modules/ingest-attachment/src/test/java/org/elasticsearch/ingest/attachment/TikaDocTests.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
import org.apache.tika.metadata.Metadata;
1515
import org.elasticsearch.core.PathUtils;
1616
import org.elasticsearch.test.ESTestCase;
17+
import org.elasticsearch.test.ESTestCase.WithoutEntitlements;
1718

1819
import java.nio.file.DirectoryStream;
1920
import java.nio.file.Files;
@@ -25,6 +26,7 @@
2526
* comes back and no exception.
2627
*/
2728
@SuppressFileSystems("ExtrasFS") // don't try to parse extraN
29+
@WithoutEntitlements // ES-12084
2830
public class TikaDocTests extends ESTestCase {
2931

3032
/** some test files from tika test suite, zipped up */

modules/ingest-attachment/src/test/java/org/elasticsearch/ingest/attachment/TikaImplTests.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@
99
package org.elasticsearch.ingest.attachment;
1010

1111
import org.elasticsearch.test.ESTestCase;
12+
import org.elasticsearch.test.ESTestCase.WithoutEntitlements;
1213

14+
@WithoutEntitlements // ES-12084
1315
public class TikaImplTests extends ESTestCase {
1416

1517
public void testTikaLoads() throws Exception {

modules/ingest-common/src/test/java/org/elasticsearch/ingest/common/RegisteredDomainProcessorFactoryTests.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,15 @@
1111

1212
import org.elasticsearch.ElasticsearchParseException;
1313
import org.elasticsearch.test.ESTestCase;
14+
import org.elasticsearch.test.ESTestCase.WithoutEntitlements;
1415
import org.junit.Before;
1516

1617
import java.util.HashMap;
1718
import java.util.Map;
1819

1920
import static org.hamcrest.Matchers.equalTo;
2021

22+
@WithoutEntitlements // ES-12084
2123
public class RegisteredDomainProcessorFactoryTests extends ESTestCase {
2224

2325
private RegisteredDomainProcessor.Factory factory;

modules/ingest-common/src/test/java/org/elasticsearch/ingest/common/RegisteredDomainProcessorTests.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
import org.elasticsearch.ingest.TestIngestDocument;
1414
import org.elasticsearch.ingest.common.RegisteredDomainProcessor.DomainInfo;
1515
import org.elasticsearch.test.ESTestCase;
16+
import org.elasticsearch.test.ESTestCase.WithoutEntitlements;
1617

1718
import java.util.Collections;
1819
import java.util.Map;
@@ -30,6 +31,7 @@
3031
* Effective TLDs (eTLDs) are not the same as DNS TLDs. Uses for eTLDs are listed here:
3132
* https://publicsuffix.org/learn/
3233
*/
34+
@WithoutEntitlements // ES-12084
3335
public class RegisteredDomainProcessorTests extends ESTestCase {
3436

3537
public void testGetRegisteredDomain() {

0 commit comments

Comments
 (0)