diff --git a/rest-api-spec/src/main/resources/rest-api-spec/test/mpercolate/10_basic.yaml b/rest-api-spec/src/main/resources/rest-api-spec/test/mpercolate/10_basic.yaml index fef50208749..9b76f71835a 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/test/mpercolate/10_basic.yaml +++ b/rest-api-spec/src/main/resources/rest-api-spec/test/mpercolate/10_basic.yaml @@ -37,7 +37,5 @@ foo: bar - match: { responses.0.total: 1 } - - match: { responses.1.error.root_cause.0.type: index_not_found_exception } - - match: { responses.1.error.root_cause.0.reason: "/no.such.index/" } - - match: { responses.1.error.root_cause.0.index: percolator_index1 } + - match: { responses.1.error: "/no.such.index/" } - match: { responses.2.total: 1 } diff --git a/rest-api-spec/src/main/resources/rest-api-spec/test/msearch/10_basic.yaml b/rest-api-spec/src/main/resources/rest-api-spec/test/msearch/10_basic.yaml index 8b736b860bd..76ef7c42303 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/test/msearch/10_basic.yaml +++ b/rest-api-spec/src/main/resources/rest-api-spec/test/msearch/10_basic.yaml @@ -39,7 +39,7 @@ match: {foo: bar} - match: { responses.0.hits.total: 3 } - - match: { responses.1.error.root_cause.0.type: index_not_found_exception } + - match: { responses.1.error.root_cause.0.type: index_missing_exception } - match: { responses.1.error.root_cause.0.reason: "/no.such.index/" } - match: { responses.1.error.root_cause.0.index: test_2 } - match: { responses.2.hits.total: 1 }