OpenSearch/docs/reference
Nik Everett 156393be0e Fail build if new doc snippets aren't `// CONSOLE`
This tracks the snippets that probably should be converted to
`// CONSOLE` or `// TESTRESPONSE` and fails the build if the list
of files with such snippets doesn't match the list in `docs/build.gradle`.
Setting the file looks like
```
/* List of files that have snippets that probably should be converted to
 * `// CONSOLE` and `// TESTRESPONSE` but have yet to be converted. Try and
 * only remove entries from this list. When it is empty we'll remove it
 * entirely and have a party! There will be cake and everything.... */
buildRestTests.expectedUnconvertedCandidates = [
  'plugins/discovery-azure-classic.asciidoc',
...
  'reference/search/suggesters/completion-suggest.asciidoc',
]
```

This list is in `build.gradle` because we expect it to be fairly
temporary. In a few months we'll have converted all of the docs and won't
ned it any more.

From now on if you add now docs that contain a snippet that shows an
interaction with elasticsearch you have three choices:
1. Stick `// CONSOLE` on the interactions and `// TESTRESPONSE` on the
responses. The build (specifically (`gradle docs:check`) will test that
these interactions "work". If there isn't a `// TESTRESPONSE` snippet
then "work" just means "Elasticsearch responds with a 200-level response
code and no `WARNING` headers. This is way better than nothing.

2. Add `// NOTCONSOLE` if the snippet isn't actually interacting with
Elasticsearch. This should only be required for stuff like javascript
source code or `curl` against an external service like AWS or GCE. The
snippet will not get "OPEN IN CONSOLE" or "COPY AS CURL" buttons or be
tested.

3. Add `// TEST[skip:reason]` under the snippet. This will just skip the
snippet in the test phase. This should really be reserved for snippets
where we can't test them because they require an external service that
we don't have at testing time.

Please, please, please, please don't add more things to the list. After
all, it sais there'll be cake when we remove it entirely!

Relates to #18160
2016-09-19 16:43:43 -04:00
..
aggregations Remove most of the need for `// NOTCONSOLE` 2016-09-06 10:32:54 -04:00
analysis Fix minhash docs level 2016-09-19 07:54:04 -04:00
cat [DOC] Remove obsolete node names from documentation 2016-09-19 11:56:28 +02:00
cluster [DOC] Remove obsolete node names from documentation 2016-09-19 11:56:28 +02:00
docs [DOC] Remove obsolete node names from documentation 2016-09-19 11:56:28 +02:00
how-to Add more information to the how-to docs. #20297 2016-09-02 14:28:47 +02:00
images Docs: clarify calculation of sigma and lambda in function_score (#20267) 2016-09-02 14:41:07 +02:00
index-modules Update docs for Log4j 2 2016-08-31 15:51:52 -04:00
indices Switch more docs to CONSOLE 2016-09-02 18:22:30 -04:00
ingest introduce the JSON Processor (#20128) 2016-09-09 14:34:32 -07:00
mapping Remove mapper attachments plugin 2016-09-19 09:01:16 +02:00
migration Remove mapper attachments plugin 2016-09-19 09:01:16 +02:00
modules Improves the documentation for the (#20531) 2016-09-16 16:06:18 -04:00
query-dsl Update docs for LatLonPoint cut over 2016-09-13 12:18:21 -05:00
search Add profile and explain parameters to template API 2016-09-19 17:52:13 +02:00
setup [DOC] Remove obsolete node names from documentation 2016-09-19 11:56:28 +02:00
testing Remove most of the need for `// NOTCONSOLE` 2016-09-06 10:32:54 -04:00
aggregations.asciidoc refactor matrix agg documentation from modules to main agg section 2016-06-06 07:39:00 -05:00
analysis.asciidoc First pass at improving analyzer docs (#18269) 2016-05-11 14:17:56 +02:00
api-conventions.asciidoc Update docs for LatLonPoint cut over 2016-09-13 12:18:21 -05:00
cat.asciidoc [DOC] Remove obsolete node names from documentation 2016-09-19 11:56:28 +02:00
cluster.asciidoc Fix leftover node attributes usage 2016-09-19 07:45:31 -04:00
docs.asciidoc Add support for waiting until a refresh occurs 2016-06-06 11:37:53 -04:00
getting-started.asciidoc [DOC] Remove obsolete node names from documentation 2016-09-19 11:56:28 +02:00
glossary.asciidoc Improve glossary to not refer to types as "like a table" (#17704) 2016-04-13 14:29:47 +02:00
how-to.asciidoc Add notes about sparsity. 2016-07-07 17:47:19 +02:00
index-modules.asciidoc Remove `_timestamp` and `_ttl` on 5.x indices. #18980 2016-06-22 08:35:54 +02:00
index.asciidoc Use a comment block to comment out release notes 2016-09-08 18:30:37 +02:00
indices.asciidoc [DOCS] fix missing rollover-index link 2016-06-17 12:14:45 -04:00
ingest.asciidoc Renamed all AUTOSENSE snippets to CONSOLE (#18210) 2016-05-09 15:42:23 +02:00
mapping.asciidoc Renamed all AUTOSENSE snippets to CONSOLE (#18210) 2016-05-09 15:42:23 +02:00
modules.asciidoc refactor matrix agg documentation from modules to main agg section 2016-06-06 07:39:00 -05:00
query-dsl.asciidoc Fixed broken xrefs to query-dsl-not-query, which has been removed. 2015-10-20 13:01:37 -07:00
redirects.asciidoc Docs: Added redirect for geohash_cell query topic. 2016-09-13 17:40:24 -07:00
release-notes.asciidoc Remove links to release notes 2016-09-08 18:07:39 +02:00
search.asciidoc Fail build if new doc snippets aren't `// CONSOLE` 2016-09-19 16:43:43 -04:00
setup.asciidoc Die with dignity 2016-07-07 14:44:03 -04:00
testing.asciidoc [DOCS] Test framework documentation 2013-12-02 18:01:45 +01:00