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
-
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.lang.String reason)
-
Method Summary
Modifier and Type Method Description java.util.List<java.lang.String>
getFeatures()
Version
getLowerVersion()
java.lang.String
getReason()
java.lang.String
getSkipMessage(java.lang.String description)
Version
getUpperVersion()
boolean
isEmpty()
boolean
isVersionCheck()
static SkipSection
parse(XContentParser parser)
static SkipSection
parseIfNext(XContentParser parser)
boolean
skip(Version currentVersion)
-
Field Details
-
Constructor Details
-
SkipSection
public SkipSection(java.lang.String versionRange, java.util.List<java.lang.String> features, java.lang.String reason)
-
-
Method Details
-
parseIfNext
- Throws:
java.io.IOException
-
parse
- Throws:
java.io.IOException
-
getLowerVersion
-
getUpperVersion
-
getFeatures
public java.util.List<java.lang.String> getFeatures() -
getReason
public java.lang.String getReason() -
skip
-
isVersionCheck
public boolean isVersionCheck() -
isEmpty
public boolean isEmpty() -
getSkipMessage
public java.lang.String getSkipMessage(java.lang.String description)
-