Package org.elasticsearch.test.rest.yaml.section
package org.elasticsearch.test.rest.yaml.section
Sections within the YAML tests that are executed to run the tests.
-
ClassDescriptionRepresents a test fragment that contains the information needed to call an apiBase class for executable sections that hold assertionsRepresents a test section, which is composed of a skip section and multiple executable sections.Holds a REST test suite loaded from a specific yaml file.Represents a close_to assert section: - close_to: { get.fields._routing: { value: 5.1, error: 0.00001 } }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.Represents a test fragment that can be executed (e.g.Represents an exists assert section: - exists: get.fields.barRepresents a gt assert section:Represents a gte assert section: - gte: { fields._ttl: 0 }Represents an is after assert section: - is_after: { result.some_instant: "2023-05-25T12:30:00.000Z" }Represents an is_false assert section: - is_false: get.fields.barRepresents an is_true assert section: - is_true: get.fields.barRepresents a length assert section:Represents a lt assert section: - lt: { fields._ttl: 20000}Represents a lte assert section: - lte: { fields._ttl: 0 }Represents a match assert section: - match: { get.fields._routing: "5" }Represents an exists assert section:Represents a section where prerequisites to run a specific test section or suite are specified.Represents a set section: - set: {_scroll_id: scroll_id}Represents a setup section.Represents a transform_and_set section: