Class 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
    • Constructor Detail

      • SkipSection

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

      • parseIfNext

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

        public Version getLowerVersion()
      • getUpperVersion

        public Version getUpperVersion()
      • getFeatures

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

        public java.lang.String getReason()
      • skip

        public boolean skip​(Version currentVersion)
      • isVersionCheck

        public boolean isVersionCheck()
      • isEmpty

        public boolean isEmpty()
      • getSkipMessage

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