Skip to content

Commit eb48c58

Browse files
committed
[Search] Fix search tests timeout failures
1 parent f5bd029 commit eb48c58

2 files changed

Lines changed: 19 additions & 0 deletions

File tree

  • x-pack
    • platform/test/api_integration/apis/search
    • test_serverless/api_integration/test_suites/common/search_xpack

x-pack/platform/test/api_integration/apis/search/search.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ export default function ({ getService }: FtrProviderContext) {
6363
.set('kbn-xsrf', 'foo')
6464
.send({
6565
params: {
66+
index: 'search-api-test',
6667
body: {
6768
query: {
6869
match_all: {},
@@ -89,6 +90,7 @@ export default function ({ getService }: FtrProviderContext) {
8990
.set('kbn-xsrf', 'foo')
9091
.send({
9192
params: {
93+
index: 'search-api-test',
9294
body: {
9395
query: {
9496
match_all: {},
@@ -116,6 +118,7 @@ export default function ({ getService }: FtrProviderContext) {
116118
.set('kbn-xsrf', 'foo')
117119
.send({
118120
params: {
121+
index: 'search-api-test',
119122
body: {
120123
query: {
121124
match_all: {},
@@ -159,6 +162,7 @@ export default function ({ getService }: FtrProviderContext) {
159162
.set('kbn-xsrf', 'foo')
160163
.send({
161164
params: {
165+
index: 'search-api-test',
162166
body: {
163167
query: {
164168
match_all: {},
@@ -196,6 +200,7 @@ export default function ({ getService }: FtrProviderContext) {
196200
.set('kbn-xsrf', 'foo')
197201
.send({
198202
params: {
203+
index: 'search-api-test',
199204
body: {
200205
query: {
201206
match_all: {},
@@ -258,6 +263,7 @@ export default function ({ getService }: FtrProviderContext) {
258263
.set(ELASTIC_HTTP_VERSION_HEADER, '1')
259264
.send({
260265
params: {
266+
index: 'search-api-test',
261267
body: {
262268
query: {
263269
match_all: {},
@@ -277,6 +283,7 @@ export default function ({ getService }: FtrProviderContext) {
277283
.set('kbn-xsrf', 'foo')
278284
.send({
279285
params: {
286+
index: 'search-api-test',
280287
body: {
281288
query: {
282289
match_all: {},
@@ -298,6 +305,7 @@ export default function ({ getService }: FtrProviderContext) {
298305
.set('kbn-xsrf', 'foo')
299306
.send({
300307
params: {
308+
index: 'search-api-test',
301309
body: {
302310
query: {
303311
match_all: {},
@@ -478,6 +486,7 @@ export default function ({ getService }: FtrProviderContext) {
478486
.set('kbn-xsrf', 'foo')
479487
.send({
480488
params: {
489+
index: 'search-api-test',
481490
body: {
482491
query: {
483492
match_all: {},
@@ -519,6 +528,7 @@ export default function ({ getService }: FtrProviderContext) {
519528
.set('kbn-xsrf', 'foo')
520529
.send({
521530
params: {
531+
index: 'search-api-test',
522532
body: {
523533
query: {
524534
match_all: {},

x-pack/test_serverless/api_integration/test_suites/common/search_xpack/search.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ export default function ({ getService }: FtrProviderContext) {
7575
.set(roleAuthc.apiKeyHeader)
7676
.send({
7777
params: {
78+
index: 'search-api-test',
7879
body: {
7980
query: {
8081
match_all: {},
@@ -104,6 +105,7 @@ export default function ({ getService }: FtrProviderContext) {
104105
.set(roleAuthc.apiKeyHeader)
105106
.send({
106107
params: {
108+
index: 'search-api-test',
107109
body: {
108110
query: {
109111
match_all: {},
@@ -133,6 +135,7 @@ export default function ({ getService }: FtrProviderContext) {
133135
.set('kbn-xsrf', 'foo')
134136
.send({
135137
params: {
138+
index: 'search-api-test',
136139
body: {
137140
query: {
138141
match_all: {},
@@ -180,6 +183,7 @@ export default function ({ getService }: FtrProviderContext) {
180183
.set('kbn-xsrf', 'foo')
181184
.send({
182185
params: {
186+
index: 'search-api-test',
183187
body: {
184188
query: {
185189
match_all: {},
@@ -218,6 +222,7 @@ export default function ({ getService }: FtrProviderContext) {
218222
.set(omit(svlCommonApi.getInternalRequestHeader(), 'kbn-xsrf'))
219223
.send({
220224
params: {
225+
index: 'search-api-test',
221226
body: {
222227
query: {
223228
match_all: {},
@@ -239,6 +244,7 @@ export default function ({ getService }: FtrProviderContext) {
239244
.set('kbn-xsrf', 'foo')
240245
.send({
241246
params: {
247+
index: 'search-api-test',
242248
body: {
243249
query: {
244250
match_all: {},
@@ -262,6 +268,7 @@ export default function ({ getService }: FtrProviderContext) {
262268
.set('kbn-xsrf', 'foo')
263269
.send({
264270
params: {
271+
index: 'search-api-test',
265272
body: {
266273
query: {
267274
match_all: {},
@@ -383,6 +390,7 @@ export default function ({ getService }: FtrProviderContext) {
383390
.set('kbn-xsrf', 'foo')
384391
.send({
385392
params: {
393+
index: 'search-api-test',
386394
body: {
387395
query: {
388396
match_all: {},
@@ -430,6 +438,7 @@ export default function ({ getService }: FtrProviderContext) {
430438
.set('kbn-xsrf', 'foo')
431439
.send({
432440
params: {
441+
index: 'search-api-test',
433442
body: {
434443
query: {
435444
match_all: {},

0 commit comments

Comments
 (0)