OpenSearch/docs/painless
Nik Everett d5ad86dad9
Build: Enable testing without magic comments (backports #46180) (#46325)
Previously we only turned on tests if we saw either `// CONSOLE` or
`// TEST`. These magic comments are difficult for the docs build to deal
with so it has moved away from using them where possible. We should
catch up. This adds another trigger to enable testing: marking a snippet
with the `console` language. It looks like this:

```
[source,console]
----
GET /
----
```

This saves a line which is nice, I guess. But it is more important to me
that this is consistent with the way the docs build works now.

Similarly this enables response testing when you mark a snippet with the
language `console-result`. That looks like:
```
[source,console-result]
----
{
  "result": "0.1"
}
----
```

`// TESTRESPONSE` is still available for situations like `// TEST`: when
the response isn't *in* the console-result language (like `_cat`) or
when you want to perform substitutions on the generated test.

Should unblock #46159.
2019-09-04 15:19:20 -04:00
..
painless-api-reference Add painless method getByPath, get value from nested collections with dotted path (#43170) (#43606) 2019-06-26 09:06:34 -06:00
painless-contexts Fix Watcher Examples in Painless (#45631) 2019-08-16 09:08:19 -07:00
painless-guide Build: Enable testing without magic comments (backports #46180) (#46325) 2019-09-04 15:19:20 -04:00
painless-lang-spec Reorganize Painless doc structure (#42303) 2019-05-21 10:50:21 -07:00
index.asciidoc Reorganize Painless doc structure (#42303) 2019-05-21 10:50:21 -07:00
painless-api-reference.asciidoc Task to generate Painless API's per context (#41233) 2019-04-23 11:28:27 -07:00
painless-contexts.asciidoc [DOCS] Update anchors and links for Elasticsearch API relocation (#44500) 2019-07-19 09:18:23 -04:00
painless-guide.asciidoc Reorganize Painless doc structure (#42303) 2019-05-21 10:50:21 -07:00
painless-lang-spec.asciidoc Reorganize Painless doc structure (#42303) 2019-05-21 10:50:21 -07:00
redirects.asciidoc [DOCS] Add redirect for painless examples anchor 2019-06-25 12:34:18 -04:00