OpenSearch/docs/reference/mapping/fields
Nik Everett 4b1c116461 Generate and run tests from the docs
Adds infrastructure so `gradle :docs:check` will extract tests from
snippets in the documentation and execute the tests. This is included
in `gradle check` so it should happen on CI and during a normal build.

By default each `// AUTOSENSE` snippet creates a unique REST test. These
tests are executed in a random order and the cluster is wiped between
each one. If multiple snippets chain together into a test you can annotate
all snippets after the first with `// TEST[continued]` to have the
generated tests for both snippets joined.

Snippets marked as `// TESTRESPONSE` are checked against the response
of the last action.

See docs/README.asciidoc for lots more.

Closes #12583. That issue is about catching bugs in the docs during build.
This catches *some* bugs in the docs during build which is a good start.
2016-05-05 13:58:03 -04:00
..
all-field.asciidoc Generate and run tests from the docs 2016-05-05 13:58:03 -04:00
field-names-field.asciidoc Generate and run tests from the docs 2016-05-05 13:58:03 -04:00
id-field.asciidoc Update id-field.asciidoc 2016-04-28 13:36:14 +02:00
index-field.asciidoc Document that _index is a virtual field and only supports term queries 2015-11-30 08:43:23 +01:00
meta-field.asciidoc Docs: Mapping docs completely rewritten for 2.0 2015-08-06 17:24:51 +02:00
parent-field.asciidoc Generate and run tests from the docs 2016-05-05 13:58:03 -04:00
routing-field.asciidoc Generate and run tests from the docs 2016-05-05 13:58:03 -04:00
source-field.asciidoc reindex: gracefully handle when _source is disabled 2016-04-13 08:19:58 -04:00
timestamp-field.asciidoc Generate and run tests from the docs 2016-05-05 13:58:03 -04:00
ttl-field.asciidoc Fix typos in docs. 2016-02-09 02:07:32 -08:00
type-field.asciidoc Generate and run tests from the docs 2016-05-05 13:58:03 -04:00
uid-field.asciidoc Docs: Mapping docs completely rewritten for 2.0 2015-08-06 17:24:51 +02:00