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:
parent
0f36c744d0
commit
2528934411
|
@ -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")
|
||||
|
|
|
@ -14,7 +14,7 @@ PUT twitter/tweet/1
|
|||
"message" : "trying out Elasticsearch"
|
||||
}
|
||||
--------------------------------------------------
|
||||
// AUTOSENSE
|
||||
// CONSOLE
|
||||
|
||||
The result of the above index operation is:
|
||||
|
||||
|
|
Loading…
Reference in New Issue