Class SkipSection

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

public class SkipSection extends 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 Details

  • Constructor Details

  • Method Details

    • parseIfNext

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

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

      public Version getLowerVersion()
    • getUpperVersion

      public Version getUpperVersion()
    • getFeatures

      public List<String> getFeatures()
    • getOperatingSystems

      public List<String> getOperatingSystems()
    • getReason

      public String getReason()
    • skip

      public boolean skip(Version currentVersion)
    • skip

      public boolean skip(String os)
    • isVersionCheck

      public boolean isVersionCheck()
    • isEmpty

      public boolean isEmpty()
    • getSkipMessage

      public String getSkipMessage(String description)