CONSOLE is the new AUTOSENSE

This makes the test generation support both while we move from
`// AUTOSENSE` to `// CONSOLE`.

Will bother #18160
This commit is contained in:
Nik Everett 2016-05-09 09:23:23 -04:00
parent 0f36c744d0
commit 2528934411
2 changed files with 3 additions and 2 deletions

View File

@ -110,7 +110,8 @@ public class SnippetsTask extends DefaultTask {
lastLanguageLine = lineNumber
return
}
if (line ==~ /\/\/ AUTOSENSE\s*/) {
if (line ==~ /\/\/ AUTOSENSE\s*/
|| line ==~ /\/\/ CONSOLE\s*/) {
if (snippet == null) {
throw new InvalidUserDataException("AUTOSENSE not " +
"paired with a snippet at $file:$lineNumber")

View File

@ -14,7 +14,7 @@ PUT twitter/tweet/1
"message" : "trying out Elasticsearch"
}
--------------------------------------------------
// AUTOSENSE
// CONSOLE
The result of the above index operation is: