Interface ExecutableSection
- All Known Implementing Classes:
Assertion,CloseToAssertion,ContainsAssertion,DoSection,ExistsAssertion,GreaterThanAssertion,GreaterThanEqualToAssertion,IsAfterAssertion,IsFalseAssertion,IsTrueAssertion,LengthAssertion,LessThanAssertion,LessThanOrEqualToAssertion,MatchAssertion,NotExistsAssertion,SetSection,TransformAndSetSection
public interface ExecutableSection
Represents a test fragment that can be executed (e.g. api call, assertion)
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final List<org.elasticsearch.xcontent.NamedXContentRegistry.Entry> Default list ofExecutableSections available for tests.static final org.elasticsearch.xcontent.NamedXContentRegistryNamedXContentRegistrythat parses the default list ofExecutableSections available for tests. -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(ClientYamlTestExecutionContext executionContext) Executes the section passing in the execution contextorg.elasticsearch.xcontent.XContentLocationGet the location in the test that this was defined.static ExecutableSectionparse(org.elasticsearch.xcontent.XContentParser parser)
-
Field Details
-
DEFAULT_EXECUTABLE_CONTEXTS
static final List<org.elasticsearch.xcontent.NamedXContentRegistry.Entry> DEFAULT_EXECUTABLE_CONTEXTSDefault list ofExecutableSections available for tests. -
XCONTENT_REGISTRY
static final org.elasticsearch.xcontent.NamedXContentRegistry XCONTENT_REGISTRYNamedXContentRegistrythat parses the default list ofExecutableSections available for tests.
-
-
Method Details
-
parse
- Throws:
IOException
-
getLocation
org.elasticsearch.xcontent.XContentLocation getLocation()Get the location in the test that this was defined. -
execute
Executes the section passing in the execution context- Throws:
IOException
-