Class DoSection

java.lang.Object
org.elasticsearch.test.rest.yaml.section.DoSection
All Implemented Interfaces:
ExecutableSection

public class DoSection
extends java.lang.Object
implements ExecutableSection
Represents a do section: - do: catch: missing headers: Authorization: Basic user:pass Content-Type: application/json warnings: - Stuff is deprecated, yo - Don't use deprecated stuff - Please, stop. It hurts. allowed_warnings: - Maybe this warning shows up - But it isn't actually required for the test to pass. update: index: test_1 type: test id: 1 body: { doc: { foo: bar } }
  • Field Summary

    Fields inherited from interface org.elasticsearch.test.rest.yaml.section.ExecutableSection

    DEFAULT_EXECUTABLE_CONTEXTS, XCONTENT_REGISTRY
  • Constructor Summary

    Constructors 
    Constructor Description
    DoSection​(org.elasticsearch.common.xcontent.XContentLocation location)  
  • Method Summary

    Modifier and Type Method Description
    void execute​(ClientYamlTestExecutionContext executionContext)
    Executes the section passing in the execution context
    ApiCallSection getApiCallSection()  
    java.lang.String getCatch()  
    org.elasticsearch.common.xcontent.XContentLocation getLocation()
    Get the location in the test that this was defined.
    static DoSection parse​(org.elasticsearch.common.xcontent.XContentParser parser)  
    void setCatch​(java.lang.String catchParam)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait