diff --git a/rest-api-spec/test/cat.fielddata/10_basic.yaml b/rest-api-spec/test/cat.fielddata/10_basic.yaml index a5447ea3ce5..bc362fae58c 100644 --- a/rest-api-spec/test/cat.fielddata/10_basic.yaml +++ b/rest-api-spec/test/cat.fielddata/10_basic.yaml @@ -50,3 +50,14 @@ $body: | /^ total \s+ foo \s+ \n (\s*\d+(\.\d+)?[gmk]?b \s+ \d+(\.\d+)?[gmk]?b \s \n)+ \s*$/ + + - do: + cat.fielddata: + h: total,foo + fields: notfoo,foo + v: true + + - match: + $body: | + /^ total \s+ foo \s+ \n + (\s*\d+(\.\d+)?[gmk]?b \s+ \d+(\.\d+)?[gmk]?b \s \n)+ \s*$/