Class AbstractFilteringTestCase

java.lang.Object
org.junit.Assert
org.apache.lucene.util.LuceneTestCase
org.elasticsearch.test.ESTestCase
org.elasticsearch.common.xcontent.support.AbstractFilteringTestCase

public abstract class AbstractFilteringTestCase extends ESTestCase
Tests for XContent filtering.
  • Field Details

  • Constructor Details

    • AbstractFilteringTestCase

      public AbstractFilteringTestCase()
  • Method Details

    • testFilter

      protected abstract void testFilter(AbstractFilteringTestCase.Builder expected, AbstractFilteringTestCase.Builder actual, Set<String> includes, Set<String> excludes) throws IOException
      Throws:
      IOException
    • builderFor

      protected static AbstractFilteringTestCase.Builder builderFor(String file)
    • testNoFiltering

      public final void testNoFiltering() throws Exception
      Throws:
      Exception
    • testNoMatch

      public final void testNoMatch() throws Exception
      Throws:
      Exception
    • testSimpleFieldInclusive

      public final void testSimpleFieldInclusive() throws Exception
      Throws:
      Exception
    • testSimpleFieldExclusive

      public final void testSimpleFieldExclusive() throws Exception
      Throws:
      Exception
    • testSimpleFieldWithWildcardInclusive

      public final void testSimpleFieldWithWildcardInclusive() throws Exception
      Throws:
      Exception
    • testSimpleFieldWithWildcardExclusive

      public final void testSimpleFieldWithWildcardExclusive() throws Exception
      Throws:
      Exception
    • testMultipleFieldsInclusive

      public final void testMultipleFieldsInclusive() throws Exception
      Throws:
      Exception
    • testMultipleFieldsExclusive

      public final void testMultipleFieldsExclusive() throws Exception
      Throws:
      Exception
    • testSimpleArrayInclusive

      public final void testSimpleArrayInclusive() throws Exception
      Throws:
      Exception
    • testSimpleArrayExclusive

      public final void testSimpleArrayExclusive() throws Exception
      Throws:
      Exception
    • testSimpleArrayOfObjectsInclusive

      public final void testSimpleArrayOfObjectsInclusive() throws Exception
      Throws:
      Exception
    • testSimpleArrayOfObjectsExclusive

      public final void testSimpleArrayOfObjectsExclusive() throws Exception
      Throws:
      Exception
    • removesEmptyArrays

      protected abstract boolean removesEmptyArrays()
    • testSimpleArrayOfObjectsPropertyInclusive

      public void testSimpleArrayOfObjectsPropertyInclusive() throws Exception
      Throws:
      Exception
    • testSimpleArrayOfObjectsPropertyExclusive

      public void testSimpleArrayOfObjectsPropertyExclusive() throws Exception
      Throws:
      Exception
    • testRecurseField1Inclusive

      public void testRecurseField1Inclusive() throws Exception
      Throws:
      Exception
    • testRecurseField1Exclusive

      public void testRecurseField1Exclusive() throws Exception
      Throws:
      Exception
    • testRecurseField2Inclusive

      public void testRecurseField2Inclusive() throws Exception
      Throws:
      Exception
    • testRecurseField2Exclusive

      public void testRecurseField2Exclusive() throws Exception
      Throws:
      Exception
    • testRecurseField3Inclusive

      public void testRecurseField3Inclusive() throws Exception
      Throws:
      Exception
    • testRecurseField3Exclusive

      public void testRecurseField3Exclusive() throws Exception
      Throws:
      Exception
    • testRecurseField4Inclusive

      public void testRecurseField4Inclusive() throws Exception
      Throws:
      Exception
    • testRecurseField4Exclusive

      public void testRecurseField4Exclusive() throws Exception
      Throws:
      Exception
    • testRawField

      public void testRawField() throws Exception
      Throws:
      Exception
    • testArrays

      public void testArrays() throws Exception
      Throws:
      Exception
    • testEmptyObject

      public void testEmptyObject() throws IOException
      Throws:
      IOException
    • testSingleFieldWithBothExcludesIncludes

      public void testSingleFieldWithBothExcludesIncludes() throws IOException
      Throws:
      IOException
    • testObjectsInArrayWithBothExcludesIncludes

      public void testObjectsInArrayWithBothExcludesIncludes() throws IOException
      Throws:
      IOException
    • testRecursiveObjectsInArrayWithBothExcludesIncludes

      public void testRecursiveObjectsInArrayWithBothExcludesIncludes() throws IOException
      Throws:
      IOException
    • testRecursiveSameObjectWithBothExcludesIncludes

      public void testRecursiveSameObjectWithBothExcludesIncludes() throws IOException
      Throws:
      IOException
    • testRecursiveObjectsPropertiesWithBothExcludesIncludes

      public void testRecursiveObjectsPropertiesWithBothExcludesIncludes() throws IOException
      Throws:
      IOException
    • testWithLfAtEnd

      public void testWithLfAtEnd() throws IOException
      Throws:
      IOException
    • testBasics

      public void testBasics() throws Exception
      Throws:
      Exception
    • testFilterSupplementaryCharactersInPaths

      public void testFilterSupplementaryCharactersInPaths() throws IOException
      Tests that we can extract paths containing non-ascii characters.
      Throws:
      IOException
    • testFilterSharedPrefixes

      public void testFilterSharedPrefixes() throws IOException
      Tests that we can extract paths which share a prefix with other paths.
      Throws:
      IOException
    • testFilterPrefix

      public void testFilterPrefix() throws IOException
      Tests that we can extract paths which have another path as a prefix.
      Throws:
      IOException
    • testManyFilters

      public void testManyFilters() throws IOException, URISyntaxException
      Throws:
      IOException
      URISyntaxException
    • testExcludeWildCardFields

      @AwaitsFix(bugUrl="https://github.com/elastic/elasticsearch/pull/80160") public void testExcludeWildCardFields() throws IOException
      Throws:
      IOException