Skip to content

Commit 5c4ab8f

Browse files
authored
[7.5] Spaces - fix flakey api tests (#54154) (#54186)
* adding terms query * run x-pack-ciGroup8 44 times * Revert "run x-pack-ciGroup8 44 times" This reverts commit 7d10217.
1 parent 896f058 commit 5c4ab8f

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

x-pack/test/spaces_api_integration/common/suites/copy_to_space.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -87,14 +87,8 @@ export function copyToSpaceTestSuiteFactory(
8787
body: {
8888
size: 0,
8989
query: {
90-
bool: {
91-
must_not: {
92-
term: {
93-
// exclude spaces from the result set.
94-
// we don't assert on these.
95-
type: 'space',
96-
},
97-
},
90+
terms: {
91+
type: ['visualization', 'dashboard', 'index-pattern'],
9892
},
9993
},
10094
aggs: {

x-pack/test/spaces_api_integration/common/suites/delete.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@ export function deleteTestSuiteFactory(es: any, esArchiver: any, supertest: Supe
3939
index: '.kibana',
4040
body: {
4141
size: 0,
42+
query: {
43+
terms: {
44+
type: ['visualization', 'dashboard', 'space', 'config', 'index-pattern'],
45+
},
46+
},
4247
aggs: {
4348
count: {
4449
terms: {

0 commit comments

Comments
 (0)