Class SkipSection

java.lang.Object
org.opensearch.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 opensearch version the tests are running against - a specific test feature required that might not be implemented yet by the runner
  • Field Details

  • Constructor Details

  • Method Details

    • parseIfNext

      public static SkipSection parseIfNext(org.opensearch.core.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.opensearch.core.xcontent.XContentParser parser) throws IOException
      Throws:
      IOException
    • getLowerVersion

      public org.opensearch.Version getLowerVersion()
    • getUpperVersion

      public org.opensearch.Version getUpperVersion()
    • getFeatures

      public List<String> getFeatures()
    • getReason

      public String getReason()
    • skip

      public boolean skip(org.opensearch.Version currentVersion)
    • isVersionCheck

      public boolean isVersionCheck()
    • isEmpty

      public boolean isEmpty()
    • getSkipMessage

      public String getSkipMessage(String description)