adding terms query

This commit is contained in:
Larry Gregory 2020-01-07 11:55:59 -05:00
parent c02531a494
commit 3efe04e4f5
No known key found for this signature in database
GPG key ID: 3DC74EB09761BFEB
2 changed files with 7 additions and 8 deletions

View file

@ -87,14 +87,8 @@ export function copyToSpaceTestSuiteFactory(
body: {
size: 0,
query: {
bool: {
must_not: {
term: {
// exclude spaces from the result set.
// we don't assert on these.
type: 'space',
},
},
terms: {
type: ['visualization', 'dashboard', 'index-pattern'],
},
},
aggs: {

View file

@ -39,6 +39,11 @@ export function deleteTestSuiteFactory(es: any, esArchiver: any, supertest: Supe
index: '.kibana',
body: {
size: 0,
query: {
terms: {
type: ['visualization', 'dashboard', 'space', 'config', 'index-pattern'],
},
},
aggs: {
count: {
terms: {