[TEST] Fixes docs tests

587409e893 introduced a bug where an example of the format of a request which contained placeholder values was attempted to be tested. This change adds `NOTCONSOLE` to that snippet as the immediately following snippet tests a concrete example.

220212dd69 introduced a bug because the test substitution was looking for `otherhost` where the snippet contained `oldhost`. This change fixes the substitution
This commit is contained in:
Colin Goodheart-Smithe 2017-08-24 10:45:53 +01:00
parent 6d8e2c6d4c
commit 6b23ee8040
No known key found for this signature in database
GPG Key ID: F975E7BDD739B3C7
2 changed files with 2 additions and 2 deletions

View File

@ -129,7 +129,7 @@ PUT /_cluster/settings
}
}
-------------------------------
// CONSOLE
// NOTCONSOLE
For example:

View File

@ -159,7 +159,7 @@ POST _reindex
// CONSOLE
// TEST[setup:host]
// TEST[s/^/PUT source\n/]
// TEST[s/otherhost:9200",/\${host}"/]
// TEST[s/oldhost:9200",/\${host}"/]
// TEST[s/"username": "user",//]
// TEST[s/"password": "pass"//]