Fix ILM start and stop doc tests (#46559)

This uses whatever the server retrieves, rather than hardcoded
"STOPPING" and "STOPPED" since the server may go to STOPPED before the
request is issued.

Resolves #46528
This commit is contained in:
Lee Hinman 2019-09-11 09:54:02 -06:00 committed by Lee Hinman
parent 52d7b03b49
commit dcdfc382c7
1 changed files with 2 additions and 0 deletions

View File

@ -107,6 +107,7 @@ GET _ilm/status
"operation_mode": "STOPPING" "operation_mode": "STOPPING"
} }
-------------------------------------------------- --------------------------------------------------
// TESTRESPONSE[s/"STOPPING"/$body.operation_mode/]
The ILM service will then, asynchronously, run all policies to a point The ILM service will then, asynchronously, run all policies to a point
where it is safe to stop. After ILM verifies that it is safe, it will where it is safe to stop. After ILM verifies that it is safe, it will
@ -128,6 +129,7 @@ GET _ilm/status
"operation_mode": "STOPPED" "operation_mode": "STOPPED"
} }
-------------------------------------------------- --------------------------------------------------
// TESTRESPONSE[s/"STOPPED"/$body.operation_mode/]
[float] [float]
=== Starting ILM === Starting ILM