refresh audit index before searching (#40401)

refresh the audit index before searching
This commit is contained in:
Hendrik Muhs 2019-03-25 11:57:11 +01:00
parent dc5ff0fffc
commit 38afc9f27d
1 changed files with 1 additions and 0 deletions

View File

@ -62,6 +62,7 @@ public class DataFrameAuditorIT extends DataFrameRestTestCase {
// Make sure we wrote to the audit
assertTrue(indexExists(DataFrameInternalIndex.AUDIT_INDEX));
refreshIndex(DataFrameInternalIndex.AUDIT_INDEX);
Request request = new Request("GET", DataFrameInternalIndex.AUDIT_INDEX + "/_search");
request.setJsonEntity("{\"query\":{\"term\":{\"transform_id\":\"simplePivotForAudit\"}}}");
Map<String, Object> response = entityAsMap(client().performRequest(request));