Fix test broken by policy rename

This commit is contained in:
Michael Basnight 2019-08-14 13:57:47 -05:00
parent 52a094b177
commit fd57d3cb29
1 changed files with 2 additions and 2 deletions

View File

@ -98,8 +98,8 @@ public abstract class CommonEnrichRestTestCase extends ESRestTestCase {
public void testDeleteIsCaseSensitive() throws Exception { public void testDeleteIsCaseSensitive() throws Exception {
Request putPolicyRequest = new Request("PUT", "/_enrich/policy/my_policy"); Request putPolicyRequest = new Request("PUT", "/_enrich/policy/my_policy");
putPolicyRequest.setJsonEntity("{\"type\": \"exact_match\",\"indices\": [\"my-source-index\"], \"enrich_key\": \"host\", " + putPolicyRequest.setJsonEntity("{\"type\": \"exact_match\",\"indices\": [\"my-source-index\"], \"match_field\": \"host\", " +
"\"enrich_values\": [\"globalRank\", \"tldRank\", \"tld\"]}"); "\"enrich_fields\": [\"globalRank\", \"tldRank\", \"tld\"]}");
assertOK(client().performRequest(putPolicyRequest)); assertOK(client().performRequest(putPolicyRequest));
ResponseException exc = expectThrows(ResponseException.class, ResponseException exc = expectThrows(ResponseException.class,