Class SkipSection

java.lang.Object
org.elasticsearch.test.rest.yaml.section.SkipSection

public class SkipSection
extends java.lang.Object
Represents a skip section that tells whether a specific test section or suite needs to be skipped based on: - the elasticsearch version the tests are running against - a specific test feature required that might not be implemented yet by the runner - an operating system (full name, including specific Linux distributions) that might show a certain behavior
  • Field Summary

    Fields
    Modifier and Type Field Description
    static SkipSection EMPTY  
  • Constructor Summary

    Constructors
    Constructor Description
    SkipSection​(java.lang.String versionRange, java.util.List<java.lang.String> features, java.util.List<java.lang.String> operatingSystems, java.lang.String reason)  
  • Method Summary

    Modifier and Type Method Description
    java.util.List<java.lang.String> getFeatures()  
    org.elasticsearch.Version getLowerVersion()  
    java.util.List<java.lang.String> getOperatingSystems()  
    java.lang.String getReason()  
    java.lang.String getSkipMessage​(java.lang.String description)  
    org.elasticsearch.Version getUpperVersion()  
    boolean isEmpty()  
    boolean isVersionCheck()  
    static SkipSection parse​(org.elasticsearch.common.xcontent.XContentParser parser)  
    static SkipSection parseIfNext​(org.elasticsearch.common.xcontent.XContentParser parser)
    Parse a SkipSection if the next field is skip, otherwise returns EMPTY.
    boolean skip​(java.lang.String os)  
    boolean skip​(org.elasticsearch.Version currentVersion)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • SkipSection

      public SkipSection​(java.lang.String versionRange, java.util.List<java.lang.String> features, java.util.List<java.lang.String> operatingSystems, java.lang.String reason)
  • Method Details

    • parseIfNext

      public static SkipSection parseIfNext​(org.elasticsearch.common.xcontent.XContentParser parser) throws java.io.IOException
      Parse a SkipSection if the next field is skip, otherwise returns EMPTY.
      Throws:
      java.io.IOException
    • parse

      public static SkipSection parse​(org.elasticsearch.common.xcontent.XContentParser parser) throws java.io.IOException
      Throws:
      java.io.IOException
    • getLowerVersion

      public org.elasticsearch.Version getLowerVersion()
    • getUpperVersion

      public org.elasticsearch.Version getUpperVersion()
    • getFeatures

      public java.util.List<java.lang.String> getFeatures()
    • getOperatingSystems

      public java.util.List<java.lang.String> getOperatingSystems()
    • getReason

      public java.lang.String getReason()
    • skip

      public boolean skip​(org.elasticsearch.Version currentVersion)
    • skip

      public boolean skip​(java.lang.String os)
    • isVersionCheck

      public boolean isVersionCheck()
    • isEmpty

      public boolean isEmpty()
    • getSkipMessage

      public java.lang.String getSkipMessage​(java.lang.String description)