Class SkipSection
- java.lang.Object
-
- org.elasticsearch.test.rest.yaml.section.SkipSection
-
public class SkipSection extends java.lang.ObjectRepresents 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
-
-
Field Summary
Fields Modifier and Type Field Description static SkipSectionEMPTY
-
Constructor Summary
Constructors Constructor Description SkipSection(java.lang.String versionRange, java.util.List<java.lang.String> features, java.lang.String reason)
-
Method Summary
Modifier and Type Method Description java.util.List<java.lang.String>getFeatures()VersiongetLowerVersion()java.lang.StringgetReason()java.lang.StringgetSkipMessage(java.lang.String description)VersiongetUpperVersion()booleanisEmpty()booleanisVersionCheck()static SkipSectionparse(XContentParser parser)static SkipSectionparseIfNext(XContentParser parser)booleanskip(Version currentVersion)
-
-
-
Field Detail
-
EMPTY
public static final SkipSection EMPTY
-
-
Method Detail
-
parseIfNext
public static SkipSection parseIfNext(XContentParser parser) throws java.io.IOException
- Throws:
java.io.IOException
-
parse
public static SkipSection parse(XContentParser parser) throws java.io.IOException
- 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)
-
-