Class TransformAndSetSection
java.lang.Object
org.elasticsearch.test.rest.yaml.section.TransformAndSetSection
- All Implemented Interfaces:
ExecutableSection
Represents a transform_and_set section:
In the following example,
- transform_and_set: { login_creds: "#base64EncodeCredentials(user,password)" }
user and password are from the response which are joined by ':' and Base64 encoded and then stashed as 'login_creds'
-
Field Summary
Fields inherited from interface org.elasticsearch.test.rest.yaml.section.ExecutableSection
DEFAULT_EXECUTABLE_CONTEXTS, XCONTENT_REGISTRY -
Constructor Summary
ConstructorsConstructorDescriptionTransformAndSetSection(org.elasticsearch.xcontent.XContentLocation location) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidexecute(ClientYamlTestExecutionContext executionContext) Executes the section passing in the execution contextorg.elasticsearch.xcontent.XContentLocationGet the location in the test that this was defined.getStash()static TransformAndSetSectionparse(org.elasticsearch.xcontent.XContentParser parser)
-
Constructor Details
-
TransformAndSetSection
public TransformAndSetSection(org.elasticsearch.xcontent.XContentLocation location)
-
-
Method Details
-
parse
public static TransformAndSetSection parse(org.elasticsearch.xcontent.XContentParser parser) throws IOException - Throws:
IOException
-
addSet
-
getStash
-
getLocation
public org.elasticsearch.xcontent.XContentLocation getLocation()Description copied from interface:ExecutableSectionGet the location in the test that this was defined.- Specified by:
getLocationin interfaceExecutableSection
-
execute
Description copied from interface:ExecutableSectionExecutes the section passing in the execution context- Specified by:
executein interfaceExecutableSection- Throws:
IOException
-