Class PrerequisiteSection
java.lang.Object
org.elasticsearch.test.rest.yaml.section.PrerequisiteSection
Represents a section where prerequisites to run a specific test section or suite are specified. It is possible to specify preconditions
as a set of `skip` criteria (the test or suite will be skipped if the specified conditions are met) or `requires` criteria (the test or
suite will be run only if the specified conditions are met)
Criteria are based on:
- the elasticsearch cluster version the tests are running against (deprecated)
- the features supported by the elasticsearch cluster version the tests are running against
- a specific test runner feature - some runners may not implement the whole set of features
- an operating system (full name, including specific Linux distributions) - some OS might show a certain behavior
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidevaluate(ClientYamlTestExecutionContext context, String testCandidateDescription) booleanhasYamlRunnerFeature(String feature) static PrerequisiteSectionparseIfNext(org.elasticsearch.xcontent.XContentParser parser)
-
Field Details
-
EMPTY
-
-
Method Details
-
parseIfNext
public static PrerequisiteSection parseIfNext(org.elasticsearch.xcontent.XContentParser parser) throws IOException - Throws:
IOException
-
hasYamlRunnerFeature
-
evaluate
-