Skip to content

Commit

Permalink
[7.x] Spaces - fix flakey api tests (#54154) (#54185)
Browse files Browse the repository at this point in the history
* adding terms query

* run x-pack-ciGroup8 44 times

* Revert "run x-pack-ciGroup8 44 times"

This reverts commit 7d10217.
  • Loading branch information
legrego authored Jan 7, 2020
1 parent 367354c commit 064882c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
5 changes: 5 additions & 0 deletions x-pack/test/spaces_api_integration/common/suites/delete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit 064882c

Please sign in to comment.