Class DoSection

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

public class DoSection extends Object implements ExecutableSection
Represents a do section: - do: catch: missing headers: Authorization: Basic user:pass Content-Type: application/json warnings|warnings_regex: - Stuff is deprecated, yo - Don't use deprecated stuff - Please, stop. It hurts. - The non _regex version exact matches against the warning text and no need to worry about escaped quotes or backslashes - The _regex version matches against the raw value of the warning text which may include backlashes and quotes escaped allowed_warnings|allowed_warnings_regex: - Maybe this warning shows up - But it isn't actually required for the test to pass. - The non _regex version should be preferred for simplicity and performance. update: index: test_1 type: test id: 1 body: { doc: { foo: bar } }